summaryrefslogtreecommitdiff
path: root/community/blender/PKGBUILD
blob: 39e79cff11f43a43edda21197dbeb8587e1fa32a (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
37
38
39
40
41
42
43
makedepends=(
  ${makedepends[@]/cuda/}
)
depends=(
  ${depends[@]/openimagedenoise/}
)
pkgdesc+=", without CUDA support"
eval "$(
  declare -f build \
  | sed '
    /^\s*cmake / s/;$/ -DWITH_CYCLES_CUDA_BINARIES=OFF -DWITH_CYCLES_DEVICE_CUDA=OFF -DWITH_RAYOPTIMIZATION=OFF;/
  '
)"
source_i686+=('no-sse2.patch')
sha512sums_i686+=('fce9d99e71900a6953287ba9e29ca56b54015e02bdd273da4fd86fd2556499c18b54cb0d835db47ee96f6fdd578a9cd6286b1b82b92c9db5582ce57c277590ab')
if [ "${CARCH}" = 'i686' ]; then
  eval "$(
    declare -f prepare \
    | sed '
      $ i patch -Np1 -i "$srcdir"/no-sse2.patch
    '
  )"
fi

# no Nvidia Optix
pkgdesc+=", without Optix support"
eval "$(
  declare -f build \
  | sed '
    /^\s*cmake / s/;$/ -DWITH_CYCLES_DEVICE_OPTIX=OFF/
  '
)"

# FS32#182: opensubdiv/openexr/openvdb currently fails to rebuild
depends=(
  ${depends[@]/opensubdiv/}
)
depends=(
  ${depends[@]/openexr/}
)
depends=(
  ${depends[@]/openvdb/}
)