83 lines
2.6 KiB
Bash
83 lines
2.6 KiB
Bash
# Template file for 'weston'.
|
|
pkgname=weston
|
|
version=1.11.1
|
|
revision=2
|
|
build_style=gnu-configure
|
|
# XXX enable rdp compositor if freerdp is updated to >=1.1.
|
|
configure_args="--enable-libinput-backend --disable-setuid-install
|
|
--enable-colord --enable-x11-compositor --enable-xwayland
|
|
$(vopt_enable backtrace libunwind) $(vopt_enable dbus)
|
|
$(vopt_enable vaapi vaapi-recorder)"
|
|
short_desc="Reference implementation of a Wayland compositor"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://wayland.freedesktop.org/"
|
|
license="MIT"
|
|
distfiles="http://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=548973496a5c8613d6690f9120f21066946a544df65ce4fe0ef153a8dc0bf6de
|
|
|
|
system_groups="weston-launch"
|
|
lib32disabled=yes
|
|
hostmakedepends="pkg-config wayland-devel wayland-protocols autoconf automake libtool"
|
|
makedepends="libpng-devel wayland-devel wayland-protocols libwayland-egl 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 colord-devel
|
|
$(vopt_if backtrace libunwind-devel) $(vopt_if dbus dbus-devel)
|
|
$(vopt_if vaapi libva-devel)"
|
|
|
|
# Package build options
|
|
build_options="backtrace dbus vaapi"
|
|
build_options_default="dbus"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv[67]l*) # Assume RPi for now.
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
|
|
LDFLAGS="-Wl,-R/opt/vc/lib"
|
|
makedepends+=" rpi-userland-devel"
|
|
# Just enable the RPi compositor.
|
|
configure_args+=" --disable-drm-compositor
|
|
--disable-wayland-compositor --disable-simple-egl-clients
|
|
--disable-fbdev-compositor --disable-egl
|
|
--disable-setuid-install --disable-resize-optimization
|
|
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
|
|
;;
|
|
x86_64*|i686*)
|
|
build_options_default+=" vaapi"
|
|
makedepends+=" glu-devel libva-devel"
|
|
configure_args+=" --enable-vaapi-recorder"
|
|
;;
|
|
aarch64*)
|
|
broken="https://build.voidlinux.eu/builders/aarch64-musl_builder/builds/1785/steps/shell_3/logs/stdio"
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
# weston-launch must be setuid
|
|
chmod u+s ${DESTDIR}/usr/bin/weston-launch
|
|
vlicense COPYING LICENSE
|
|
# Remove development files.
|
|
rm -rf ${DESTDIR}/usr/include
|
|
rm -rf ${DESTDIR}/usr/lib/pkgconfig
|
|
}
|
|
|
|
weston-colord_package() {
|
|
short_desc+=" - colord plugin"
|
|
pkg_install() {
|
|
vmove /usr/lib/weston/cms-colord.so
|
|
}
|
|
}
|
|
weston-x11_package() {
|
|
short_desc+=" - x11 backend"
|
|
pkg_install() {
|
|
vmove /usr/lib/weston/x11-backend.so
|
|
}
|
|
}
|
|
weston-xwayland_package() {
|
|
short_desc+=" - xwayland backend"
|
|
pkg_install() {
|
|
vmove /usr/lib/weston/xwayland.so
|
|
}
|
|
}
|