From cc9ee0047f335a8e732ed59351c70abea4ab1023 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 27 Sep 2022 17:03:15 +0200 Subject: [PATCH] add catalyst --- applications/SALOME-master-native.pyconf | 1 + applications/SALOME-master.pyconf | 1 + products/ParaView.pyconf | 1 + products/catalyst.pyconf | 29 ++++++++++++++++++++++ products/compil_scripts/ParaView-5.11.0.sh | 1 + products/env_scripts/catalyst.py | 13 ++++++++++ 6 files changed, 46 insertions(+) create mode 100644 products/catalyst.pyconf create mode 100644 products/env_scripts/catalyst.py diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 8452987..a76c28e 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -38,6 +38,7 @@ APPLICATION : boost : 'native' #CAS : 'CR753-SALOME-PATCH' CAS : {tag : 'cfcbf4e', section: 'version_CR753_SALOME_PATCH', base: 'no'} + catalyst: '2.0' C3PO: 'v2.0' certifi : 'native' cgns : '4.2.0' diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index 285c08b..53216fc 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -38,6 +38,7 @@ APPLICATION : boost : '1.71.0' #CAS : 'CR753-SALOME-PATCH' CAS : {tag : 'cfcbf4e', section: 'version_CR753_SALOME_PATCH', base: 'no'} + catalyst: '2.0' C3PO: 'v2.0' certifi : '2018.8.24' cgns : '4.2.0' diff --git a/products/ParaView.pyconf b/products/ParaView.pyconf index b99217e..e780ded 100755 --- a/products/ParaView.pyconf +++ b/products/ParaView.pyconf @@ -159,6 +159,7 @@ version_5_11_0_MPI : # 'paraview.0020.findMPI.patch', # 'paraview.0021-FindGDAL.patch' # ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] } version_5_11_0_MPI_LATA_64BITS_IDS : diff --git a/products/catalyst.pyconf b/products/catalyst.pyconf new file mode 100644 index 0000000..bd3f584 --- /dev/null +++ b/products/catalyst.pyconf @@ -0,0 +1,29 @@ + name : "catalyst" + build_source : "cmake" + get_source : "archive" + archive_info : {archive_name : "catalyst-2.0-431a8a1.tar.gz"} + environ : + { + env_script : $name + ".py" + } + depend : [ + 'Python', + 'hdf5', + 'qt', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'rkCommon', 'gdal', 'netcdf'] + build_depend : ["cmake"] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + } +} diff --git a/products/compil_scripts/ParaView-5.11.0.sh b/products/compil_scripts/ParaView-5.11.0.sh index 8cffe1c..6f57dc2 100755 --- a/products/compil_scripts/ParaView-5.11.0.sh +++ b/products/compil_scripts/ParaView-5.11.0.sh @@ -36,6 +36,7 @@ CMAKE_OPTIONS+=" -DPARAVIEW_AUTOLOAD_PLUGIN_CatalystScriptGeneratorPlugin=ON" CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_CATALYST_ADAPTORS=ON" CMAKE_OPTIONS+=" -DUSE_CATALYST:BOOL=ON" CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON" +CMAKE_OPTIONS+=" -Dcatalyst_DIR=${CATALYST_ROOT_DIR}/lib/cmake/catalyst-2.0" ### spns #20550 - Headless mode if [ -n "$PARAVIEW_HEADLESS_MODE" ]; then diff --git a/products/env_scripts/catalyst.py b/products/env_scripts/catalyst.py new file mode 100644 index 0000000..c374a8b --- /dev/null +++ b/products/env_scripts/catalyst.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('CATALYST_ROOT_DIR', prereq_dir) + env.set('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) + env.set('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib', 'catalyst')) + +def set_nativ_env(env): + pass -- 2.39.2