Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/mesa
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 10:02:51 +0100
committerErich Eckner <git@eckner.net>2019-01-21 10:02:51 +0100
commit43a901ea68bafb0dfe1818553ad131e3e36de1c4 (patch)
treec292cb29a42400ebeb55014172b902dc2727518a /extra/mesa
parent54d673f3676d18dc1310d17d4f6cdadd2418d7c8 (diff)
parent1ef3db3df26dd0f4b688aefeb7347cb88b931fa4 (diff)
Merge branch 'master' into i486
Diffstat (limited to 'extra/mesa')
-rw-r--r--extra/mesa/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 380cad2f..df6a511e 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -12,3 +12,36 @@ eval "$(
s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
'
)"
+
+# do not build/package vulkan on i486
+# do not build i915,i965 on i486
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/\(-D vulkan-drivers=\)\S\+ /\1 /
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i915,/\1/
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i965,/\1/
+ '
+ declare -f package_mesa | \
+ sed '
+ \,rm .*/vulkan;,d
+ '
+ )"
+ pkgname=(
+ $(
+ printf '%s\n' "${pkgname[@]}" | \
+ grep -v '^vulkan-'
+ )
+ )
+fi
+eval "$(
+ declare -f package_vulkan-intel package_vulkan-radeon | \
+ sed '
+ /^\s*{\s*$/ a arch=('"$(
+ printf '%s\n' "${arch[@]}" | \
+ grep -vxF 'i486' | \
+ tr '\n' ' '
+ )"')
+ '
+)"