mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
COMP: adjust makeParaView for paraview-5.7.0 (uses python3)
This commit is contained in:
48
etc/patches/scotch_6.0.7
Normal file
48
etc/patches/scotch_6.0.7
Normal file
@ -0,0 +1,48 @@
|
||||
--- scotch_6.0.6/src/libscotch/Makefile.orig 2019-04-29 14:59:53.957103493 +0200
|
||||
+++ scotch_6.0.6/src/libscotch/Makefile 2019-04-29 18:50:42.560080675 +0200
|
||||
@@ -51,6 +51,12 @@
|
||||
|
||||
.PHONY : ptscotch scotch ptinstall install clean realclean
|
||||
|
||||
+ifeq ($(WM_OSTYPE),MSwindows)
|
||||
+
|
||||
+libscotch : libscotch$(LIB) scotch.h
|
||||
+
|
||||
+endif
|
||||
+
|
||||
scotch :
|
||||
$(MAKE) CC="$(CCS)" CCD="$(CCS)" \
|
||||
scotch.h \
|
||||
@@ -438,6 +444,11 @@
|
||||
wgraph_part_zr$(OBJ) \
|
||||
wgraph_store$(OBJ)
|
||||
|
||||
+ifeq ($(WM_OSTYPE),MSwindows)
|
||||
+## Add into libscotch instead of having a separate library
|
||||
+LIBSCOTCHDEPS += library_error_exit$(OBJ)
|
||||
+endif
|
||||
+
|
||||
##
|
||||
## Todo list.
|
||||
##
|
||||
--- scotch_6.0.6/src/Makefile.orig 2018-07-14 17:24:49.000000000 +0200
|
||||
+++ scotch_6.0.6/src/Makefile 2019-04-29 18:39:16.365132864 +0200
|
||||
@@ -89,9 +89,18 @@
|
||||
$(mandir)/man1 : $(mandir)
|
||||
-$(MKDIR) $(mandir)/man1
|
||||
|
||||
+ifeq ($(WM_OSTYPE),MSwindows)
|
||||
+
|
||||
+libscotch : required
|
||||
+ (cd libscotch ; $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) libscotch && $(MAKE) install)
|
||||
+
|
||||
+else
|
||||
+
|
||||
libscotch : required
|
||||
(cd libscotch ; $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
|
||||
|
||||
+endif
|
||||
+
|
||||
scotch : libscotch
|
||||
(cd scotch ; $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
|
||||
(cd libscotchmetis ; $(MAKE) scotch && $(MAKE) install)
|
||||
@ -2,7 +2,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
@ -18,8 +18,7 @@
|
||||
# ParaView make/install helper functions
|
||||
#
|
||||
# Note
|
||||
# Obtaining paths via 'python-config' is possible, but may not always
|
||||
# resolve properly:
|
||||
# Obtaining paths via 'python-config' may not always resolve properly:
|
||||
#
|
||||
# python-config --includes
|
||||
# >>
|
||||
@ -38,6 +37,7 @@ unset withMPI MPI_MAX_PROCS
|
||||
unset withQT QT_VERSION QMAKE_PATH
|
||||
unset withMESA MESA_INCLUDE MESA_LIBRARY withOSMESA
|
||||
unset withPYTHON PYTHON_INCLUDE PYTHON_LIBRARY
|
||||
unset withPYTHON3
|
||||
unset withGL2
|
||||
BUILD_TYPE=Release # The cmake build type
|
||||
|
||||
@ -166,9 +166,17 @@ addPythonSupport()
|
||||
return
|
||||
fi
|
||||
|
||||
local pythonBin pythonConfig pythonMajor
|
||||
local pythonBin="python"
|
||||
local pythonConfig="python-config"
|
||||
local pythonMajor
|
||||
|
||||
pythonBin=$(which python 2>/dev/null) || {
|
||||
if [ "$withPYTHON3" = true ]
|
||||
then
|
||||
pythonBin="python3"
|
||||
pythonConfig="python3-config"
|
||||
fi
|
||||
|
||||
pythonBin=$(which "$pythonBin" 2>/dev/null) || {
|
||||
echo "*** Error: python not found"
|
||||
echo "*** Deactivate python support by not using the -python "
|
||||
echo "*** option"
|
||||
@ -187,7 +195,7 @@ addPythonSupport()
|
||||
|
||||
# Fallback: get PYTHON_LIBRARY from dynamically linked binary
|
||||
|
||||
PYTHON_LIBRARY=$(ldd $pythonBin | \
|
||||
PYTHON_LIBRARY=$(ldd "$pythonBin" | \
|
||||
sed -ne '/libpython/s/^.* => \(.*\) (.*/\1/p')
|
||||
|
||||
[ -e "$PYTHON_LIBRARY" ] || {
|
||||
@ -205,7 +213,7 @@ addPythonSupport()
|
||||
}
|
||||
|
||||
# Guess major from library
|
||||
pythonMajor=$(echo $PYTHON_LIBRARY | sed 's/.*libpython\(.*\)\.so.*/\1/')
|
||||
pythonMajor=$(echo "$PYTHON_LIBRARY" | sed 's/.*libpython\(.*\)\.so.*/\1/')
|
||||
|
||||
if [ -n "$PYTHON_INCLUDE" ]
|
||||
then
|
||||
@ -215,12 +223,12 @@ addPythonSupport()
|
||||
echo "*** Error: Python.h not found at location specified " \
|
||||
"by -python-include : PYTHON_INCLUDE=$PYTHON_INCLUDE"
|
||||
|
||||
elif pythonConfig=$(which python-config 2>/dev/null)
|
||||
elif pythonConfig=$(which "$pythonConfig" 2>/dev/null)
|
||||
then
|
||||
# Guess from python-config
|
||||
# parse '-I/usr/include/python2.7 -I/usr/include/python2.7'
|
||||
# -> '/usr/include/python2.7'
|
||||
PYTHON_INCLUDE=$(python-config --includes | sed -ne 's/^-I\([^ ][^ ]*\).*$/\1/p')
|
||||
PYTHON_INCLUDE=$("$pythonConfig" --includes | sed -ne 's/^-I\([^ ][^ ]*\).*$/\1/p')
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user