Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/soundtouch/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-17 20:59:41 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-17 20:59:41 +0100
commitd211816999f081007df9ff41735a9a5552b25e87 (patch)
tree6bc45d1462ed9f48b227edb0a5334c8057e85e15 /extra/soundtouch/PKGBUILD
parenta1263fbc5fdf64b0725a4b39f5abc61332a72f96 (diff)
extra/soundtouch: patches for i486/i686 to disable x86-specific optimizations
Diffstat (limited to 'extra/soundtouch/PKGBUILD')
-rw-r--r--extra/soundtouch/PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/soundtouch/PKGBUILD b/extra/soundtouch/PKGBUILD
index 0ea408f9..9c36c6d3 100644
--- a/extra/soundtouch/PKGBUILD
+++ b/extra/soundtouch/PKGBUILD
@@ -1,11 +1,18 @@
# hotfix for changed git repo (already fixed upstream in staging)
source[0]="git+https://codeberg.org/soundtouch/soundtouch.git#tag=${_tag}"
+# configure handles SSE/MMX/etc. but cmake support is somewhat simpler
+# setting flags for disabling optimiazations by hand (and also do the
+# configure stuff, just in case)
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
eval "$(
declare -f prepare | \
sed '
s|./configure|./configure --disable-x86-optimizations|g
'
+ declare -f build | \
+ sed '
+ s|cmake |CXXFLAGS=-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS cmake |
+ '
)"
fi