summaryrefslogblamecommitdiff
path: root/user/libdrm/APKBUILD
blob: 99534d59646b9d2e1ed4cfc334a2de31019cdbab (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.101
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 eudev-dev libpciaccess-dev libpthread-stubs
	meson ninja 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="658cfc6f478b674b77b4613e1af9ce8f4fd2ace8a18e75729de254d14b7c1f5d67d4bfdb58744aea74abca0f6521326225f4156bd5cbeeed79ca3e025f657e8c  libdrm-2.4.101.tar.xz"