summaryrefslogtreecommitdiff
path: root/extra/libjpeg-turbo/PKGBUILD
blob: 15f620d3b4a937e81da78e42fd69bc2ffeb2bed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# no Java on i486
makedepends=(${makedepends[@]//jdk8-openjdk/})
makedepends_i686+=(jdk8-openjdk)

if [ "${CARCH}" = "i486" ]; then
  # no Java
  eval "$(
    declare -f build | \
      sed '
        s/-DWITH_JAVA=1/-DWITH_JAVA=0/
      '
  )"

  # no SIMD optimizations
  eval "$(
    declare -f build | \
      sed '
        s/cmake/cmake -DWITH_SIMD=0/
      '
  )"
fi