community/weston fix

This commit is contained in:
Kevin Mihelich 2016-09-22 00:05:26 +00:00
parent 0cbf918c46
commit 4fb2e8426a

View file

@ -2,8 +2,7 @@
# Maintainer: Sébastien Luttringer
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - export flags for rpi
# remove when bumped upstream
pkgname=weston
pkgver=1.12.0
@ -14,7 +13,6 @@ 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')
validpgpkeys=('C7223EBE4EF66513B892598911A30156E0E67611') # Bryce Harrington
source=("http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.sig})
sha1sums=('36f1a31a32964be8ec782898cc31c70c90ba5697'
@ -22,18 +20,11 @@ sha1sums=('36f1a31a32964be8ec782898cc31c70c90ba5697'
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
--enable-demo-clients-install
make
}