2019-08-21 09:52:17 +00:00
|
|
|
# Forked from Alpine, so we can build it with Grate support
|
2018-10-23 21:27:58 +00:00
|
|
|
pkgname=libdrm-grate
|
2019-08-19 14:41:35 +00:00
|
|
|
pkgver=2.4.96_git20190318
|
|
|
|
pkgrel=0
|
2018-10-23 23:59:15 +00:00
|
|
|
pkgdesc="Userspace interface to kernel DRM services"
|
2018-10-23 21:27:58 +00:00
|
|
|
url="https://github.com/grate-driver/libdrm"
|
2019-02-26 17:24:26 +00:00
|
|
|
arch="armhf armv7"
|
2018-10-23 23:59:15 +00:00
|
|
|
# Requires a computer with gfx, no X running, build user in 'video' group..
|
2018-10-23 21:27:58 +00:00
|
|
|
options="!check !tracedeps"
|
2018-10-23 23:59:15 +00:00
|
|
|
license="MIT"
|
2018-10-23 21:27:58 +00:00
|
|
|
depends="ldpath"
|
2018-10-23 23:59:15 +00:00
|
|
|
depends_dev="linux-headers"
|
2018-10-23 21:27:58 +00:00
|
|
|
makedepends="$depends_dev libpthread-stubs eudev-dev libpciaccess-dev xmlto
|
|
|
|
autoconf automake libtool m4 util-macros"
|
2018-10-23 23:59:15 +00:00
|
|
|
checkdepends="cunit-dev bash"
|
|
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
2018-10-23 21:27:58 +00:00
|
|
|
install="$pkgname.post-install $pkgname.pre-deinstall"
|
2019-04-11 14:53:44 +00:00
|
|
|
_commit="8b34ac343667348e52f7946cf32978bc74377c0d"
|
2018-10-23 21:27:58 +00:00
|
|
|
source="https://github.com/grate-driver/libdrm/archive/$_commit.tar.gz
|
2018-10-23 23:59:15 +00:00
|
|
|
ioctl.patch
|
|
|
|
"
|
2018-10-23 21:27:58 +00:00
|
|
|
replaces_doc="libdrm-doc"
|
2018-10-23 23:59:15 +00:00
|
|
|
|
2018-10-23 21:27:58 +00:00
|
|
|
_pkgname=libdrm
|
|
|
|
builddir="$srcdir/$_pkgname-$_commit"
|
2018-10-23 23:59:15 +00:00
|
|
|
|
|
|
|
build() {
|
2018-10-23 21:27:58 +00:00
|
|
|
export VALGRIND_CFLAGS="$VALGRIND_CFLAGS -I/usr/include/valgrind/"
|
|
|
|
./autogen.sh \
|
2018-10-23 23:59:15 +00:00
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2018-10-23 21:27:58 +00:00
|
|
|
--disable-radeon \
|
|
|
|
--disable-amdgpu \
|
|
|
|
--disable-nouveau \
|
|
|
|
--disable-vmwgfx \
|
|
|
|
--disable-freedreno \
|
|
|
|
--disable-vc4 \
|
|
|
|
--enable-tegra-experimental-api \
|
2018-10-23 23:59:15 +00:00
|
|
|
--enable-udev \
|
|
|
|
--disable-valgrind
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make DESTDIR="$pkgdir" install
|
2018-10-23 21:27:58 +00:00
|
|
|
|
|
|
|
cd "$pkgdir"/usr/lib
|
|
|
|
install -d libdrm-grate/
|
|
|
|
mv lib*.so.* libdrm-grate/
|
|
|
|
mv lib*.la libdrm-grate/
|
|
|
|
}
|
|
|
|
|
|
|
|
dev() {
|
|
|
|
default_dev
|
|
|
|
|
|
|
|
cd "$subpkgdir"/usr/lib
|
|
|
|
install -d libdrm-grate/
|
|
|
|
mv lib*.so libdrm-grate/
|
|
|
|
|
|
|
|
install -d pkgconfig/libdrm-grate/
|
|
|
|
mv pkgconfig/*.pc pkgconfig/libdrm-grate/
|
|
|
|
|
|
|
|
# Move headers (to /usr/include/libdrm-grate)
|
|
|
|
cd "$subpkgdir"/usr
|
|
|
|
mv include include_
|
|
|
|
mkdir include
|
|
|
|
mv include_ include/libdrm-grate
|
|
|
|
|
|
|
|
# Redirect pkgconfig to alternate lib/header directory
|
|
|
|
local pc
|
|
|
|
cd "$subpkgdir"/usr/lib/pkgconfig/libdrm-grate
|
|
|
|
for pc in *; do
|
|
|
|
sed -i "s./include$./include/libdrm-grate.g" $pc
|
|
|
|
sed -i "s./lib$./lib/libdrm-grate.g" $pc
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
doc() {
|
|
|
|
default_doc
|
|
|
|
replaces="libdrm-doc"
|
2018-10-23 23:59:15 +00:00
|
|
|
}
|
|
|
|
|
2019-04-11 14:53:44 +00:00
|
|
|
sha512sums="9e10202a4f9229489c110515df55b3fb76d764ab27fe1546b6ac66f7515c9f147ee9769090a878f7e10f1239a9537a0ff8100b9bb79d94b1c85e8c4ebbae488d 8b34ac343667348e52f7946cf32978bc74377c0d.tar.gz
|
2018-10-23 23:59:15 +00:00
|
|
|
af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f ioctl.patch"
|