void-packages/srcpkgs/weston/template
2014-01-24 14:48:36 +01:00

44 lines
1.7 KiB
Text

# Template file for 'weston'.
pkgname=weston
version=1.4.0
revision=1
build_style=gnu-configure
short_desc="Reference implementation of a Wayland compositor"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://wayland.freedesktop.org/"
license="MIT"
distfiles="http://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
checksum=74a2319d98e9cdb1acf24659699719aa89ac268cf549759271e326edc5f9ed64
hostmakedepends="pkg-config wayland-devel>=${version}"
makedepends="libpng-devel>=1.6 wayland-devel>=${version} libxkbcommon-devel
libxcb-devel>=1.10 xcb-util-keysyms-devel pixman-devel pango-devel
cairo-devel>=1.12.14_5 mtdev-devel libwebp-devel poppler-glib-devel pam-devel
systemd-devel libunwind-devel lcms2-devel libudev-devel libdrm-devel"
# cairo built with gles2 option.
depends="cairo>=1.12.14_5"
case "$XBPS_TARGET_MACHINE" in
armv6l) # Assume RPi for now.
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
makedepends+=" rpi-firmware rpi-firmware-pcfiles"
# Just enable the RPi compositor.
configure_args+=" --disable-x11-compositor --disable-drm-compositor
--disable-wayland-compositor --disable-simple-egl-clients
--disable-fbdev-compositor --disable-egl --disable-colord
--disable-resize-optimization --disable-xwayland-test
--disable-setuid-install --disable-xwayland
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
;;
x86_64|i686)
makedepends+=" libXcursor-devel colord-devel glu-devel libva-devel"
configure_args+=" --with-cairo-glesv2 --enable-demo-clients --enable-vaapi-recorder"
;;
esac
post_install() {
vinstall COPYING 644 usr/share/license/$pkgname
# Remove development files.
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/pkgconfig
}