summaryrefslogtreecommitdiff
path: root/repo/x11/mesa.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-18 00:39:19 +0000
committerdavidovski <david@davidovski.xyz>2022-02-18 00:39:19 +0000
commitc1856d77dd8f970e0b533f779789e236f13c2111 (patch)
treef3bd5b90d14fb8f000e25fa0395580324d67de89 /repo/x11/mesa.xibuild
parentf3e201a03e5bd2329d377e31b1c8a386f7abda4d (diff)
added packages needed for xorg
Diffstat (limited to 'repo/x11/mesa.xibuild')
-rw-r--r--repo/x11/mesa.xibuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/repo/x11/mesa.xibuild b/repo/x11/mesa.xibuild
new file mode 100644
index 0000000..4db772b
--- /dev/null
+++ b/repo/x11/mesa.xibuild
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+MAKEDEPS=(meson ninja python-mako libva libvdpau llvm libxxf86vm libelf lm_sensors libexpat libvulkan)
+DEPS=(xorg-libs libdrm)
+
+PKG_VER=21.3.6
+SOURCE=https://mesa.freedesktop.org/archive/mesa-$PKG_VER.tar.xz
+ADDITIONAL=(
+ https://www.linuxfromscratch.org/patches/blfs/svn/mesa-$PKG_VER-add_xdemos-1.patch
+ https://www.linuxfromscratch.org/patches/blfs/svn/mesa-$PKG_VER-nouveau_fixes-1.patch
+)
+
+DESC="An implementation of the OpenGL specification"
+
+prepare () {
+ patch -Np1 -i mesa-$PKG_VER-add_xdemos-1.patch
+
+ export GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
+ export DRI_DRIVERS="i965,nouveau"
+
+ patch -Np1 -i mesa-$PKG_VER-nouveau_fixes-1.patch
+
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+
+ meson --prefix=$XORG_PREFIX \
+ --buildtype=release \
+ -Ddri-drivers=$DRI_DRIVERS \
+ -Dgallium-drivers=$GALLIUM_DRV \
+ -Dgallium-nine=false \
+ -Dglx=dri \
+ -Dvalgrind=disabled \
+ -Dlibunwind=disabled \
+ .. &&
+
+ unset GALLIUM_DRV DRI_DRIVERS &&
+
+ ninja
+
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+ install -v -dm755 $PKG_DEST/usr/share/doc/mesa-$PKG_VER &&
+ cp -rfv ../docs/* $PKG_DEST/usr/share/doc/mesa-$PKG_VER
+
+}