}
depend : ['Python',
'lapack',
- 'hdf5',
- 'tbb',
- 'nlopt',
- 'libxml2',
- 'eigen',
- 'netcdf',
- 'gdal',
- 'boost',
- 'ADAO',
- 'KERNEL',
- 'GUI',
- 'Sphinx',
- 'qwt',
+ 'hdf5',
+ 'cgns',
+ 'tbb',
+ 'nlopt',
+ 'libxml2',
+ 'eigen',
+ 'netcdf',
+ 'gdal',
+ 'boost',
+ 'ADAO',
+ 'KERNEL',
+ 'GUI',
+ 'Sphinx',
+ 'qwt',
'qt',
'ParaView',
- 'openturns',
- 'numpydoc',
- 'YACS',
- 'YDEFX',
- 'CAS',
- 'CONFIGURATION'
- ]
+ 'openturns',
+ 'numpydoc',
+ 'YACS',
+ 'YDEFX',
+ 'CAS',
+ 'CONFIGURATION'
+ ]
build_depend : ["cmake", "swig"]
opt_depend : ['openmpi']
patches : []
CMAKE_OPTIONS+=" -DPy2cpp_DIR=$PY2CPP_ROOT_DIR//lib/cmake/py2cpp"
# strangely Centos 8 fails to guess qwt installation
-if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && $APPLICATION_NAME =~ native ]]; then
+if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then
CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib64/libqwt-qt5.so"
CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt"
-elif [ "$QWT_ROOT_DIR" != "/usr" ]; then
+elif [ "$SAT_qwt_IS_NATIVE" != "1" ]; then
CMAKE_OPTIONS+=" -DQWT_LIBRARY=$QWT_ROOT_DIR/lib/libqwt.so"
CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=$QWT_ROOT_DIR/include"
fi
CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=$PYTHONBIN"
CMAKE_OPTIONS+=" -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE"
-if [ "$PYTHON_ROOT_DIR" != "/usr" ]; then
+if [ "$SAT_Python_IS_NATIVE" != "1" ]; then
CMAKE_OPTIONS+=" -DPYTHON_LIBRARY=$PYTHON_ROOT_DIR/lib/libpython$PYTHON_VERSION.so"
fi
-if [ "$SPHINX_ROOT_DIR" != "/usr" ]; then
+if [ "$SAT_Sphinx_IS_NATIVE" != "1" ]; then
CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR:FILEPATH=$SPHINX_ROOT_DIR"
CMAKE_OPTIONS+=" -DSPHINX_EXECUTABLE:FILEPATH=$SPHINX_ROOT_DIR/bin/sphinx-build"
fi
CMAKE_OPTIONS+=" -DCMAKE_FIND_ROOT_PATH=ON"
CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE:PATH=$(which swig)"
+if [ "${SAT_cgns_IS_NATIVE}" != "1" ]
+then
+ CMAKE_OPTIONS+=" -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include"
+ CMAKE_OPTIONS+=" -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so"
+fi
if [ -n "$SAT_DEBUG" ]; then
CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug"
else
fi
CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=${PYTHONBIN}"
SITE_PATCH=/usr/lib/pypy/dist-packages/setuptools/site-patch.py
;;
FD34)
- SITE_PATCH=
+ ###SITE_PATCH=
+ SITE_PATCH=$SOURCE_DIR/addons/site-patch.py
;;
CO8*)
SITE_PATCH=/usr/lib/pypy/dist-packages/setuptools/site-patch.py
-diff -Naur omniORB-4.2.3_ref/config/config.mk omniORB-4.2.3_new/config/config.mk
---- omniORB-4.2.3_ref/config/config.mk 2017-05-11 15:01:56.000000000 +0200
-+++ omniORB-4.2.3_new/config/config.mk 2021-12-10 15:49:15.278207366 +0100
+--- omniORB-4.2.3_ref/config/config.mk 2022-04-20 12:57:28.336536788 +0200
++++ omniORB-4.2.3_new/config/config.mk 2022-04-20 12:57:36.864615145 +0200
+@@ -25,7 +25,7 @@
+ # You should also look at <top>/mk/platforms/$(platform).mk and if necessary
+ # edit the make variables, such as CC and CXX, in the file.
+
+-#platform = x86_win32_vs_15
++platform = x86_win32_vs_15
+ #platform = x86_win32_vs_14
+ #platform = x86_win32_vs_12
+ #platform = x86_win32_vs_11
@@ -116,7 +116,7 @@
# libraries. Setting this variable causes the build to break in subtle
# ways. DO NOT SET THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
#
EXPORT_TREE = $(TOP)
+--- omniORB-4.2.3_ref/src/tool/omniidl/cxx/dir.mk 2018-05-08 18:57:00.000000000 +0200
++++ omniORB-4.2.3_new/src/tool/omniidl/cxx/dir.mk 2022-04-20 12:41:47.273874626 +0200
+@@ -196,7 +196,7 @@
+ PYLIB := -lpython$(subst .,,$(PYVERSION))
+ CXXLINKOPTIONS += $(patsubst %,-L%,$(PYLIBDIR))
+ else
+-PYLIB := python$(subst .,,$(PYVERSION)).lib
++PYLIB := python$(subst .,,$(PYVERSION))_d.lib
+ CXXLINKOPTIONS += $(patsubst %,-libpath:%,$(PYLIBDIR))
+ endif
+