void-packages/srcpkgs/weston/template

74 lines
2.0 KiB
Bash

# Template file for 'weston'
pkgname=weston
version=13.0.1
revision=1
build_style=meson
configure_args=" $(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://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
checksum=ea1566ab4f5ffce7e9fd4f7a1fca5b30caae4d50023bf459213994094e02b29a
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
pre_configure() {
vsed -i "/subdir('tests')/d" meson.build
}
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}"
}