diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-04 09:43:57 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-04 09:43:57 +0100 |
commit | 5803e06e8970522aca489d6ad1ff36d38ec382c3 (patch) | |
tree | 62bda258d0c754b2a23413c4ca0d6ed6e038a6d5 /extra/faac/PKGBUILD | |
parent | 4920288d3ca56676f0e28e14f7fb8fd3eedac339 (diff) | |
download | packages-5803e06e8970522aca489d6ad1ff36d38ec382c3.tar.xz |
extra/faac: no -msse2 on i686 and i486
Diffstat (limited to 'extra/faac/PKGBUILD')
-rw-r--r-- | extra/faac/PKGBUILD | 17 |
1 files changed, 17 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 |