summaryrefslogtreecommitdiff
path: root/community/blender/PKGBUILD
blob: 61e6abfb4e0119b108ababec46b95ebf304cd7c5 (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+=('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/
  '
)"