blob: 5ff14183d9db669b65581652f62331bb6f3e50b9 (
plain) (
tree)
|
|
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libdrm
pkgver=2.4.114
pkgrel=0
pkgdesc="Userspace interface to kernel DRM services"
url="https://dri.freedesktop.org/"
arch="all"
# Requires a computer with gfx, no X running, build user in 'video' group..
options="!check"
license="MIT"
depends=""
depends_dev="linux-headers"
checkdepends="bash cunit-dev"
makedepends="$depends_dev bash cairo-dev eudev-dev libpciaccess-dev libpthread-stubs
libatomic_ops-dev meson ninja py3-docutils xmlto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.xz"
build() {
case $CARCH in
arm*|aarch64*) _arch_conf="-Domap=true
-Dexynos=true
-Detnaviv=true
-Dtegra=true" ;;
esac
meson \
-Dprefix=/usr \
-Dman-pages=enabled \
-Dudev=true \
-Dvalgrind=disabled \
$_arch_conf \
build
ninja -C build
}
check() {
ninja -C build test
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
sha512sums="8dcd4be5674e3ea2ab4394fa8f461914e5aa7f4f57a2f448c5216d84ee6682e16b45eafabf97b7d9f5c062183d9a6bf3f0c97499d4cb01c19807a51209a0f644 libdrm-2.4.114.tar.xz"
|