summaryrefslogtreecommitdiff
path: root/mesa/Pkgfile
blob: 7e7b8319e90dd230226880369eb387341b571079 (plain)
    1 # Description: Mesa 3D Graphics Library
    2 # URL: https://www.mesa3d.org/
    3 # Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
    4 # Depends on: elfutils libdrm libglvnd libvdpau llvm python3-mako xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm
    5 # Optional: libva
    6 
    7 name=mesa
    8 version=21.1.5
    9 release=1
   10 source=(https://archive.mesa3d.org/$name-$version.tar.xz)
   11 
   12 build() {
   13 	meson setup build mesa-$version \
   14 		--prefix=/usr \
   15 		--sysconfdir=/etc \
   16 		--buildtype=plain \
   17 		-D llvm=enabled \
   18 		-D shared-llvm=enabled \
   19 		-D gbm=enabled \
   20 		-D gles1=enabled \
   21 		-D gles2=enabled \
   22 		-D osmesa=true \
   23 		-D gallium-xa=enabled \
   24 		-D gallium-vdpau=enabled \
   25 		-D platforms=x11 \
   26 		-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
   27 		-D vulkan-drivers=amd,intel \
   28 		-D glvnd=true
   29 
   30 	meson compile -C build -j ${JOBS:-1}
   31 	DESTDIR=$PKG meson install -C build
   32 
   33 	# indirect rendering symlink
   34 	ln -s libGLX_mesa.so.0 $PKG/usr/lib/libGLX_indirect.so.0
   35 }

Generated by cgit