summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
author Matteo Bernardini2024-05-18 10:25:58 +0200
committer Willy Sudiarto Raharjo2024-05-21 04:11:27 +0200
commit305a5823c6d7149c52f3181564f6880617d98faa (patch)
tree4e6c4c05f34bb78de2ee83db57dc38e51a6d0789 /audio
parentb9cc596f7a1245750bb51dd95e1d72f7b93eec57 (diff)
downloadslackbuilds-305a5823c6d7149c52f3181564f6880617d98faa.tar.gz
audio/audacity: Force SSE2 on x86.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/audacity/README6
-rw-r--r--audio/audacity/audacity.SlackBuild3
2 files changed, 7 insertions, 2 deletions
diff --git a/audio/audacity/README b/audio/audacity/README
index 9edf3fedb1..63f814b808 100644
--- a/audio/audacity/README
+++ b/audio/audacity/README
@@ -12,6 +12,8 @@ additional option
From the application you will be able only to access the online manual
with the default browser when selecting manual from the menu.
-NOTE: for audacity to build/run wxWidgets needs to be built with
+NOTES:
+- for audacity to build/run wxWidgets needs to be built with
support for gtk+3 (it won't work if you build it against qt).
-Also this SlackBuild won't work if you built wxWidgets with STL=yes
+- this SlackBuild won't work if you built wxWidgets with STL=yes
+- audacity requires SSE2 support on x86 (32bit) host cpus.
diff --git a/audio/audacity/audacity.SlackBuild b/audio/audacity/audacity.SlackBuild
index 488b455298..bc49fb7233 100644
--- a/audio/audacity/audacity.SlackBuild
+++ b/audio/audacity/audacity.SlackBuild
@@ -94,6 +94,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# https://github.com/audacity/audacity/issues/6352
+if [[ $(uname -m) =~ i*86 ]]; then SLKCFLAGS+=" -msse2"; fi
+
sed -i 's|^#include "allegro.h"|#include "portsmf/allegro.h"|' libraries/lib-note-track/WrapAllegro.h
mkdir -p build