# $Id$ # Maintainer: Sébastien Luttringer # Contributor: Joel Teichroeb # ALARM: Kevin Mihelich # - export flags for rpi pkgname=weston pkgver=1.10.0 pkgrel=1 pkgdesc='Reference implementation of a Wayland compositor' arch=('i686' 'x86_64') url='http://wayland.freedesktop.org' license=('MIT') depends=('wayland' 'libxkbcommon' 'libinput' 'libunwind' 'poppler-glib' 'mtdev' 'libxcursor' 'glu' 'pango' 'colord') makedepends=('wayland-protocols') makedepends_armv6h=('raspberrypi-firmware') source=("http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz") sha1sums=('c9c2c8e2e798b25e7bf6b31bf0c4ef08724a7ebb') build() { cd $pkgname-$pkgver if [ "$CARCH" == 'armv6h' ]; then export RPI_BCM_HOST_LIBS="-L/opt/vc/lib" export RPI_BCM_HOST_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" export WESTON_NATIVE_BACKEND="rpi-backend.so" export RPI_COMPOSITOR_LIBS="-ludev -lmtdev -lbcm_host" CONFIG='--disable-egl' fi ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/weston \ --enable-libinput-backend \ --enable-demo-clients-install $CONFIG make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install # license install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }