diff options
Diffstat (limited to 'extra/mesa')
-rwxr-xr-x | extra/mesa/build | 36 | ||||
-rw-r--r-- | extra/mesa/checksums | 6 | ||||
-rw-r--r-- | extra/mesa/depends | 15 | ||||
-rwxr-xr-x | extra/mesa/files/pythonpath | 6 | ||||
-rw-r--r-- | extra/mesa/meta | 3 | ||||
-rw-r--r-- | extra/mesa/sources | 5 | ||||
-rw-r--r-- | extra/mesa/version | 2 |
7 files changed, 48 insertions, 25 deletions
diff --git a/extra/mesa/build b/extra/mesa/build index 9d8984da..64bc5128 100755 --- a/extra/mesa/build +++ b/extra/mesa/build @@ -1,5 +1,9 @@ #!/bin/sh -e +# Support for vulkan drivers of intel, amd, and broadcom. Change if you just +# want to specify your own graphics card. +vulkan_drivers=amd,intel,broadcom + # Temporarily install python-mako to build mesa ( cd mako @@ -11,31 +15,33 @@ ) -pyver=$(python3 --version) pyver=${pyver##* } -PYTHONPATH="$PWD/mako/dist/usr/lib/python${pyver%.*}/site-packages:$(python -c "import sys; print(':'.join(sys.path))")" +PYTHONPATH=$(./pythonpath) export PYTHONPATH export DESTDIR="$1" -export CFLAGS="-DGLX_X86_READONLY_TEXT $CFLAGS" # Fix issues with musl and firefox. # https://bugs.freedesktop.org/show_bug.cgi?id=35268 # https://github.com/mesa3d/mesa/commit/9f37c9903b87f86a533bfaffa72f0ecb285b02b2 -sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build >_ -cat _ > meson.build; rm -f _ +clsed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build python3 bin/git_sha1_gen.py --output include/git_sha1.h -platforms=x11 -cpt l wayland-protocols >/dev/null 2>&1 && platforms=$platforms,wayland - -meson \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - --buildtype=release \ - -Dplatforms="$platforms" \ +cl-meson \ + -Dplatforms=x11,wayland \ + -Dexpat=enabled \ + -Ddri3=enabled \ + -Degl=enabled \ + -Dgbm=enabled \ + -Dgles1=enabled \ + -Dgles2=enabled \ + -Dglx-read-only-text=true \ + -Dglx=dri \ + -Dllvm=enabled \ + -Dshared-glapi=enabled \ + -Dvulkan-drivers="$vulkan_drivers" \ + -Dxmlconfig=enabled \ + -Dzstd=disabled \ . output ninja -C output diff --git a/extra/mesa/checksums b/extra/mesa/checksums index ebfd6ca7..4f7471b8 100644 --- a/extra/mesa/checksums +++ b/extra/mesa/checksums @@ -1,2 +1,4 @@ -9c899b165497ccf816042a271ec9931d548c0a7734fb08e9945f0e9c31188b15 mesa-20.3.4.tar.gz -2984a6733e1d472796ceef37ad48c26f4a984bb18119bb2dbc37a44d8f6e75a4 Mako-1.1.1.tar.gz +%BLAKE3 +f2cc4568e62b58cbe399cf1c786c4c69d8fff198f3c532f912e89933889979a3 mesa-24.2.4.tar.xz +d9023ad9f38b0f0d95e0d8dba698b35bbcf70194910e3f1f86c89ca81bededee Mako-1.2.4.tar.gz +f8dd3db221098d462b08038180a5a9341f9df9e0bda97bdb072402ff865978af pythonpath diff --git a/extra/mesa/depends b/extra/mesa/depends index 07eef570..320e4ec3 100644 --- a/extra/mesa/depends +++ b/extra/mesa/depends @@ -1,18 +1,23 @@ -bison make +eudev expat -flex make +flex make +glslang make libX11 libXdamage libXext libXrandr libXrender libXxf86vm +libclc libdrm libelf libxcb libxshmfence llvm -meson make -python make -xorgproto +meson make +python make +spirv-llvm-translator make +wayland +wayland-protocols make +xorgproto make zlib diff --git a/extra/mesa/files/pythonpath b/extra/mesa/files/pythonpath new file mode 100755 index 00000000..563786ed --- /dev/null +++ b/extra/mesa/files/pythonpath @@ -0,0 +1,6 @@ +#!/usr/bin/python3 +import os +import sys + +print("%s/mako/dist/usr/lib/python%d.%d/site-packages:%s" + % (os.getcwd(), sys.version_info.major, sys.version_info.minor, ':'.join(sys.path))) diff --git a/extra/mesa/meta b/extra/mesa/meta new file mode 100644 index 00000000..33de416c --- /dev/null +++ b/extra/mesa/meta @@ -0,0 +1,3 @@ +description: OpenGL implementation library and drivers +license: MIT, LGPL-2.1-or-later +maintainer: Cem Keylan <cem@carbslinux.org> diff --git a/extra/mesa/sources b/extra/mesa/sources index c5d4df2f..4d118308 100644 --- a/extra/mesa/sources +++ b/extra/mesa/sources @@ -1,2 +1,3 @@ -https://github.com/mesa3d/mesa/archive/mesa-20.3.4.tar.gz -https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.1.1.tar.gz mako +https://mesa.freedesktop.org/archive/mesa-24.2.4.tar.xz +https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.2.4.tar.gz mako +files/pythonpath diff --git a/extra/mesa/version b/extra/mesa/version index 971bebb1..ec32baf5 100644 --- a/extra/mesa/version +++ b/extra/mesa/version @@ -1 +1 @@ -20.3.4 1 +24.2.4 1 |