libdrm-static: new aport

This commit is contained in:
ptrcnull 2021-12-04 01:40:11 +01:00
parent 8b986341c1
commit bccc42c3df

42
libdrm-static/APKBUILD Normal file
View file

@ -0,0 +1,42 @@
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm-static
pkgver=2.4.109
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="linux-headers"
makedepends="meson libpthread-stubs eudev-dev libpciaccess-dev xmlto"
checkdepends="cunit-dev bash"
source="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-$pkgver/drm-libdrm-$pkgver.tar.gz"
builddir="$srcdir/drm-libdrm-$pkgver"
build() {
abuild-meson \
-Dfreedreno=true \
-Dtegra=true \
-Domap=true \
-Dexynos=true \
-Dvc4=true \
-Detnaviv=true \
-Dudev=true \
-Ddefault_library=static \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test -v -C output
}
package() {
install -Dm644 "$builddir"/output/libdrm.a "$pkgdir"/usr/lib/libdrm.a
}
sha512sums="
77afc048f449de2c3d8588b7ef9136f69fc11b9130a7364872ad30807407aa180ded27d37961e94a738f8b5db9a9b19266c8f00d9a39b3f6b33ecad2ea44bc7b drm-libdrm-2.4.109.tar.gz
"