}
__overwrite__ :
[
+ {
+ __condition__ : "VARS.dist not in ['DB09']"
+ 'APPLICATION.rm_products' : ['TTK']
+ }
{
__condition__ : "VARS.dist not in ['DB09','DB10', 'DB11']"
'APPLICATION.products.MeshGems' : {tag : '2.13-1', hpc : 'yes', base: 'no'}
--- /dev/null
+default :
+{
+ name : "TTK"
+ build_source : "script"
+ compil_script : $name + $VARS.scriptExtension
+ get_source : "archive"
+ environ :
+ {
+ env_script : "TTK.py"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'ParaView', 'boost', 'qt', 'embree']
+ build_depend : ["cmake", "swig"]
+ opt_depend : ['openmpi']
+ patches : []
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ install_dir : 'base'
+ properties :
+ {
+ single_install_dir : "no"
+ incremental : "yes"
+ }
+}
--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo "TTK" $VERSION
+echo "##########################################################################"
+
+CMAKE_OPTIONS=""
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
+CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
+CMAKE_OPTIONS+=" -DTK_BUILD_PARAVIEW_PLUGINS=ON"
+
+echo
+echo "*** cmake" $CMAKE_OPTIONS
+rm -rf $BUILD_DIR
+mkdir -p $BUILD_DIR
+cd $BUILD_DIR
+cmake $CMAKE_OPTIONS $SOURCE_DIR
+if [ $? -ne 0 ]
+then
+ echo "ERROR on cmake"
+ exit 1
+fi
+
+echo
+echo "*** make" $MAKE_OPTIONS
+make $MAKE_OPTIONS
+if [ $? -ne 0 ]
+then
+ echo "ERROR on make"
+ exit 2
+fi
+
+echo
+echo "*** make install"
+make install
+if [ $? -ne 0 ]
+then
+ echo "ERROR on make install"
+ exit 3
+fi
+
+echo
+echo "########## END"
echo
echo "*** cmake" $CMAKE_OPTIONS
+rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR/openturns
mkdir -p $BUILD_DIR/cache/pip
cd $BUILD_DIR/openturns
--- /dev/null
+#!/usr/bin/env python
+import os.path
+
+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'))
+
+def set_nativ_env(env):
+ pass