From bf2448ba958588b7cfd71e00c6f6d99f915720e6 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 30 Apr 2021 13:03:55 +0200 Subject: extra/openal: redone SSE(2) patching (thanks, KitsuWhooa) --- extra/openal/PKGBUILD | 28 ++++++++++------------------ extra/openal/openal-i486.patch | Bin 2012 -> 0 bytes extra/openal/openal-i686.patch | Bin 2012 -> 2191 bytes extra/openal/openal-pentium4.patch | Bin 1657 -> 0 bytes 4 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 extra/openal/openal-i486.patch delete mode 100644 extra/openal/openal-pentium4.patch (limited to 'extra') diff --git a/extra/openal/PKGBUILD b/extra/openal/PKGBUILD index 2e982053..4318ba27 100644 --- a/extra/openal/PKGBUILD +++ b/extra/openal/PKGBUILD @@ -1,37 +1,29 @@ # disable Intel micro-optimizations and intrinsics per platform -source+=('openal-pentium4.patch' 'openal-i686.patch' 'openal-i486.patch') +# patch done by KitsuWhooa, thanks (see https://github.com/kcat/openal-soft/pull/559) +source+=('openal-i686.patch') sha512sums+=( - 'bba897b5c1f39775ec28c4e92e3ef0e3e69d62c9463cacd6841c704e7ff5130860cef7f16e464593491dcb50a0036c487188939a989780b5a5c7321f735ae820' - '7fdbf5efa7fb223666592d1d78e684798e29a46e7948f379d8b8e3f527c42f1875539722cfacb88182a3187dfb334de3aea012298a6ab111d3c06abd8d41c9b4' - '54423f4a45a90570e5331c98916dcb7442bc97b39c1161c0dad2450da829f8866e9c95098b84b4f9fabce34f44df3c1b9f43d257672c7d210236160548ac081f' + '41e4134fea907d2f9b95eb496fde5eb7ce4bd8bfa1ad97c8d1a88b4454846195a1725c5bab047981e795d25eb29959e07fa349b212c24bbc86c06a597ac43e78' ) if [ "$CARCH" = 'pentium4' ]; then eval "$( - declare -f prepare | \ - sed ' - /git/ a \ - patch -p1 -i "$srcdir/openal-pentium4.patch" - ' + declare -f build | \ + sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0;/' )" fi if [ "$CARCH" = 'i686' ]; then eval "$( declare -f prepare | \ - sed ' - /git/ a \ - patch -p1 -i "$srcdir/openal-i686.patch" - ' + sed '/cd openal-soft/ a patch -p1 -i \"$srcdir/openal-i686.patch\"' + declare -f build | \ + sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE2=0;/' )" fi if [ "$CARCH" = 'i486' ]; then eval "$( - declare -f prepare | \ - sed ' - /git/ a \ - patch -p1 -i "$srcdir/openal-i486.patch" - ' + declare -f build | \ + sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE2=0 -DALSOFT_CPUEXT_SSE=0;/' )" fi diff --git a/extra/openal/openal-i486.patch b/extra/openal/openal-i486.patch deleted file mode 100644 index f59cf4f4..00000000 Binary files a/extra/openal/openal-i486.patch and /dev/null differ diff --git a/extra/openal/openal-i686.patch b/extra/openal/openal-i686.patch index 44261849..4a42844d 100644 Binary files a/extra/openal/openal-i686.patch and b/extra/openal/openal-i686.patch differ diff --git a/extra/openal/openal-pentium4.patch b/extra/openal/openal-pentium4.patch deleted file mode 100644 index a5a39e44..00000000 Binary files a/extra/openal/openal-pentium4.patch and /dev/null differ -- cgit v1.2.3-54-g00ecf