diff options
author | Zach van Rijn <me@zv.io> | 2024-07-27 06:37:12 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 10:30:21 -0500 |
commit | c35cb9bf44e5b2fbfbe809c6c505a00488ff0f3f (patch) | |
tree | ba756e074c2270cbb043ab1fd7f085f01846c457 | |
parent | b28ee76ad22a3e11b854ab615af0fe3d30f4b5e5 (diff) | |
download | packages-c35cb9bf44e5b2fbfbe809c6c505a00488ff0f3f.tar.gz packages-c35cb9bf44e5b2fbfbe809c6c505a00488ff0f3f.tar.bz2 packages-c35cb9bf44e5b2fbfbe809c6c505a00488ff0f3f.tar.xz packages-c35cb9bf44e5b2fbfbe809c6c505a00488ff0f3f.zip |
user/mesa: Add Meson config for LLVM selection
Closes: #796
-rw-r--r-- | user/mesa/APKBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/user/mesa/APKBUILD b/user/mesa/APKBUILD index c7030182e..84c658c58 100644 --- a/user/mesa/APKBUILD +++ b/user/mesa/APKBUILD @@ -2,7 +2,7 @@ pkgname=mesa pkgver=21.3.9 _llvmver=14 -pkgrel=1 +pkgrel=2 pkgdesc="Mesa DRI OpenGL library" url="https://www.mesa3d.org" arch="all" @@ -52,7 +52,15 @@ ppc64) esac build() { + # This is to fix #796, and is derived from: + # https://gitlab.freedesktop.org/mesa/mesa/-/commit/cc2b3a99ccf035a084d768e5c5ffa81478d685c1 + cat > native.file <<EOF +[binaries] +llvm-config = '$(command -v llvm${_llvmver}-config)' +EOF + meson \ + --native-file=native.file \ -Dprefix=/usr \ -Ddri-drivers-path=$_dri_driverdir \ -Dplatforms=x11,wayland \ |