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

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