summaryrefslogtreecommitdiff
path: root/extra/faac
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-02-04 09:43:57 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-02-04 09:43:57 +0100
commit5803e06e8970522aca489d6ad1ff36d38ec382c3 (patch)
tree62bda258d0c754b2a23413c4ca0d6ed6e038a6d5 /extra/faac
parent4920288d3ca56676f0e28e14f7fb8fd3eedac339 (diff)
downloadpackages-5803e06e8970522aca489d6ad1ff36d38ec382c3.tar.xz
extra/faac: no -msse2 on i686 and i486
Diffstat (limited to 'extra/faac')
-rw-r--r--extra/faac/PKGBUILD17
-rw-r--r--extra/faac/faac-1_30-no-sse.patch14
2 files changed, 31 insertions, 0 deletions
diff --git a/extra/faac/PKGBUILD b/extra/faac/PKGBUILD
new file mode 100644
index 00000000..86cb6286
--- /dev/null
+++ b/extra/faac/PKGBUILD
@@ -0,0 +1,17 @@
+# no SSE on i686 and i486 (it's called SSE, but actually add -msse2 to gcc flags, hence the
+# patch also applies for i686)
+if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
+ source+=('faac-1_30-no-sse.patch')
+ sha512sums+=('6e93a474dfdd9f5e61cc43f7b93d4807144de951aac6353464c8aff5cf0b8edc07199518bb52d4ef5f2904ec177f5ad13a2e3b07039cebd95661c73e245add83')
+ b2sums+=('be943722ba56435184be88a234cf794b30927f5b31aa3246fc201b0b8404073c4ffba547361585a4f32b1a3b5a33742055401dbbcad15dba048ba1ce84d9f0ef')
+ eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() { cd "${pkgname}-${pkgver}"\n}\n'
+ } \
+ | sed '
+ /autoreconf/ i \
+ patch -Np1 -i "$srcdir/faac-1_30-no-sse.patch"
+ '
+ )"
+fi
diff --git a/extra/faac/faac-1_30-no-sse.patch b/extra/faac/faac-1_30-no-sse.patch
new file mode 100644
index 00000000..30f7f322
--- /dev/null
+++ b/extra/faac/faac-1_30-no-sse.patch
@@ -0,0 +1,14 @@
+diff -rauN faac-1_30/configure.ac faac-1_30-no-sse-patch/configure.ac
+--- faac-1_30/configure.ac 2019-10-16 12:52:19.000000000 +0200
++++ faac-1_30-no-sse-patch/configure.ac 2022-02-04 09:34:27.670825969 +0100
+@@ -34,7 +34,9 @@
+ fi
+
+ AM_CONDITIONAL(MINGW, test "$host_os" = "mingw32")
+-AM_CONDITIONAL(CPUSSE, test "$host_cpu" = "x86_64" || test "$host_cpu" = "i686")
++dnl This is just wrong for ISAs before pentium4 and SSE2
++dnl AM_CONDITIONAL(CPUSSE, test "$host_cpu" = "x86_64" || test "$host_cpu" = "i686")
++AM_CONDITIONAL(CPUSSE, false)
+
+ AC_CHECK_TOOL(WINDRES, windres)
+