summaryrefslogtreecommitdiff
path: root/extra/libjpeg-turbo/PKGBUILD
blob: e3b65befeeff453286a6ee369757a8effaec22bc (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
26
27
# no Java on i486
makedepends=(${makedepends[@]//java-environment>11/})
makedepends_i686+=("java-environment>11")
makedepends_pentium4=("${makedepends_i686[@]}")

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

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

# broken keys, see upstream FS#68677, solved by
# downloading the key manually and adding it
# manually to the build slaves