summaryrefslogtreecommitdiff
path: root/community/blender/PKGBUILD
blob: 868be908d84afcc56f7a032b1454f02e2bb6f850 (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
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+=('arm-no-sse2.patch')
sha512sum_i686+=('13890f9cd11ca20bcb6f12206c990e25c0d08699feab0fca37607d847d2aebd2d2f423023986e120eaaeb0beca9a440a4d42007dcac2054fe6cdaf745de43402')
if [ "${CARCH}" = 'i686' ]; then
  eval "$(
    declare -f prepare \
    | sed '
      $ i patch -Np1 -i "$srcdir"/arm-no-sse2.patch
    '
  )"
fi

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