68 lines
1.9 KiB
Bash
68 lines
1.9 KiB
Bash
# Template file for 'weston'
|
|
pkgname=weston
|
|
version=5.0.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-setuid-install
|
|
--enable-colord --enable-x11-compositor --enable-xwayland
|
|
$(vopt_enable dbus) $(vopt_enable elogind systemd-login)
|
|
$(vopt_enable vaapi vaapi-recorder)"
|
|
hostmakedepends="pkg-config wayland-devel wayland-protocols autoconf automake libtool"
|
|
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 colord-devel
|
|
$(vopt_if dbus dbus-devel) $(vopt_if vaapi 'glu-devel libva-devel')
|
|
$(vopt_if elogind elogind-devel)"
|
|
short_desc="Reference implementation of a Wayland compositor"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://wayland.freedesktop.org/"
|
|
distfiles="https://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=15a23423bcfa45e31e1dedc0cd524ba71e2930df174fde9c99b71a537c4e4caf
|
|
system_groups="weston-launch"
|
|
lib32disabled=yes
|
|
|
|
# Package build options
|
|
build_options="dbus elogind vaapi"
|
|
build_options_default="dbus"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|ppc64*)
|
|
build_options_default+=" vaapi" ;;
|
|
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/libweston-${version%%.*}/x11-backend.so"
|
|
}
|
|
}
|
|
|
|
weston-xwayland_package() {
|
|
short_desc+=" - xwayland backend"
|
|
pkg_install() {
|
|
vmove "/usr/lib/libweston-${version%%.*}/xwayland.so"
|
|
}
|
|
}
|