2013-07-16 23:05:56 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sébastien Luttringer
|
|
|
|
# Contributor: Joel Teichroeb <joel@teichroeb.net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - export flags for rpi
|
2014-02-27 14:30:13 +00:00
|
|
|
# - patch to not call vc_dispmanx_set_wl_buffer_in_use
|
2013-07-16 23:05:56 +00:00
|
|
|
|
|
|
|
pkgname=weston
|
2014-01-25 02:41:40 +00:00
|
|
|
pkgver=1.4.0
|
2014-03-04 22:08:39 +00:00
|
|
|
pkgrel=2.2
|
2013-07-16 23:05:56 +00:00
|
|
|
pkgdesc='Reference implementation of a Wayland compositor'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://wayland.freedesktop.org'
|
|
|
|
license=('MIT')
|
|
|
|
depends=('libxkbcommon' 'libunwind' 'poppler-glib' 'mtdev' 'libxcursor' 'glu' 'pango' 'colord')
|
2013-12-28 21:34:10 +00:00
|
|
|
[ "$CARCH" == 'armv6h' ] && makedepends=('raspberrypi-firmware')
|
2014-02-27 14:30:13 +00:00
|
|
|
source=("http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"
|
|
|
|
'rpi.patch')
|
|
|
|
sha1sums=('49b0b6d5e2366a7bad5158b29998213e5ca7f254'
|
|
|
|
'ed01b8367eef82a6d168b00dfd61193f2e6aabb5')
|
2013-07-16 23:05:56 +00:00
|
|
|
|
|
|
|
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"
|
2013-11-10 19:30:05 +00:00
|
|
|
export WESTON_NATIVE_BACKEND="rpi-backend.so"
|
2014-02-27 14:30:13 +00:00
|
|
|
CONFIG='--disable-egl'
|
2014-03-04 22:08:39 +00:00
|
|
|
patch -p1 -i ../rpi.patch
|
2013-07-16 23:05:56 +00:00
|
|
|
fi
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2013-08-23 19:24:08 +00:00
|
|
|
--libexecdir=/usr/lib/weston \
|
2014-02-27 14:30:13 +00:00
|
|
|
--enable-demo-clients-install $CONFIG
|
2013-07-16 23:05:56 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# license
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|