# Template file for 'weston'. pkgname=weston version=1.2.2 revision=1 build_style=gnu-configure short_desc="Reference implementation of a Wayland compositor" maintainer="Juan RP " homepage="http://wayland.freedesktop.org/" license="MIT" distfiles="http://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz" checksum=ecdd6530020e462cec122a14f58841b0f12c037e25ad8a6f93fc5c01d88f64b3 hostmakedepends="pkg-config" makedepends="libpng-devel>=1.6 wayland-devel>=1.2.1 libxkbcommon-devel libxcb-devel>=1.9.1 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" case "$XBPS_TARGET_MACHINE" in armv6l) # Assume RPi for now. 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 --disable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so" ;; x86_64|i686) makedepends+=" libXcursor-devel colord-devel glu-devel" configure_args+=" --with-cairo-glesv2 --enable-demo-clients" ;; esac if [ "$CROSS_BUILD" ]; then hostmakedepends+=" wayland-devel" fi post_install() { vinstall COPYING 644 usr/share/license/$pkgname # Remove development files. rm -rf ${DESTDIR}/usr/include rm -rf ${DESTDIR}/usr/lib/pkgconfig } weston_package() { # cairo built with gles2 option. depends="wayland>=1.2.0 cairo>=1.12.14_5" pkg_install() { vmove all } }