71 lines
2.0 KiB
Bash
71 lines
2.0 KiB
Bash
# Template file for 'weston'
|
|
pkgname=weston
|
|
version=14.0.0
|
|
revision=1
|
|
build_style=meson
|
|
# requires XDG_RUNTIME_DIR for most tests
|
|
configure_args="-Dtests=false $(vopt_bool vaapi backend-drm-screencast-vaapi) "
|
|
hostmakedepends="pkg-config wayland-devel wayland-protocols"
|
|
makedepends="libpng-devel wayland-devel wayland-protocols libxkbcommon-devel
|
|
pixman-devel pango-devel cairo-devel mtdev-devel libwebp-devel
|
|
poppler-glib-devel pam-devel lcms2-devel eudev-libudev-devel libdrm-devel
|
|
libinput-devel libxcb-devel libXcursor-devel dbus-devel libevdev-devel
|
|
xorg-server-xwayland neatvnc-devel libseat-devel pipewire-devel
|
|
gst-plugins-base1-devel libdisplay-info-devel freerdp-devel freerdp-server-devel
|
|
$(vopt_if vaapi 'glu-devel libva-devel')"
|
|
short_desc="Reference implementation of a Wayland compositor"
|
|
maintainer="Daniel Martinez <danielmartinez@cock.li>"
|
|
license="MIT"
|
|
homepage="https://wayland.freedesktop.org/"
|
|
distfiles="https://gitlab.freedesktop.org/wayland/weston/-/releases/${version}/downloads/weston-${version}.tar.xz"
|
|
checksum=47fd0325b0b948e9b003a38fdf4eb3a8581f3fdc740b8932b35ae8793bf4e4a5
|
|
lib32disabled=yes
|
|
replaces="weston-colord>=0"
|
|
|
|
# Package build options
|
|
build_options="vaapi"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|aarch64*|ppc*)
|
|
build_options_default="vaapi"
|
|
;;
|
|
armv*)
|
|
configure_args+=" -Ddemo-clients=false -Dsimple-clients=[]"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
vdoc "${FILESDIR}/README.voidlinux"
|
|
}
|
|
|
|
weston-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
weston-x11_package() {
|
|
short_desc+=" - x11 backend"
|
|
depends="weston"
|
|
pkg_install() {
|
|
vmove "/usr/lib/libweston-${version%%.*}/x11-backend.so"
|
|
}
|
|
}
|
|
|
|
weston-xwayland_package() {
|
|
short_desc+=" - xwayland plugin"
|
|
pkg_install() {
|
|
vmove "/usr/lib/libweston-${version%%.*}/xwayland.so"
|
|
}
|
|
}
|
|
|
|
weston-colord_package() {
|
|
short_desc+=" - colord (folded into weston)"
|
|
build_style=meta
|
|
depends="${sourcepkg}"
|
|
}
|