Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/openal/PKGBUILD
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2019-11-29 20:46:20 +0200
committerErich Eckner <git@eckner.net>2019-12-02 19:54:31 +0100
commitf1461973ae8a763015aaabb8f2f863fe27c39043 (patch)
treeb33d1fcc0372d371d7ba6c398be5ba0fb1a161c0 /extra/openal/PKGBUILD
parent318dcea8838f95778a022f896a6d9ee879555999 (diff)
extra/openal: Add PKGBUILD SSE patch
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Diffstat (limited to 'extra/openal/PKGBUILD')
-rw-r--r--extra/openal/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
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