Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/libjxl/PKGBUILD
blob: 000f3c0329bc1868fb21ca71190eab44bc298299 (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
28
29
30
31
32
33
34
35
36
if [ "${CARCH}" = "i486" ]; then
  # Java broken on i486 temporarily
  makedepends=(${makedepends[@]//java-environment/})
  eval "$(
    declare -f build | \
      sed '
        s/-DJPEGXL_INSTALL_JARDIR='.*'//
      '
  )"

  eval "$(
    declare -f package_libjxl | \
      sed '
        /mv.*jar/d
      '
  )"

  # break circle with gimp
  makedepends=(${makedepends[@]//gimp/})
fi

# Disable SSE2
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
  eval "$(
    declare -f build | \
      sed 's/-DCMAKE_BUILD_TYPE/-DSJPEG_ENABLE_SIMD=OFF -DCMAKE_BUILD_TYPE/'
  )"

  eval "$(
    declare -f prepare | \
      sed '$ d' | sed '$ a sed -i s/HWY_SSSE3/HWY_SSSE3\\|HWY_SSE2\\|HWY_SSE4/ "${srcdir}/libjxl/CMakeLists.txt";}'
  )"
fi

# they fail in various ways
unset check