# 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