extra/mesa to 22.0.0-3

This commit is contained in:
Kevin Mihelich 2022-04-05 12:52:24 +00:00
parent c57e72ad36
commit bf5e1b3aba

View file

@ -15,7 +15,7 @@ pkgbase=mesa
pkgname=('vulkan-mesa-layers' 'opencl-mesa' 'vulkan-radeon' 'vulkan-swrast' 'vulkan-broadcom' 'vulkan-panfrost' 'libva-mesa-driver' 'mesa-vdpau' 'mesa')
pkgdesc="An open-source implementation of the OpenGL specification"
pkgver=22.0.0
pkgrel=1.1
pkgrel=3
arch=('x86_64')
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
'libxdamage' 'libvdpau' 'libva' 'wayland' 'wayland-protocols' 'zstd' 'elfutils' 'llvm'
@ -23,6 +23,7 @@ makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence
'valgrind' 'glslang' 'vulkan-icd-loader' 'directx-headers' 'cmake' 'meson')
url="https://www.mesa3d.org/"
license=('custom')
options=('debug')
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15365.patch
LICENSE)
@ -49,6 +50,14 @@ build() {
aarch64) GALLIUM=",etnaviv,kmsro,lima,panfrost,v3d,vc4" ;;
esac
# Build only minimal debug info to reduce size
CFLAGS+=' -g1'
CXXFLAGS+=' -g1'
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/6229
CFLAGS+=' -mtls-dialect=gnu'
CXXFLAGS+=' -mtls-dialect=gnu'
arch-meson mesa-$pkgver build \
-D b_lto=$([[ $CARCH == aarch64 ]] && echo true || echo false) \
-D b_ndebug=true \