Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-02-25 17:27:15 +0200
committerTasos Sahanidis <tasos@tasossah.com>2024-02-25 17:27:15 +0200
commit054302b17d89933a60e183b66654fa2652167694 (patch)
tree8655e2bd834e730987360b3184a58ac0714b0ab2
parent52a3f64ddbfc2ba98c971eafb43b83a0abcf89f9 (diff)
Revert "extra/sdl2: Temporarily remove patch"
This reverts commit 52a3f64ddbfc2ba98c971eafb43b83a0abcf89f9.
-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..1767396a
--- /dev/null
+++ b/extra/sdl2/PKGBUILD
@@ -0,0 +1,25 @@
+# patch per architecture
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ 0,/cmake/s/cmake /cmake -DSDL_SSEMATH=OFF -DSDL_MMX=OFF -DSDL_3DNOW=OFF -DSDL_SSE=OFF -DSDL_SSE2=OFF -DSDL_SSE3=OFF /
+ '
+ )"
+fi
+if [ "$CARCH" = 'i686' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ 0,/cmake/s/cmake /cmake -DSDL_SSEMATH=ON -DSDL_MMX=ON -DSDL_3DNOW=ON -DSDL_SSE=ON -DSDL_SSE2=OFF -DSDL_SSE3=OFF /
+ '
+ )"
+fi
+if [ "$CARCH" = 'pentium4' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ 0,/cmake/s/cmake /cmake -DSDL_SSEMATH=ON -DSDL_MMX=ON -DSDL_3DNOW=ON -DSDL_SSE=ON -DSDL_SSE2=ON -DSDL_SSE3=OFF /
+ '
+ )"
+fi