summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2019-07-17 08:50:13 +0200
committerbartus2019-07-17 08:50:13 +0200
commit46599097096a17d437bfd266831f8e662901d288 (patch)
treecfaf9a7a16ef224c9e1caee7ac8c29455cc8d252
parent0d84ebb3e3eb3e289a0fbc553b3a0b44982a72e9 (diff)
downloadaur-46599097096a17d437bfd266831f8e662901d288.tar.gz
add DISABLE_CUDA env variable support
use can disable cuda makedepends with one of: . export DISABLE_CUDA=1 . DISABLE_CUDA=1 makepkg . makepkg DISABLE_CUDA=1
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 254bbcc5bd8..eb331a94f5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
#to enforce cuda verison uncomment this line and update value of sm_xx model accordingly
#_cuda_capability+=(sm_30 sm_35 sm_37) # suppress to prevent Travis build exceed time limit.
-_cuda_capability+=(sm_50 sm_52 sm_60 sm_61 sm_70 sm_75)
+#_cuda_capability+=(sm_50 sm_52 sm_60 sm_61 sm_70 sm_75)
pkgname=blender-2.7
_fragment="#branch=blender2.7"
@@ -17,7 +17,7 @@ depends=('alembic' 'libgl' 'python' 'python-numpy' 'openjpeg' 'desktop-file-util
'openvdb' 'opencollada' 'opensubdiv' 'openshadinglanguage' 'libtiff' 'libpng')
#optdepends=('cuda: CUDA support in Cycles')
makedepends=('git' 'cmake' 'boost' 'mesa' 'llvm' 'ninja')
-makedepends+=('cuda') # disable to prevent build process from exiting Travis 50m build time limit
+((DISABLE_CUDA)) || makedepends+=('cuda') # disable to prevent build process from exiting Travis 50m build time limit
options=(!strip)
provides=('blender=2.7')
license=('GPL')