From f1461973ae8a763015aaabb8f2f863fe27c39043 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Fri, 29 Nov 2019 20:46:20 +0200 Subject: extra/openal: Add PKGBUILD SSE patch Signed-off-by: Tasos Sahanidis --- extra/openal/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 extra/openal/PKGBUILD (limited to 'extra/openal/PKGBUILD') diff --git a/extra/openal/PKGBUILD b/extra/openal/PKGBUILD new file mode 100644 index 00000000..6c8ed3c2 --- /dev/null +++ b/extra/openal/PKGBUILD @@ -0,0 +1,22 @@ +if [ "$CARCH" = 'pentium4' ]; then + eval "$( + declare -f build | \ + sed ' + s@cmake@cmake -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE4_1=0@ + ' + )" +elif [ "$CARCH" = 'i686' ]; then + eval "$( + declare -f build | \ + sed ' + s@cmake@cmake -DALSOFT_ENABLE_SSE2_CODEGEN=0 -DALSOFT_CPUEXT_SSE2=0@ + ' + )" +elif [ "$CARCH" = 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s@cmake@cmake -DALSOFT_CPUEXT_SSE=0 -DALSOFT_ENABLE_SSE_CODEGEN=0 -DALSOFT_ENABLE_SSE2_CODEGEN=0@ + ' + )" +fi -- cgit v1.2.3-70-g09d2