39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
pkgname=glamor-hybris
|
|
pkgver=1.0_git20180114
|
|
pkgrel=0
|
|
_commit=d15da5304b6b15bc12864041267880abb5565d0c
|
|
pkgdesc="glamor Xserver 2D acceleration modified to work with libhybris drivers"
|
|
url="https://github.com/NotKit/glamor-hybris"
|
|
arch="armhf aarch64"
|
|
license="MIT"
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
depends=
|
|
makedepends="autoconf automake util-macros libtool
|
|
xorg-server-dev libxi-dev fontsproto randrproto
|
|
videoproto renderproto drihybrisproto drihybris-dev libepoxy-dev
|
|
libhybris-dev"
|
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/NotKit/glamor-hybris/archive/$_commit.tar.gz"
|
|
|
|
builddir="$srcdir"/$pkgname-$_commit
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
|
|
export CPPFLAGS="$CPPFLAGS -I/usr/include/android-7.1"
|
|
|
|
./autogen.sh \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-glamor-gles2
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
mv "$pkgdir/usr/include/xorg/glamor.h" "$pkgdir/usr/include/xorg/glamor-hybris.h"
|
|
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
|
}
|
|
sha512sums="3dbeb9ca69a425f0d24bedb201d598fec7103c43fdff2b0cda491db2b0f82a58116677e410051d98c505ca651a8e3f2361fd478d37a96e05b87b4bbb3a472916 glamor-hybris-d15da5304b6b15bc12864041267880abb5565d0c.tar.gz"
|