blob: cc0811c9bd832f61c9f57e133548e0fc67cdf098 (
plain) (
tree)
|
|
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libdrm
pkgver=2.4.102
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 eudev-dev libpciaccess-dev libpthread-stubs
meson ninja 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=true \
-Dudev=true \
-Dvalgrind=false \
$_arch_conf \
build
ninja -C build
}
check() {
ninja -C build test
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
sha512sums="386afd228efd809fe32776a6ff5d9dd95d1409a6a6a89b3806a3b42ed27e84f1e090f3b7834973f834d6b0d1342b7034447fe8690d072f85f03292d7795c3e0c libdrm-2.4.102.tar.xz"
|