index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-04-30 15:46:25 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-04-30 15:46:25 +0200 |
commit | 60a48044e3ed5fc05444d0261a269d04f2852e7a (patch) | |
tree | f911974bc550bcca166f5580ba96cefeb77ff0e3 /extra/sdl2 | |
parent | bf2448ba958588b7cfd71e00c6f6d99f915720e6 (diff) |
-rw-r--r-- | extra/sdl2/PKGBUILD | 25 |
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 |