mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 07:21:40 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Contributor: Will Sinatra <wpsinatra@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libdrm
|
|
pkgver=2.4.107
|
|
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_dev="linux-headers"
|
|
makedepends="$depends_dev meson libpthread-stubs eudev-dev libpciaccess-dev xmlto"
|
|
checkdepends="cunit-dev bash"
|
|
subpackages="$pkgname-dev"
|
|
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 \
|
|
. output
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
|
}
|
|
|
|
check() {
|
|
meson test -v -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
a3e11ad1237866eb5a2a50d5803c92132f7f874fdf003ffffe30be8caa5026f413cc2905a3e2617a713c86b8f77cbfceadefd6340a521e6aed1f0cb89b3bbf3e drm-libdrm-2.4.107.tar.gz
|
|
"
|