{
env_script : "TTK.py"
}
- depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'ParaView', 'boost', 'qt', 'embree']
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'ParaView', 'boost', 'qt', 'embree', "graphviz"]
build_depend : ["cmake", "swig"]
opt_depend : ['openmpi']
patches : []
incremental : "yes"
}
}
+
+version_f8dafde2d7 :
+{
+ patches: ['ttk-f8dafde2d7-p01.patch']
+}
CMAKE_OPTIONS=""
CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
-CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
+if [ -n "$SAT_DEBUG" ]; then
+ CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug"
+else
+ CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
+fi
CMAKE_OPTIONS+=" -DTK_BUILD_PARAVIEW_PLUGINS=ON"
+CMAKE_OPTIONS+=" -Dembree_DIR:PATH=${EMBREE_ROOT_DIR}/lib/cmake/embree-${EMBREE_VERSION}"
echo
echo "*** cmake" $CMAKE_OPTIONS
#!/usr/bin/env python
import os.path
+import platform
def set_env(env, prereq_dir, version):
env.set('TTK_ROOT_DIR', prereq_dir)
env.set('TTK_HOME', prereq_dir)
env.set('TTK_VERSION',version)
- env.prepend('PATH', os.path.join(prereq_dir,'bin'))
- env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
pyver = 'python' + env.get('PYTHON_VERSION')
- env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+ if platform.system() == "Windows" :
+ env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+ env.prepend('PV_PLUGIN_PATH', os.path.join(prereq_dir, 'bin'))
+ env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+ else:
+ env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+ env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
+ env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+ env.prepend('PV_PLUGIN_PATH',os.path.join(prereq_dir,'lib','plugins')
def set_nativ_env(env):
pass
--- /dev/null
+--- ttk_ref/CMake/config.cmake 2022-10-06 12:09:21.179305232 +0200
++++ ttk_dev/CMake/config.cmake 2022-10-06 12:08:43.950092714 +0200
+@@ -160,6 +160,10 @@
+ message(STATUS "Zlib not found, disabling Zlib support in TTK.")
+ endif()
+
++SET(EMBREE_ROOT_DIR $ENV{EMBREE_ROOT_DIR} CACHE PATH "Path to the EMBREE.")
++IF(EMBREE_ROOT_DIR)
++ LIST(APPEND CMAKE_PREFIX_PATH "${EMBREE_ROOT_DIR}")
++ENDIF(EMBREE_ROOT_DIR)
+ find_package(EMBREE 3.4 QUIET)
+ if(EMBREE_FOUND)
+ option(TTK_ENABLE_EMBREE "Enable embree raytracing for ttkCinemaImaging" ON)
+@@ -169,6 +173,10 @@
+ message(STATUS "EMBREE library not found, disabling embree support in TTK.")
+ endif()
+
++SET(GRAPHVIZ_ROOT_DIR $ENV{GRAPHVIZ_ROOT_DIR} CACHE PATH "Path to the GRAPHVIZ.")
++IF(GRAPHVIZ_ROOT_DIR)
++ LIST(APPEND CMAKE_PREFIX_PATH "${GRAPHVIZ_ROOT_DIR}")
++ENDIF(GRAPHVIZ_ROOT_DIR)
+ find_package(Graphviz QUIET)
+ if(Graphviz_FOUND)
+ option(TTK_ENABLE_GRAPHVIZ "Enable GraphViz support" ON)