aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: c0f917c14e8e80fe603d854090b1e77b31acd8b5 (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
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.99
pkgrel=1
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 $pkgname-doc"
source="https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2
	ioctl.patch
	"

build() {
	mkdir -p "$builddir"/builddir
	cd "$builddir"/builddir
	meson \
		-Dprefix=/usr \
		-Dfreedreno=true \
		-Dtegra=true \
		-Detnaviv=true \
		-Dudev=true
	ninja
}

check() {
	cd "$builddir"/builddir
	meson test
}

package() {
	cd "$builddir"/builddir
	DESTDIR="$pkgdir" ninja install
}

sha512sums="04702eebe8dca97fac61653623804fdcb0b8b3714bdc6f5e72f0dfdce9c9524cf16f69d37aa9feac79ddc1c11939be44a216484563a612414668ea5eaeadf191  libdrm-2.4.99.tar.bz2
af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f  ioctl.patch"