2019-12-22 14:43:16 +00:00
|
|
|
# Maintainer: David Heidelberg <david@ixit.cz>
|
2018-10-23 21:27:58 +00:00
|
|
|
pkgname=libdrm-grate
|
2019-12-22 14:43:16 +00:00
|
|
|
pkgver=2.4.100_git20191221
|
2020-01-19 13:11:03 +00:00
|
|
|
pkgrel=1
|
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..
|
2019-12-22 14:43:16 +00:00
|
|
|
options="!check"
|
2018-10-23 23:59:15 +00:00
|
|
|
license="MIT"
|
|
|
|
depends_dev="linux-headers"
|
2019-12-22 14:43:16 +00:00
|
|
|
provides="libdrm"
|
|
|
|
makedepends="$depends_dev meson libpthread-stubs eudev-dev libpciaccess-dev xmlto"
|
2018-10-23 23:59:15 +00:00
|
|
|
checkdepends="cunit-dev bash"
|
|
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
2019-12-22 14:43:16 +00:00
|
|
|
_commit="fb342d0d78446f5f8898d8676fa986610d01c766"
|
|
|
|
source="$pkgname-$_commit.tar.gz::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
|
|
|
_pkgname=libdrm
|
|
|
|
builddir="$srcdir/$_pkgname-$_commit"
|
2018-10-23 23:59:15 +00:00
|
|
|
|
|
|
|
build() {
|
2019-12-22 14:43:16 +00:00
|
|
|
meson \
|
|
|
|
-Dprefix=/usr \
|
2020-01-19 13:11:03 +00:00
|
|
|
-Dfreedreno=true \
|
2019-12-22 14:43:16 +00:00
|
|
|
-Dtegra=true \
|
2020-01-19 13:11:03 +00:00
|
|
|
-Detnaviv=true \
|
2019-12-22 14:43:16 +00:00
|
|
|
-Dudev=true \
|
|
|
|
. build
|
|
|
|
ninja -C build
|
2018-10-23 23:59:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-12-22 14:43:16 +00:00
|
|
|
cd "$builddir"/build
|
|
|
|
meson test
|
2018-10-23 23:59:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-12-22 14:43:16 +00:00
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
2018-10-23 21:27:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dev() {
|
|
|
|
default_dev
|
|
|
|
|
2019-12-22 14:43:16 +00:00
|
|
|
provides="libdrm-dev"
|
2018-10-23 23:59:15 +00:00
|
|
|
}
|
|
|
|
|
2019-12-22 14:43:16 +00:00
|
|
|
sha512sums="90618e48589bb74a5846c991f51cb53f0e483124db6c05a4dafafc2d63c3763972ef24dc62a4f2244c0ba23828894f7040111ba9f60421fc7ce19d19e726312a libdrm-grate-fb342d0d78446f5f8898d8676fa986610d01c766.tar.gz
|
2018-10-23 23:59:15 +00:00
|
|
|
af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f ioctl.patch"
|