summaryrefslogblamecommitdiff
path: root/user/libdrm/APKBUILD
blob: ce6d75c62de4cefaceee72938d6b9fa1e33883f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                                 
              








                                                                           
                             
                                                                                    
                                                         
                                       
                                                                     

         
                      



                                              

            







                                  


         
                           


           
                                                

 
                                                                                                                                                                    
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libdrm
pkgver=2.4.110
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 cairo-dev eudev-dev libpciaccess-dev libpthread-stubs
	libatomic_ops-dev meson ninja py3-docutils 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="52f92ef1fe4c218a1d7dba53ef43334dbfca80e3209afe59f3a32c4bf67473126534e990df07a931a12d46a3b997c21ef17c1c4d8a0c88d44d5c6c040e3b6be3  libdrm-2.4.110.tar.xz"