Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/sdl2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sdl2/PKGBUILD')
-rw-r--r--extra/sdl2/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/sdl2/PKGBUILD b/extra/sdl2/PKGBUILD
new file mode 100644
index 00000000..2632d679
--- /dev/null
+++ b/extra/sdl2/PKGBUILD
@@ -0,0 +1,25 @@
+# patch per architecture
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/cmake /cmake -DSSEMATH=OFF -DMMX=OFF -D3DNOW=OFF -DSSE=OFF -DSSE2=OFF -DSSE3=OFF /
+ '
+ )"
+fi
+if [ "$CARCH" = 'i686' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/cmake /cmake -DSSEMATH=ON -DMMX=ON -DSSE=ON /
+ '
+ )"
+fi
+if [ "$CARCH" = 'pentium4' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/cmake /cmake -DSSEMATH=ON -DMMX=ON -DSSE=ON -DSSE2=ON /
+ '
+ )"
+fi