Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/sdl2/PKGBUILD
blob: 675b8a7fd824ed4159cdc56e35b2952ccc4448e9 (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 -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_SSE=ON /
      '
  )"
fi
if [ "$CARCH" = 'pentium4' ]; then
  eval "$(
    declare -f build | \
      sed '
        0,/cmake/s/cmake /cmake -DSDL_SSEMATH=ON -DSDL_MMX=ON -DSDL_SSE=ON -DSDL_SSE2=ON /
      '
  )"
fi