[Lunar-commits] <moonbase-other> blender: adding optional depends for numpy and adjusting BUILD logic to detect if numpy
Dennis Veatch
dennisveatch at bellsouth.net
Sat Oct 11 13:55:37 CEST 2014
commit 93a6f4573735cfecebe34739055fe4d60fa93415
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Sat, 11 Oct 2014 07:54:51 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/93a6f4573735cfecebe34739055fe4d60fa93415
blender: adding optional depends for numpy and adjusting BUILD logic to detect if numpy
has been compiled with python 3 support.
---
graphics/blender/BUILD | +6/-1
graphics/blender/DEPENDS | +3/-0
2 files changed, 9 insertions(+), 1 deletion(-)
--- a/graphics/blender/BUILD
+++ b/graphics/blender/BUILD
@@ -6,9 +6,14 @@
OPTS+=" -DLLVM_LIBRARY=/usr/lib/libLLVM-$(module_version llvm).so"
fi &&
+ if in_depends $MODULE numpy && [ -f /usr/bin/f2py3 ] ; then
+ OPTS+=" -DWITH_PYTHON_INSTALL_NUMPY=ON"
+ else
+ OPTS+=" -DWITH_PYTHON_INSTALL_NUMPY=OFF"
+ fi &&
+
OPTS+=" -DWITH_IMAGE_REDCODE=ON \
-DWITH_PYTHON_INSTALL=OFF \
- -DWITH_PYTHON_INSTALL_NUMPY=OFF \
-DWITH_STATIC_LIBS=OFF \
-DWITH_PYTHON=ON \
-DWITH_PLAYER=ON \
--- a/graphics/blender/DEPENDS
+++ b/graphics/blender/DEPENDS
@@ -29,3 +29,6 @@ optional_depends "openjpeg" "-DWITH_SYSTEM_OPENJPEG=1" "-DWITH_SYSTEM_OPENJPEG
optional_depends "imageworks-OpenColorIO" "-DWITH_OPENCOLORIO=1" "-DWITH_OPENCOLORIO=0" "For color management support"
optional_depends "OpenImageIO-oiio" "-DWITH_CYCLES=1" "-DWITH_CYCLES=0" "For cycles support"
+# This does have -D switch but we do not know if numpy has been compiled with Python-3 support
+# so this will be checked in build
+optional_depends "numpy" "" "" "To support high-performance numerical calculations"
More information about the Lunar-commits
mailing list