From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/mesa/mesa.xibuild | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 repo/mesa/mesa.xibuild (limited to 'repo/mesa/mesa.xibuild') diff --git a/repo/mesa/mesa.xibuild b/repo/mesa/mesa.xibuild new file mode 100644 index 0000000..1e9d139 --- /dev/null +++ b/repo/mesa/mesa.xibuild @@ -0,0 +1,58 @@ +#!/bin/sh + +MAKEDEPS="meson ninja python-mako libvdpau llvm libxxf86vm libelf lm-sensors expat wayland-protocols" +DEPS="xorg-libs libdrm" + +PKG_VER=21.3.7 +SOURCE=https://mesa.freedesktop.org/archive/mesa-$PKG_VER.tar.xz +ADDITIONAL=" + 0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch + add-use-elf-tls.patch + disable-rgb10-by-default.patch + mesa-21.3.7-add_xdemos-1.patch + mesa-21.3.7-nouveau_fixes-1.patch + musl-fix-includes.patch +" + +DESC="An implementation of the OpenGL specification" + +prepare () { + apply_patches + + export GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl" + export DRI_DRIVERS="i965,nouveau" +} + +build () { + mkdir build && + cd build && + + meson --prefix=$XORG_PREFIX \ + --buildtype=release \ + -Ddri-drivers=$DRI_DRIVERS \ + -Dgallium-drivers=$GALLIUM_DRV \ + -Dplatforms=x11,wayland \ + -Dgallium-nine=false \ + -Dglx=dri \ + -Dopengl=true \ + -Dosmesa=true \ + -Dshared-glapi=enabled \ + -Degl=enabled \ + -Dgles1=disabled \ + -Dgles2=disabled \ + -Dvalgrind=disabled \ + -Dlibunwind=disabled \ + .. && + + unset GALLIUM_DRV DRI_DRIVERS && + + ninja -j$JOBS + +} + +package () { + DESTDIR=$PKG_DEST ninja install + install -dm755 $PKG_DEST/usr/share/doc/mesa-$PKG_VER && + cp -rf ../docs/* $PKG_DEST/usr/share/doc/mesa-$PKG_VER + +} -- cgit v1.2.1