Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/sdl2/PKGBUILD
blob: 3eeb30b745c58ce0f655dee5d05b1206a6e9a5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# patch per architecture
if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        0,/cmake/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 '
        0,/cmake/s/cmake /cmake -DSSEMATH=ON -DMMX=ON -DSSE=ON /
      '
  )"
fi
if [ "$CARCH" = 'pentium4' ]; then
  eval "$(
    declare -f build | \
      sed '
        0,/cmake/s/cmake /cmake -DSSEMATH=ON -DMMX=ON -DSSE=ON -DSSE2=ON /
      '
  )"
fi