aboutsummaryrefslogblamecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: a548dd08c2aa67af70640ced5129e777f0c6cb48 (plain) (tree)
1
2
3
4
5
6
7
8
                                                 

                                                   

              
                                                    
                                  
          


                                                                           
                           
                                                                                  
                             
                          

                                                                                                   

         
                      

                                  


                               
                                


                                                   


         
                               


           
                                                              
 
 
                                                                                                                                                                        
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.104
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="8267dc7d6d289cbcb7bb139030a5910abf738df5e7caae728994c736287a99879e77db213c6bad4bd5ccb3ea38758f6ae619b93c1eb882aff5e82714158262a9  drm-libdrm-2.4.104.tar.gz"