summaryrefslogtreecommitdiff
path: root/mesa3d-32/Pkgfile
blob: b2d9d15f2e525617913ef09b3a45c6a3774fb216 (plain)
    1 # Description: Mesa 3D Graphics Library
    2 # URL: https://www.mesa3d.org/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: elfutils-32 expat-32 libdrm-32 libglvnd-32 libvdpau-32 llvm-32 mesa3d xorg-libxdamage-32 xorg-libxrandr-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32
    5 
    6 name=mesa3d-32
    7 version=19.1.5
    8 release=1
    9 source=(https://mesa.freedesktop.org/archive/mesa-$version.tar.xz
   10 	x86-linux-gnu)
   11 
   12 build() {
   13 	cd mesa-$version
   14 
   15 	meson build \
   16 		--cross-file=$SRC/x86-linux-gnu \
   17 		--prefix=/usr \
   18 		--libdir=/usr/lib32 \
   19 		--sysconfdir=/etc \
   20 		-Dllvm=true \
   21 		-Dgbm=true \
   22 		-Dgles1=true \
   23 		-Dgles2=true \
   24 		-Dosmesa=gallium \
   25 		-Dgallium-xa=true \
   26 		-Dgallium-vdpau=true \
   27 		-Dshared-llvm=true \
   28 		-Dplatforms=x11,drm \
   29 		-Dgallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
   30 		-Dvulkan-drivers=amd,intel \
   31 		-Dglvnd=true
   32 
   33 	DESTDIR=$PKG ninja -C build -j ${JOBS:-1} install
   34 
   35 	# indirect rendering symlink
   36 	ln -s libGLX_mesa.so.0 $PKG/usr/lib32/libGLX_indirect.so.0
   37 
   38 	rm -r $PKG/usr/{include,share/{drirc.d,glvnd}}
   39 }

Generated by cgit