aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: d0a8cac0918f2e36dad4320b8f9c1248369068ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.105
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="67e679271e5836841be91a45a19a2d07cacc78344fe5cf864537075dd7c451742bd16bf3367907835cf79348e6fddb2c538e559d153a4f26f2b24b4f6d343703  drm-libdrm-2.4.105.tar.gz"