Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-11 20:55:43 +0100
committerErich Eckner <git@eckner.net>2021-01-11 20:55:43 +0100
commit9f73e226a52af44a97d4a1a1e80cc66907207a0b (patch)
treec2ecac4640ee344f31a0d76795fd4e4b30853299
parent48f201d24dbbd79f692c9e863c82d7a0c436194a (diff)
extra/mesa: disable almost(?) everything to make it build on i486
-rw-r--r--extra/mesa/PKGBUILD17
1 files changed, 15 insertions, 2 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index df6a511e..d00f76ac 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -19,6 +19,12 @@ if [ "$CARCH" = 'i486' ]; then
eval "$(
declare -f build | \
sed '
+ s/\(-D gallium-drivers=\)\S\+ /\1 /
+ s/-D gallium-omx=bellagio //
+ s/-D gallium-opencl=\S\+ //
+ s/-D osmesa=gallium //
+ s/\(-D gallium-\S\+=\)enabled /\1disabled /g
+ s/\(-D gallium-nine=\)true /\1false /g
s/\(-D vulkan-drivers=\)\S\+ /\1 /
s/\(-D dri-drivers=\(\S\+,\)\?\)i915,/\1/
s/\(-D dri-drivers=\(\S\+,\)\?\)i965,/\1/
@@ -26,12 +32,19 @@ if [ "$CARCH" = 'i486' ]; then
declare -f package_mesa | \
sed '
\,rm .*/vulkan;,d
+ \,bellagio,d
+ \,fakeinstall/usr/lib/d3d,d
+ \,fakeinstall/usr/lib/libOSMesa\.so\*,d
+ \,fakeinstall/usr/lib/libxatracker\.so\*,d
'
)"
pkgname=(
$(
- printf '%s\n' "${pkgname[@]}" | \
- grep -v '^vulkan-'
+ printf '%s\n' "${pkgname[@]}" \
+ | grep -v '^vulkan-' \
+ | grep -vxF opencl-mesa \
+ | grep -vxF libva-mesa-driver \
+ | grep -vxF mesa-vdpau
)
)
fi