Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/openal/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openal/PKGBUILD')
-rw-r--r--extra/openal/PKGBUILD31
1 files changed, 23 insertions, 8 deletions
diff --git a/extra/openal/PKGBUILD b/extra/openal/PKGBUILD
index 6c8ed3c2..2e982053 100644
--- a/extra/openal/PKGBUILD
+++ b/extra/openal/PKGBUILD
@@ -1,22 +1,37 @@
+# disable Intel micro-optimizations and intrinsics per platform
+source+=('openal-pentium4.patch' 'openal-i686.patch' 'openal-i486.patch')
+sha512sums+=(
+ 'bba897b5c1f39775ec28c4e92e3ef0e3e69d62c9463cacd6841c704e7ff5130860cef7f16e464593491dcb50a0036c487188939a989780b5a5c7321f735ae820'
+ '7fdbf5efa7fb223666592d1d78e684798e29a46e7948f379d8b8e3f527c42f1875539722cfacb88182a3187dfb334de3aea012298a6ab111d3c06abd8d41c9b4'
+ '54423f4a45a90570e5331c98916dcb7442bc97b39c1161c0dad2450da829f8866e9c95098b84b4f9fabce34f44df3c1b9f43d257672c7d210236160548ac081f'
+)
+
if [ "$CARCH" = 'pentium4' ]; then
eval "$(
- declare -f build | \
+ declare -f prepare | \
sed '
- s@cmake@cmake -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE4_1=0@
+ /git/ a \
+ patch -p1 -i "$srcdir/openal-pentium4.patch"
'
)"
-elif [ "$CARCH" = 'i686' ]; then
+fi
+
+if [ "$CARCH" = 'i686' ]; then
eval "$(
- declare -f build | \
+ declare -f prepare | \
sed '
- s@cmake@cmake -DALSOFT_ENABLE_SSE2_CODEGEN=0 -DALSOFT_CPUEXT_SSE2=0@
+ /git/ a \
+ patch -p1 -i "$srcdir/openal-i686.patch"
'
)"
-elif [ "$CARCH" = 'i486' ]; then
+fi
+
+if [ "$CARCH" = 'i486' ]; then
eval "$(
- declare -f build | \
+ declare -f prepare | \
sed '
- s@cmake@cmake -DALSOFT_CPUEXT_SSE=0 -DALSOFT_ENABLE_SSE_CODEGEN=0 -DALSOFT_ENABLE_SSE2_CODEGEN=0@
+ /git/ a \
+ patch -p1 -i "$srcdir/openal-i486.patch"
'
)"
fi