74 lines
2.0 KiB
Bash
74 lines
2.0 KiB
Bash
# Template file for 'weston'
|
|
pkgname=weston
|
|
version=13.0.3
|
|
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://gitlab.freedesktop.org/wayland/weston/-/releases/${version}/downloads/weston-${version}.tar.xz"
|
|
checksum=27f68d96e3b97d98daadef13a202356524924fa381418fa6716b9136ef099093
|
|
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}"
|
|
}
|