ports/mesa: Build with x support

This commit is contained in:
Bananymous 2026-03-23 17:50:48 +02:00
parent 791091174a
commit eddb68f2fa
2 changed files with 15 additions and 3 deletions

View File

@ -3,14 +3,14 @@
NAME='mesa' NAME='mesa'
VERSION='25.0.7' VERSION='25.0.7'
DOWNLOAD_URL="https://archive.mesa3d.org/mesa-$VERSION.tar.xz#592272df3cf01e85e7db300c449df5061092574d099da275d19e97ef0510f8a6" DOWNLOAD_URL="https://archive.mesa3d.org/mesa-$VERSION.tar.xz#592272df3cf01e85e7db300c449df5061092574d099da275d19e97ef0510f8a6"
DEPENDENCIES=('zlib' 'zstd' 'expat') DEPENDENCIES=('zlib' 'zstd' 'expat' 'libX11' 'libXext')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'-Dprefix=/usr' '-Dprefix=/usr'
'-Dosmesa=true' '-Dosmesa=true'
'-Dvulkan-drivers=[]' '-Dvulkan-drivers=[]'
'-Dgallium-drivers=llvmpipe' '-Dgallium-drivers=llvmpipe'
'-Dplatforms=[]' '-Dplatforms=x11'
'-Dglx=disabled' '-Dglx=xlib'
'-Dbuildtype=release' '-Dbuildtype=release'
) )

View File

@ -0,0 +1,12 @@
diff -ruN mesa-25.0.7/src/util/u_thread.c mesa-25.0.7-banan_os/src/util/u_thread.c
--- mesa-25.0.7/src/util/u_thread.c 2025-05-28 18:20:23.000000000 +0300
+++ mesa-25.0.7-banan_os/src/util/u_thread.c 2026-03-04 18:59:55.591754019 +0200
@@ -154,7 +154,7 @@
int64_t
util_thread_get_time_nano(thrd_t thread)
{
-#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__managarm__)
+#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__managarm__) && !defined(__banan_os__)
struct timespec ts;
clockid_t cid;