ThirdParty: initial commit of the packages selection mechanism using environment variables
This commit is contained in:
parent
5839941ab5
commit
78d0ccc78d
16 changed files with 621 additions and 172 deletions
133
ThirdParty/AllMake.stage1
vendored
133
ThirdParty/AllMake.stage1
vendored
|
@ -38,9 +38,10 @@
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your foam-extend environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
#
|
# 2: The file etc/prefs.sh should be used for setting the variables enabling
|
||||||
|
# the compilation of the various packages
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# run from third-party directory only
|
||||||
|
@ -60,53 +61,99 @@ echo Starting ThirdParty AllMake: Stage1
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Gcc and companion libraries
|
# Gcc 4.4.5 and companion libraries
|
||||||
#
|
|
||||||
# Uncomment the following 4 lines for gcc-4.9.2. You need gmp, mpfr and mpc for gcc-4.9.2
|
|
||||||
#( rpm_make -p gmp-5.1.2 -s gmp-5.1.2.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2 )
|
|
||||||
#( rpm_make -p mpfr-3.1.2 -s mpfr-3.1.2.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.2.tar.gz )
|
|
||||||
#( rpm_make -p mpc-1.0.1 -s mpc-1.0.1.spec -u http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz )
|
|
||||||
#( rpm_make -p gcc-4.9.2 -s gcc-4.9.2.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.gz )
|
|
||||||
#
|
|
||||||
# Uncomment the following 4 lines for gcc-4.7.4. You need gmp, mpfr and mpc for gcc-4.7.4
|
|
||||||
#( rpm_make -p gmp-5.1.2 -s gmp-5.1.2.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2 )
|
|
||||||
#( rpm_make -p mpfr-3.1.2 -s mpfr-3.1.2.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.2.tar.gz )
|
|
||||||
#( rpm_make -p mpc-1.0.1 -s mpc-1.0.1.spec -u http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz )
|
|
||||||
#( rpm_make -p gcc-4.7.4 -s gcc-4.7.4.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.4/gcc-4.7.4.tar.gz )
|
|
||||||
#
|
|
||||||
# Uncomment the following 4 lines for gcc-4.6.4. You need gmp, mpfr and mpc for gcc-4.6.4
|
|
||||||
#( rpm_make -p gmp-5.1.2 -s gmp-5.1.2.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2 )
|
|
||||||
#( rpm_make -p mpfr-3.1.2 -s mpfr-3.1.2.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.2.tar.gz )
|
|
||||||
#( rpm_make -p mpc-1.0.1 -s mpc-1.0.1.spec -u http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz )
|
|
||||||
#( rpm_make -p gcc-4.6.4 -s gcc-4.6.4.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.6.4/gcc-4.6.4.tar.gz )
|
|
||||||
#
|
|
||||||
# Uncomment the following 4 lines for gcc-4.5.1. You need gmp, mpfr and mpc for gcc-4.5.1
|
|
||||||
#( rpm_make -p gmp-5.0.1 -s gmp-5.0.1.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz )
|
|
||||||
#( rpm_make -p mpfr-3.0.1 -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz )
|
|
||||||
#( rpm_make -p mpc-0.8.2 -s mpc-0.8.2.spec -u http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz )
|
|
||||||
#( rpm_make -p gcc-4.5.1 -s gcc-4.5.1.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.gz )
|
|
||||||
#
|
|
||||||
# Uncomment the following 3 lines for gcc-4.4.5. You need gmp and mpfr for gcc-4.4.5
|
|
||||||
#( rpm_make -p gmp-5.0.1 -s gmp-5.0.1.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz )
|
|
||||||
#( rpm_make -p mpfr-3.0.1 -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz )
|
|
||||||
#( rpm_make -p gcc-4.4.5 -s gcc-4.4.5.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.4.5/gcc-4.4.5.tar.gz )
|
|
||||||
#
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_GCC_445" ] && {
|
||||||
|
echo "Building gmp-5.0.1 mpfr-3.0.1 gcc-4.4.5"
|
||||||
|
( rpm_make -p gmp-5.0.1 -s gmp-5.0.1.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz )
|
||||||
|
( rpm_make -p mpfr-3.0.1 -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz )
|
||||||
|
( rpm_make -p gcc-4.4.5 -s gcc-4.4.5.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.4.5/gcc-4.4.5.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
# Python
|
# Gcc 4.5.1 and companion libraries
|
||||||
#( rpm_make -p Python-2.7 -s Python-2.7.spec -u http://www.python.org/ftp/python/2.7/Python-2.7.tgz )
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_GCC_451" ] && {
|
||||||
|
echo "Building gmp-5.0.1 mpfr-3.0.1 mpc-0.8.2 gcc-4.5.1"
|
||||||
|
( rpm_make -p gmp-5.0.1 -s gmp-5.0.1.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz )
|
||||||
|
( rpm_make -p mpfr-3.0.1 -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz )
|
||||||
|
( rpm_make -p mpc-0.8.2 -s mpc-0.8.2.spec -u http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz )
|
||||||
|
( rpm_make -p gcc-4.5.1 -s gcc-4.5.1.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
# m4
|
# Gcc 4.6.3 and companion libraries
|
||||||
# You need a recent version of m4 in order to compile a recent version of bison
|
#
|
||||||
#( rpm_make -p m4-1.4.16 -s m4-1.4.16.spec -u http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz )
|
[ ! -z "$WM_THIRD_PARTY_USE_GCC_463" ] && {
|
||||||
|
echo "Building gmp-5.0.5 mpfr-3.1.0 mpc-0.9 gcc-4.6.3"
|
||||||
|
( rpm_make -p gmp-5.0.5 -s gmp-5.0.5.spec -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2 )
|
||||||
|
( rpm_make -p mpfr-3.1.0 -s mpfr-3.1.0.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.0.tar.gz )
|
||||||
|
( rpm_make -p mpc-0.9 -s mpc-0.9.spec -u http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz )
|
||||||
|
( rpm_make -p gcc-4.6.3 -s gcc-4.6.3.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
# bison
|
# Gcc 4.8.4 and companion libraries
|
||||||
( rpm_make -p bison-2.7 -s bison-2.7.spec -u http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz )
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_GCC_484" ] && {
|
||||||
|
echo "Building gcc-4.8.4"
|
||||||
|
( rpm_make -p gcc-4.8.4 -s gcc-4.8.4.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.4/gcc-4.8.4.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
# flex
|
# Gcc 4.9.2 and companion libraries
|
||||||
#( rpm_make -p flex-2.5.35 -s flex-2.5.35.spec -u http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz )
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_GCC_492" ] && {
|
||||||
|
echo "Building gcc-4.9.2"
|
||||||
|
( rpm_make -p gcc-4.9.2 -s gcc-4.9.2.spec -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
# cmake
|
# Clang 3.6.0
|
||||||
#( rpm_make -p cmake-2.8.12 -s cmake-2.8.12.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz )
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_LLVM_360" ] && {
|
||||||
|
echo "Building llvm and clang 3.6.0"
|
||||||
|
( rpm_make -p llvm-3.6.0 -s llvm-3.6.0.spec -u http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# Python 2.7
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PYTHON_27" ] && {
|
||||||
|
echo "Building python 2.7"
|
||||||
|
( rpm_make -p Python-2.7 -s Python-2.7.spec -u http://www.python.org/ftp/python/2.7/Python-2.7.tgz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# m4 1.4.16
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_M4_146" ] && {
|
||||||
|
echo "Building m4 1.4.16"
|
||||||
|
# You need a recent version of m4 in order to compile a recent version of bison
|
||||||
|
( rpm_make -p m4-1.4.16 -s m4-1.4.16.spec -u http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# bison 2.7
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_BISON_27" ] && {
|
||||||
|
echo "Building bison 2.7"
|
||||||
|
# You need a recent version of m4 in order to compile a recent version of bison
|
||||||
|
( rpm_make -p bison-2.7 -s bison-2.7.spec -u http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# flex 2.5.35
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_FLEX_2535" ] && {
|
||||||
|
echo "Building flex 2.5.35"
|
||||||
|
( rpm_make -p flex-2.5.35 -s flex-2.5.35.spec -u http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# cmake 2.8.12
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_CMAKE_2812" ] && {
|
||||||
|
echo "Building cmake 2.8.12"
|
||||||
|
( rpm_make -p cmake-2.8.12 -s cmake-2.8.12.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# cmake 3.1.1
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_CMAKE_311" ] && {
|
||||||
|
echo "Building cmake 3.1.1"
|
||||||
|
( rpm_make -p cmake-3.1.1 -s cmake-3.1.1.spec -u http://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo Done ThirdParty AllMake: Stage1
|
echo Done ThirdParty AllMake: Stage1
|
||||||
|
|
45
ThirdParty/AllMake.stage2
vendored
45
ThirdParty/AllMake.stage2
vendored
|
@ -40,9 +40,11 @@
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your foam-extend environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
# 2: AllMake.stage1 if you are overriding your system compiler
|
# 2: AllMake.stage1 if you are overriding your system compiler
|
||||||
|
# 3: The file etc/prefs.sh should be used for setting the variables enabling
|
||||||
|
# the compilation of the various packages
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# run from third-party directory only
|
||||||
|
@ -65,10 +67,43 @@ echo
|
||||||
if [ "$WM_MPLIB" != "SYSTEMOPENMPI" ]
|
if [ "$WM_MPLIB" != "SYSTEMOPENMPI" ]
|
||||||
then
|
then
|
||||||
# MPI
|
# MPI
|
||||||
#( rpm_make -p openmpi-1.4.1 -s openmpi-1.4.1.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.gz )
|
|
||||||
#( rpm_make -p openmpi-1.5 -s openmpi-1.5.spec -u http://www.open-mpi.org/software/ompi/v1.5/downloads/openmpi-1.5.tar.gz )
|
# openmpi 1.4.1
|
||||||
#( rpm_make -p openmpi-1.4.3 -s openmpi-1.4.3.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.gz )
|
#
|
||||||
( rpm_make -p openmpi-1.6.5 -s openmpi-1.6.5.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/openmpi-1.6.5.tar.gz )
|
[ ! -z "$WM_THIRD_PARTY_USE_OPENMPI_141" ] && {
|
||||||
|
echo "Building openmpi 1.4.1"
|
||||||
|
( rpm_make -p openmpi-1.4.1 -s openmpi-1.4.1.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# openmpi 1.4.3
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_OPENMPI_143" ] && {
|
||||||
|
echo "Building openmpi 1.4.3"
|
||||||
|
( rpm_make -p openmpi-1.4.3 -s openmpi-1.4.3.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# openmpi 1.5
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_OPENMPI_15" ] && {
|
||||||
|
echo "Building openmpi 1.5"
|
||||||
|
( rpm_make -p openmpi-1.5 -s openmpi-1.5.spec -u http://www.open-mpi.org/software/ompi/v1.5/downloads/openmpi-1.5.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
# openmpi 1.6.5
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_OPENMPI_165" ] && {
|
||||||
|
echo "Building openmpi 1.6.5"
|
||||||
|
( rpm_make -p openmpi-1.6.5 -s openmpi-1.6.5.spec -u http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.gz \
|
||||||
|
-f --define '_configureAdditionalArgs "$WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs"')
|
||||||
|
}
|
||||||
|
|
||||||
|
# openmpi 1.8.4
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_OPENMPI_1*$" ] && {
|
||||||
|
echo "Building openmpi 1.8.4"
|
||||||
|
( rpm_make -p openmpi-1.8.4 -s openmpi-1.8.4.spec -u http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.gz \
|
||||||
|
-f --define '_configureAdditionalArgs "$WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs"')
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed OpenMPI"
|
echo "Using system installed OpenMPI"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
80
ThirdParty/AllMake.stage3
vendored
80
ThirdParty/AllMake.stage3
vendored
|
@ -36,7 +36,7 @@
|
||||||
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# run from third-party directory only
|
||||||
|
@ -59,7 +59,12 @@ echo
|
||||||
# Metis
|
# Metis
|
||||||
if [ -z "$METIS_SYSTEM" ]
|
if [ -z "$METIS_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# metis 5.1.0
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_METIS_510" ] && {
|
||||||
|
echo "Building metis 5.1.0"
|
||||||
( rpm_make -p metis-5.1.0 -s metis-5.1.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/metis-5.1.0.tar.gz )
|
( rpm_make -p metis-5.1.0 -s metis-5.1.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/metis-5.1.0.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed Metis"
|
echo "Using system installed Metis"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -68,8 +73,13 @@ fi
|
||||||
# ParMGridGen
|
# ParMGridGen
|
||||||
if [ -z "$PARMGRIDGEN_SYSTEM" ]
|
if [ -z "$PARMGRIDGEN_SYSTEM" ]
|
||||||
then
|
then
|
||||||
#( rpm_make -p ParMGridGen-1.0 -s ParMGridGen-1.0.spec -u http://www.mgnet.org/mgnet/Codes/parmgridgen/ParMGridGen-1.0.tar.gz )
|
# ParMGridGen 1.0
|
||||||
( rpm_make -p ParMGridGen-1.0 -s ParMGridGen-1.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParMGridGen-1.0.tar.gz )
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARMGRIDGEN_10" ] && {
|
||||||
|
echo "Building ParMGridGen 1.0"
|
||||||
|
( rpm_make -p ParMGridGen-1.0 -s ParMGridGen-1.0.spec -u http://www.mgnet.org/mgnet/Codes/parmgridgen/ParMGridGen-1.0.tar.gz )
|
||||||
|
#( rpm_make -p ParMGridGen-1.0 -s ParMGridGen-1.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParMGridGen-1.0.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed ParMGridGen"
|
echo "Using system installed ParMGridGen"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -78,7 +88,12 @@ fi
|
||||||
# Libccmio
|
# Libccmio
|
||||||
if [ -z "$LIBCCMIO_SYSTEM" ]
|
if [ -z "$LIBCCMIO_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# Libccmio 2.6.1
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_LIBCCMIO_261" ] && {
|
||||||
|
echo "Building Libccmio 2.6.1"
|
||||||
( rpm_make -p libccmio-2.6.1 -s libccmio-2.6.1.spec -u http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz )
|
( rpm_make -p libccmio-2.6.1 -s libccmio-2.6.1.spec -u http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed Libccmio"
|
echo "Using system installed Libccmio"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -87,7 +102,12 @@ fi
|
||||||
# Mesquite
|
# Mesquite
|
||||||
if [ -z "$MESQUITE_SYSTEM" ]
|
if [ -z "$MESQUITE_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# Mesquite 2.1.2
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_MESQUITE_212" ] && {
|
||||||
|
echo "Building Mesquite 2.1.2"
|
||||||
( rpm_make -p mesquite-2.1.2 -s mesquite-2.1.2.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/mesquite-2.1.2.tar.gz )
|
( rpm_make -p mesquite-2.1.2 -s mesquite-2.1.2.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/mesquite-2.1.2.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed Mesquite"
|
echo "Using system installed Mesquite"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -102,7 +122,12 @@ fi
|
||||||
# Scotch
|
# Scotch
|
||||||
if [ -z "$SCOTCH_SYSTEM" ]
|
if [ -z "$SCOTCH_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# Scotch 6.0.0
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_SCOTCH_600" ] && {
|
||||||
|
echo "Building Scotch 6.0.0"
|
||||||
( rpm_make -p scotch-6.0.0 -s scotch-6.0.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/scotch-6.0.0.tar.gz )
|
( rpm_make -p scotch-6.0.0 -s scotch-6.0.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/scotch-6.0.0.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed Scotch"
|
echo "Using system installed Scotch"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -111,30 +136,46 @@ fi
|
||||||
# ParMetis
|
# ParMetis
|
||||||
if [ -z "$PARMETIS_SYSTEM" ]
|
if [ -z "$PARMETIS_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# ParMetis 4.0.3
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARMETIS_403" ] && {
|
||||||
|
echo "Building ParMetis 4.0.3"
|
||||||
( rpm_make -p parmetis-4.0.3 -s parmetis-4.0.3.spec -u http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz )
|
( rpm_make -p parmetis-4.0.3 -s parmetis-4.0.3.spec -u http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed ParMetis"
|
echo "Using system installed ParMetis"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Zoltan
|
# Zoltan
|
||||||
#if [ -z "$ZOLTAN_SYSTEM" ]
|
if [ -z "$ZOLTAN_SYSTEM" ]
|
||||||
#then
|
then
|
||||||
# ( rpm_make -p zoltan-3.6 -s zoltan-3.6.spec -u http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.6.tar.gz )
|
# Zoltan 3.6
|
||||||
#else
|
#
|
||||||
# echo "Using system installed Zoltan"
|
[ ! -z "$WM_THIRD_PARTY_USE_ZOLTAN_36" ] && {
|
||||||
# echo ""
|
echo "Building Zoltan 3.6"
|
||||||
#fi
|
( rpm_make -p zoltan-3.6 -s zoltan-3.6.spec -u http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.6.tar.gz )
|
||||||
|
}
|
||||||
|
else
|
||||||
|
echo "Using system installed Zoltan"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
# PyFoam
|
# PyFoam
|
||||||
if [ -z "$PYFOAM_SYSTEM" ]
|
if [ -z "$PYFOAM_SYSTEM" ]
|
||||||
then
|
then
|
||||||
# ( rpm_make -p PyFoam-0.5.6 -s PyFoam-0.5.6.spec -u http://openfoamwiki.net/images/b/b8/PyFoam-0.5.6.tar.gz -n PyFoam-0.5.6-1.noarch -a noarch)
|
# PyFoam 0.6.3
|
||||||
# ( rpm_make -p PyFoam-0.5.7 -s PyFoam-0.5.7.spec -u http://openfoamwiki.net/images/d/dc/PyFoam-0.5.7.tar.gz -n PyFoam-0.5.7-1.noarch -a noarch)
|
#
|
||||||
# ( rpm_make -p PyFoam-0.6.1 -s PyFoam-0.6.1.spec -u http://openfoamwiki.net/images/3/33/PyFoam-0.6.1.tar.gz -n PyFoam-0.6.1-1.noarch -a noarch)
|
[ ! -z "$WM_THIRD_PARTY_USE_PYFOAM_063" ] && {
|
||||||
# ( rpm_make -p PyFoam-0.6.2 -s PyFoam-0.6.2.spec -u http://openfoamwiki.net/images/8/89/PyFoam-0.6.2.tar.gz -n PyFoam-0.6.2-1.noarch -a noarch)
|
echo "Building PyFoam 0.6.3"
|
||||||
# ( rpm_make -p PyFoam-0.6.3 -s PyFoam-0.6.3.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/PyFoam-0.6.1.tar.gz )
|
( rpm_make -p PyFoam-0.6.3 -s PyFoam-0.6.3.spec -u http://openfoamwiki.net/images/c/cb/PyFoam-0.6.3.tar.gz -n PyFoam-0.6.3-1.noarch -a noarch)
|
||||||
( rpm_make -p PyFoam-0.6.4 -s PyFoam-0.6.4.spec -u http://openfoamwiki.net/images/3/3b/PyFoam-0.6.4.tar.gz -n PyFoam-0.6.4-1.noarch -a noarch )
|
}
|
||||||
|
# PyFoam 0.6.4
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PYFOAM_064" ] && {
|
||||||
|
echo "Building PyFoam 0.6.4"
|
||||||
|
( rpm_make -p PyFoam-0.6.4 -s PyFoam-0.6.4.spec -u http://openfoamwiki.net/images/3/3b/PyFoam-0.6.4.tar.gz -n PyFoam-0.6.4-1.noarch -a noarch)
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed PyFoam"
|
echo "Using system installed PyFoam"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -143,7 +184,12 @@ fi
|
||||||
# hwloc
|
# hwloc
|
||||||
if [ -z "$HWLOC_SYSTEM" ]
|
if [ -z "$HWLOC_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
# hwloc 1.7.2
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_HWLOC_172" ] && {
|
||||||
|
echo "Building hwloc 1.7.2"
|
||||||
( rpm_make -p hwloc-1.7.2 -s hwloc-1.7.2.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/hwloc-1.7.2.tar.gz )
|
( rpm_make -p hwloc-1.7.2 -s hwloc-1.7.2.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/hwloc-1.7.2.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed hwloc"
|
echo "Using system installed hwloc"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
65
ThirdParty/AllMake.stage4
vendored
65
ThirdParty/AllMake.stage4
vendored
|
@ -36,7 +36,7 @@
|
||||||
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# run from third-party directory only
|
||||||
|
@ -59,7 +59,12 @@ echo
|
||||||
# qt-everywhere-opensource-src-4.8.6
|
# qt-everywhere-opensource-src-4.8.6
|
||||||
if [ ! -z "$QT_THIRD_PARTY" ]
|
if [ ! -z "$QT_THIRD_PARTY" ]
|
||||||
then
|
then
|
||||||
( rpm_make -p qt-everywhere-opensource-src-4.8.6 -s qt-everywhere-opensource-src-4.8.6.spec -u http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz )
|
# Qt 4.8.6
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_QT_486" ] && {
|
||||||
|
echo "Building Qt 4.8.6"
|
||||||
|
( rpm_make -p qt-everywhere-opensource-src-4.8.6 -s qt-everywhere-opensource-src-4.8.6.spec -u http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz )
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "Using system installed QT"
|
echo "Using system installed QT"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -73,16 +78,33 @@ then
|
||||||
|
|
||||||
if [ -d "$QT_BIN_DIR" -a -r "$QT_BIN_DIR"/qmake ]
|
if [ -d "$QT_BIN_DIR" -a -r "$QT_BIN_DIR"/qmake ]
|
||||||
then
|
then
|
||||||
|
# ParaView 4.0.1
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARAVIEW_401" ] && {
|
||||||
|
echo "Building ParaView 4.0.1"
|
||||||
( rpm_make -p ParaView-4.0.1 -s ParaView-4.0.1.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParaView-v4.0.1-source.tgz \
|
( rpm_make -p ParaView-4.0.1 -s ParaView-4.0.1.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParaView-v4.0.1-source.tgz \
|
||||||
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
||||||
# ( rpm_make -p ParaView-4.2.0 -s ParaView-4.2.0.spec -u http://www.paraview.org/files/v4.2/ParaView-v4.2.0-source.tar.gz \
|
|
||||||
# -f --define='_qmakePath $QT_BIN_DIR/qmake'
|
|
||||||
# ( rpm_make -p ParaView-4.2.0 -s ParaView-4.2.0.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParaView-v4.2.0-source.tgz \
|
|
||||||
# -f --define='_qmakePath $QT_BIN_DIR/qmake'
|
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
# ParaView 4.1.0
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARAVIEW_410" ] && {
|
||||||
|
echo "Building ParaView 4.1.0"
|
||||||
|
( rpm_make -p ParaView-4.1.0 -s ParaView-4.1.0.spec -u http://www.paraview.org/files/v4.1/ParaView-v4.1.0-source.tar.gz \
|
||||||
|
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
# ParaView 4.3.1
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARAVIEW_431" ] && {
|
||||||
|
echo "Building ParaView 4.3.1"
|
||||||
|
( rpm_make -p ParaView-4.3.1 -s ParaView-4.3.1.spec -u http://www.paraview.org/files/v4.3/ParaView-v4.3.1-source.tar.gz \
|
||||||
|
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
||||||
|
)
|
||||||
|
}
|
||||||
else
|
else
|
||||||
echo "WARNING: "
|
echo "WARNING: "
|
||||||
echo "WARNING: Skipping the installation of ParaView-4.2.0."
|
echo "WARNING: Skipping the installation of ParaView-4.x.x."
|
||||||
echo "WARNING: Please make sure the QT_BIN_DIR environment variable properly"
|
echo "WARNING: Please make sure the QT_BIN_DIR environment variable properly"
|
||||||
echo "WARNING: initialized in the file prefs.sh or prefs.csh"
|
echo "WARNING: initialized in the file prefs.sh or prefs.csh"
|
||||||
echo "WARNING: The command \$QT_BIN_DIR/qmake needs to be valid"
|
echo "WARNING: The command \$QT_BIN_DIR/qmake needs to be valid"
|
||||||
|
@ -93,6 +115,35 @@ else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ParaView Server
|
||||||
|
if [ -z "$PARAVIEW_SERVER_THIRD_PARTY" ]
|
||||||
|
then
|
||||||
|
# ParaView 4.1.0: Server-only
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARAVIEW_SERVER_410" ] && {
|
||||||
|
echo "Building ParaView Server 4.1.0"
|
||||||
|
( rpm_make -p llvm-3.6.0 -s llvm-3.6.0.spec -u http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz )
|
||||||
|
( rpm_make -p mesa-git -s mesa-git.spec -u ftp://ftp.freedesktop.org/pub/mesa/10.5.3/mesa-10.5.3.tar.gz )
|
||||||
|
( rpm_make -p ParaView-4.1.0_Server -s ParaView-4.1.0_Server.spec -u http://www.paraview.org/files/v4.1/ParaView-v4.1.0-source.tar.gz \
|
||||||
|
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
# ParaView 4.3.1: Server-only
|
||||||
|
#
|
||||||
|
[ ! -z "$WM_THIRD_PARTY_USE_PARAVIEW_SERVER_431" ] && {
|
||||||
|
echo "Building ParaView Server 4.3.1"
|
||||||
|
( rpm_make -p llvm-3.6.0 -s llvm-3.6.0.spec -u http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz )
|
||||||
|
( rpm_make -p mesa-git -s mesa-git.spec -u ftp://ftp.freedesktop.org/pub/mesa/10.5.3/mesa-10.5.3.tar.gz )
|
||||||
|
( rpm_make -p ParaView-4.3.1_Server -s ParaView-4.3.1_Server.spec -u http://www.paraview.org/files/v4.3/ParaView-v4.3.1-source.tar.gz \
|
||||||
|
-f --define='_qmakePath $QT_BIN_DIR/qmake'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
echo "Using system installed ParaView Server"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo Done ThirdParty AllMake: Stage4
|
echo Done ThirdParty AllMake: Stage4
|
||||||
echo ========================================
|
echo ========================================
|
||||||
|
|
1
ThirdParty/AllMake.stage5
vendored
1
ThirdParty/AllMake.stage5
vendored
|
@ -55,6 +55,7 @@ echo "Starting ThirdParty AllMake: Stage5 "
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# swak4Foam - Version 0.3.1
|
||||||
# swak4Foam - Version 0.3.2
|
# swak4Foam - Version 0.3.2
|
||||||
# In fact, we are basically tracking the head branch from the Mercurial repository
|
# In fact, we are basically tracking the head branch from the Mercurial repository
|
||||||
# which is also replicated under the Breeder_2.0 section of the Subversion repository
|
# which is also replicated under the Breeder_2.0 section of the Subversion repository
|
||||||
|
|
22
ThirdParty/rpmBuild/SPECS/ParaView-4.3.1.spec
vendored
22
ThirdParty/rpmBuild/SPECS/ParaView-4.3.1.spec
vendored
|
@ -77,7 +77,7 @@ URL: http://www.paraview.org/files/v4.3/
|
||||||
Source: %url/%{name}-v%{version}-source.tar.gz
|
Source: %url/%{name}-v%{version}-source.tar.gz
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Patch0: paraview-4.3.1.patch_darwin
|
Patch0: ParaView-4.3.1.patch_darwin
|
||||||
|
|
||||||
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
||||||
|
|
||||||
|
@ -145,16 +145,16 @@ Patch0: paraview-4.3.1.patch_darwin
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# start with these general settings
|
# start with these general settings
|
||||||
addCMakeVariable VTK_USE_TK:BOOL=OFF
|
addCMakeVariable BUILD_SHARED_LIBS:BOOL=ON
|
||||||
addCMakeVariable BUILD_SHARED_LIBS:BOOL=ON VTK_USE_RPATH:BOOL=OFF
|
|
||||||
addCMakeVariable CMAKE_BUILD_TYPE:STRING=Release
|
addCMakeVariable CMAKE_BUILD_TYPE:STRING=Release
|
||||||
|
addCMakeVariable BUILD_TESTING:BOOL=OFF
|
||||||
|
|
||||||
|
# We build with Python. This is ust too useful
|
||||||
|
addCMakeVariable PARAVIEW_ENABLE_PYTHON:BOOL=ON
|
||||||
|
|
||||||
# include development files in "make install"
|
# include development files in "make install"
|
||||||
addCMakeVariable PARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON
|
addCMakeVariable PARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON
|
||||||
|
|
||||||
# new alternative to "make HTMLDocumentation"
|
|
||||||
addCMakeVariable PARAVIEW_GENERATE_PROXY_DOCUMENTATION:BOOL=ON
|
|
||||||
|
|
||||||
%ifos darwin
|
%ifos darwin
|
||||||
# Additional installation rules for Mac OS X
|
# Additional installation rules for Mac OS X
|
||||||
addCMakeVariable PARAVIEW_EXTRA_INSTALL_RULES_FILE:FILEPATH=%{_topdir}/BUILD/%{name}-%{version}/Applications/ParaView-3.8.1_extra_install_Darwin.cmake
|
addCMakeVariable PARAVIEW_EXTRA_INSTALL_RULES_FILE:FILEPATH=%{_topdir}/BUILD/%{name}-%{version}/Applications/ParaView-3.8.1_extra_install_Darwin.cmake
|
||||||
|
@ -206,7 +206,7 @@ cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
export PARAVIEW_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
export PARAVIEW_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||||
export PARAVIEW_BIN_DIR=\$PARAVIEW_DIR/bin
|
export PARAVIEW_BIN_DIR=\$PARAVIEW_DIR/bin
|
||||||
export PARAVIEW_LIB_DIR=\$PARAVIEW_DIR/lib
|
export PARAVIEW_LIB_DIR=\$PARAVIEW_DIR/lib
|
||||||
export PARAVIEW_INCLUDE_DIR=\$PARAVIEW_DIR/include/paraview-4.2
|
export PARAVIEW_INCLUDE_DIR=\$PARAVIEW_DIR/include/paraview-4.3
|
||||||
|
|
||||||
export PARAVIEW_VERSION=%{version}
|
export PARAVIEW_VERSION=%{version}
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ export PARAVIEW_VERSION=%{version}
|
||||||
# startup of paraview or even make paraview crash on startup.
|
# startup of paraview or even make paraview crash on startup.
|
||||||
export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
|
|
||||||
[ -d \$PARAVIEW_LIB_DIR/paraview-4.2 ] && _foamAddLib \$PARAVIEW_LIB_DIR/paraview-4.2
|
[ -d \$PARAVIEW_LIB_DIR/paraview-4.3 ] && _foamAddLib \$PARAVIEW_LIB_DIR/paraview-4.3
|
||||||
|
|
||||||
# Enable access to the package applications if present
|
# Enable access to the package applications if present
|
||||||
[ -d \$PARAVIEW_BIN_DIR ] && _foamAddPath \$PARAVIEW_BIN_DIR
|
[ -d \$PARAVIEW_BIN_DIR ] && _foamAddPath \$PARAVIEW_BIN_DIR
|
||||||
|
@ -236,7 +236,7 @@ cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.cs
|
||||||
setenv PARAVIEW_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
setenv PARAVIEW_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||||
setenv PARAVIEW_BIN_DIR \$PARAVIEW_DIR/bin
|
setenv PARAVIEW_BIN_DIR \$PARAVIEW_DIR/bin
|
||||||
setenv PARAVIEW_LIB_DIR \$PARAVIEW_DIR/lib
|
setenv PARAVIEW_LIB_DIR \$PARAVIEW_DIR/lib
|
||||||
setenv PARAVIEW_INCLUDE_DIR \$PARAVIEW_DIR/include/paraview-4.2
|
setenv PARAVIEW_INCLUDE_DIR \$PARAVIEW_DIR/include/paraview-4.3
|
||||||
|
|
||||||
setenv PARAVIEW_VERSION %{version}
|
setenv PARAVIEW_VERSION %{version}
|
||||||
|
|
||||||
|
@ -251,8 +251,8 @@ if ( -e \$PARAVIEW_BIN_DIR ) then
|
||||||
_foamAddPath \$PARAVIEW_BIN_DIR
|
_foamAddPath \$PARAVIEW_BIN_DIR
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ( -e \$PARAVIEW_LIB_DIR/paraview-4.2 ) then
|
if ( -e \$PARAVIEW_LIB_DIR/paraview-4.3 ) then
|
||||||
_foamAddLib \$PARAVIEW_LIB_DIR/paraview-4.2
|
_foamAddLib \$PARAVIEW_LIB_DIR/paraview-4.3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
51
ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec
vendored
51
ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec
vendored
|
@ -28,7 +28,7 @@
|
||||||
# RPM spec file for creating a relocatable RPM
|
# RPM spec file for creating a relocatable RPM
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Hrvoje Jasak, Wikki Ltd. (2015)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -94,21 +94,58 @@ Group: Development/Tools
|
||||||
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
||||||
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||||
|
|
||||||
GMP_VERSION=gmp-5.1.2
|
GMP_VERSION=gmp-6.0.0
|
||||||
MPFR_VERSION=mpfr-3.1.2
|
MPFR_VERSION=mpfr-3.1.2
|
||||||
MPC_VERSION=mpc-1.0.1
|
MPC_VERSION=mpc-1.0.3
|
||||||
|
ISL_VERSION=isl-0.12.2
|
||||||
|
CLOOG_VERSION=cloog-0.18.1
|
||||||
|
|
||||||
|
# Download dependency packages and add them as builtin components for gcc
|
||||||
|
#GMP
|
||||||
|
wget ftp://ftp.gnu.org/gnu/gmp/${GMP_VERSION}a.tar.xz
|
||||||
|
tar -xf ${GMP_VERSION}a.tar.xz
|
||||||
|
mv ${GMP_VERSION} gmp
|
||||||
|
|
||||||
|
#MPFR
|
||||||
|
wget ftp://ftp.gnu.org/gnu/mpfr/$MPFR_VERSION.tar.gz
|
||||||
|
tar -xf $MPFR_VERSION.tar.gz
|
||||||
|
mv ${MPFR_VERSION} mpfr
|
||||||
|
|
||||||
|
#MPC
|
||||||
|
wget ftp://ftp.gnu.org/gnu/mpc/$MPC_VERSION.tar.gz
|
||||||
|
tar -xf $MPC_VERSION.tar.gz
|
||||||
|
mv ${MPC_VERSION} mpc
|
||||||
|
|
||||||
|
#ISL
|
||||||
|
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$ISL_VERSION.tar.bz2
|
||||||
|
tar -xf $ISL_VERSION.tar.bz2
|
||||||
|
mv ${ISL_VERSION} isl
|
||||||
|
|
||||||
|
#CLOOG
|
||||||
|
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$CLOOG_VERSION.tar.gz
|
||||||
|
tar -xf $CLOOG_VERSION.tar.gz
|
||||||
|
mv ${CLOOG_VERSION} cloog
|
||||||
|
|
||||||
mkdir ./objBuildDir
|
mkdir ./objBuildDir
|
||||||
cd ./objBuildDir
|
cd ./objBuildDir
|
||||||
|
|
||||||
|
%ifos darwin
|
||||||
|
# Use 'bootstrap-debug' build configuration to force stripping of object
|
||||||
|
# files prior to comparison during bootstrap (broken by Xcode 6.3).
|
||||||
|
# Fix taken from HomeBrew and MacPorts projects
|
||||||
../configure \
|
../configure \
|
||||||
--prefix=%{_installPrefix} \
|
--prefix=%{_installPrefix} \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-multilib \
|
--with-build-config=bootstrap-debug \
|
||||||
--with-mpc=$WM_THIRD_PARTY_DIR/packages/$MPC_VERSION/platforms/$WM_OPTIONS \
|
--disable-multilib
|
||||||
--with-gmp=$WM_THIRD_PARTY_DIR/packages/$GMP_VERSION/platforms/$WM_OPTIONS \
|
%else
|
||||||
--with-mpfr=$WM_THIRD_PARTY_DIR/packages/$MPFR_VERSION/platforms/$WM_OPTIONS
|
../configure \
|
||||||
|
--prefix=%{_installPrefix} \
|
||||||
|
--enable-languages=c,c++ \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-multilib
|
||||||
|
%endif
|
||||||
|
|
||||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||||
make -j $WM_NCOMPPROCS
|
make -j $WM_NCOMPPROCS
|
||||||
|
|
19
ThirdParty/rpmBuild/SPECS/openmpi-1.6.5.spec
vendored
19
ThirdParty/rpmBuild/SPECS/openmpi-1.6.5.spec
vendored
|
@ -80,6 +80,15 @@ Group: Development/Tools
|
||||||
|
|
||||||
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Here, we define default compiling options for openmpi
|
||||||
|
#
|
||||||
|
# One can override the option on the commande line : --define='MACRO EXPR'
|
||||||
|
#
|
||||||
|
%{!?_configureAdditionalArgs: %define _configureAdditionalArgs Undefined}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
|
@ -95,6 +104,13 @@ Group: Development/Tools
|
||||||
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
||||||
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||||
|
|
||||||
|
set +x
|
||||||
|
echo ""
|
||||||
|
echo "Compilation options:"
|
||||||
|
echo " _configureAdditionalArgs : %{_configureAdditionalArgs}"
|
||||||
|
echo ""
|
||||||
|
set -x
|
||||||
|
|
||||||
unset mpiWith
|
unset mpiWith
|
||||||
# Enable GridEngine if it appears to be in use
|
# Enable GridEngine if it appears to be in use
|
||||||
# If you don't want any integration with SGE, simply unset the SGE
|
# If you don't want any integration with SGE, simply unset the SGE
|
||||||
|
@ -127,7 +143,8 @@ Group: Development/Tools
|
||||||
--disable-mpi-cxx \
|
--disable-mpi-cxx \
|
||||||
--without-slurm \
|
--without-slurm \
|
||||||
--enable-mpi-profile $mpiWith \
|
--enable-mpi-profile $mpiWith \
|
||||||
--disable-vt
|
--disable-vt \
|
||||||
|
`echo %{?_configureAdditionalArgs}`
|
||||||
|
|
||||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||||
make -j $WM_NCOMPPROCS
|
make -j $WM_NCOMPPROCS
|
||||||
|
|
|
@ -75,7 +75,7 @@ License: Unkown
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
URL: http://download.qt-project.org/official_releases/qt/4.8/4.8.5
|
URL: http://download.qt.io/archive/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz
|
||||||
Source: %url/%{name}-%{version}.tar.gz
|
Source: %url/%{name}-%{version}.tar.gz
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# RPM spec file for creating a relocatable RPM
|
# RPM spec file for creating a relocatable RPM
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2014)
|
# Martin Beaudoin, Hydro-Quebec, (2015)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ License: Unkown
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
URL: http://download.qt-project.org/official_releases/qt/4.8/4.8.6
|
URL: http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
|
||||||
Source: %url/%{name}-%{version}.tar.gz
|
Source: %url/%{name}-%{version}.tar.gz
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
|
27
etc/bashrc
27
etc/bashrc
|
@ -80,6 +80,33 @@ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION
|
||||||
#: ${WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION}; export WM_THIRD_PARTY_DIR
|
#: ${WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION}; export WM_THIRD_PARTY_DIR
|
||||||
export WM_THIRD_PARTY_DIR=$WM_PROJECT_DIR/ThirdParty
|
export WM_THIRD_PARTY_DIR=$WM_PROJECT_DIR/ThirdParty
|
||||||
|
|
||||||
|
# Enabling the usage of third-party software
|
||||||
|
# This can be overriden in prefs.sh
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# For AllMake.stage1
|
||||||
|
export WM_THIRD_PARTY_USE_CMAKE_2812=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage2
|
||||||
|
export WM_THIRD_PARTY_USE_OPENMPI_184=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage3
|
||||||
|
export WM_THIRD_PARTY_USE_METIS_510=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARMGRIDGEN_10=1
|
||||||
|
export WM_THIRD_PARTY_USE_LIBCCMIO_261=1
|
||||||
|
export WM_THIRD_PARTY_USE_MESQUITE_212=1
|
||||||
|
export WM_THIRD_PARTY_USE_SCOTCH_600=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARMETIS_403=1
|
||||||
|
export WM_THIRD_PARTY_USE_PYFOAM_064=1
|
||||||
|
export WM_THIRD_PARTY_USE_HWLOC_172=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage4
|
||||||
|
export WM_THIRD_PARTY_USE_QT_486=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARAVIEW_401=1
|
||||||
|
|
||||||
|
|
||||||
# Source files, possibly with some verbosity
|
# Source files, possibly with some verbosity
|
||||||
_foamSource()
|
_foamSource()
|
||||||
{
|
{
|
||||||
|
|
27
etc/cshrc
27
etc/cshrc
|
@ -73,6 +73,33 @@ setenv WM_PROJECT_USER_DIR $HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
|
||||||
#setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
#setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
||||||
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_DIR/ThirdParty
|
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_DIR/ThirdParty
|
||||||
|
|
||||||
|
# Enabling the usage of third-party software
|
||||||
|
# This can be overriden in prefs.sh
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# For AllMake.stage1
|
||||||
|
setenv WM_THIRD_PARTY_USE_CMAKE_2812 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage2
|
||||||
|
setenv WM_THIRD_PARTY_USE_OPENMPI_165 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage3
|
||||||
|
setenv WM_THIRD_PARTY_USE_METIS_510 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARMGRIDGEN_10 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_LIBCCMIO_261 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_MESQUITE_212 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_SCOTCH_600 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARMETIS_403 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PYFOAM_064 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_HWLOC_172 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage4
|
||||||
|
setenv WM_THIRD_PARTY_USE_QT_486 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARAVIEW_401 1
|
||||||
|
|
||||||
|
|
||||||
# Source files, possibly with some verbosity
|
# Source files, possibly with some verbosity
|
||||||
alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; source \!*'
|
alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; source \!*'
|
||||||
|
|
||||||
|
|
|
@ -170,4 +170,50 @@
|
||||||
# You can override your identifier using this environment variable
|
# You can override your identifier using this environment variable
|
||||||
#setenv CDASH_SUBMIT_LOCAL_HOST_ID choose_your_CDash_system_identifer
|
#setenv CDASH_SUBMIT_LOCAL_HOST_ID choose_your_CDash_system_identifer
|
||||||
|
|
||||||
|
|
||||||
|
# ThirdParty packages: build control variables
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# By enabling any of these variables, you will active the compilation and
|
||||||
|
# installation of the corresponding ThirdParty package
|
||||||
|
#
|
||||||
|
# For AllMake.stage1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_GCC_49 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_GCC_48 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_GCC_463 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_GCC_451 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_GCC_445 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_PYTHON_27 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_M4_146 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_BISON_27 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_FLEX_2535 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_CMAKE_2812 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage2
|
||||||
|
setenv WM_THIRD_PARTY_USE_OPENMPI_184 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_184_ConfigureAdditionalArgs '--enable-mpi-cxx --with-openib=/usr --with-openib-libdir=/usr/lib64'
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_165 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs '--enable-mpi-cxx --with-openib=/usr --with-openib-libdir=/usr/lib64'
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_15 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_143 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_OPENMPI_141 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage3
|
||||||
|
setenv WM_THIRD_PARTY_USE_METIS_510 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARMGRIDGEN_10 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_LIBCCMIO_261 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_MESQUITE_212 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_SCOTCH_600 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARMETIS_403 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_ZOLTAN_36 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PYFOAM_064 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_HWLOC_172 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage4
|
||||||
|
setenv WM_THIRD_PARTY_USE_QT_486 1
|
||||||
|
setenv WM_THIRD_PARTY_USE_PARAVIEW_401 1
|
||||||
|
#setenv WM_THIRD_PARTY_USE_PARAVIEW_410 1
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
|
@ -180,4 +180,56 @@ export FOAM_VERBOSE=1
|
||||||
# You can override your identifier using this environment variable
|
# You can override your identifier using this environment variable
|
||||||
#export CDASH_SUBMIT_LOCAL_HOST_ID=choose_your_CDash_system_identifer
|
#export CDASH_SUBMIT_LOCAL_HOST_ID=choose_your_CDash_system_identifer
|
||||||
|
|
||||||
|
|
||||||
|
# ThirdParty packages: build control variables
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# By enabling any of these variables, you will active the compilation and
|
||||||
|
# installation of the corresponding ThirdParty package
|
||||||
|
#
|
||||||
|
# For AllMake.stage1
|
||||||
|
#export WM_THIRD_PARTY_USE_GCC_49=1
|
||||||
|
#export WM_THIRD_PARTY_USE_GCC_48=1
|
||||||
|
#export WM_THIRD_PARTY_USE_GCC_463=1
|
||||||
|
#export WM_THIRD_PARTY_USE_GCC_451=1
|
||||||
|
#export WM_THIRD_PARTY_USE_GCC_445=1
|
||||||
|
#export WM_THIRD_PARTY_USE_PYTHON_27=1
|
||||||
|
#export WM_THIRD_PARTY_USE_M4_146=1
|
||||||
|
#export WM_THIRD_PARTY_USE_BISON_27=1
|
||||||
|
#export WM_THIRD_PARTY_USE_FLEX_2535=1
|
||||||
|
export WM_THIRD_PARTY_USE_CMAKE_2812=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage2
|
||||||
|
export WM_THIRD_PARTY_USE_OPENMPI_184=1
|
||||||
|
export WM_THIRD_PARTY_USE_OPENMPI_184_ConfigureAdditionalArgs='--enable-mpi-cxx --with-openib=/usr --with-openib-libdir=/usr/lib64'
|
||||||
|
#export WM_THIRD_PARTY_USE_OPENMPI_165=1
|
||||||
|
#export WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs='--enable-mpi-cxx --with-openib=/usr --with-openib-libdir=/usr/lib64'
|
||||||
|
#export WM_THIRD_PARTY_USE_OPENMPI_15=1
|
||||||
|
#export WM_THIRD_PARTY_USE_OPENMPI_143=1
|
||||||
|
#export WM_THIRD_PARTY_USE_OPENMPI_141=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage3
|
||||||
|
export WM_THIRD_PARTY_USE_METIS_510=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARMGRIDGEN_10=1
|
||||||
|
export WM_THIRD_PARTY_USE_LIBCCMIO_261=1
|
||||||
|
export WM_THIRD_PARTY_USE_MESQUITE_212=1
|
||||||
|
export WM_THIRD_PARTY_USE_SCOTCH_600=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARMETIS_403=1
|
||||||
|
export WM_THIRD_PARTY_USE_ZOLTAN_36=1
|
||||||
|
export WM_THIRD_PARTY_USE_PYFOAM_064=1
|
||||||
|
export WM_THIRD_PARTY_USE_HWLOC_172=1
|
||||||
|
|
||||||
|
#
|
||||||
|
# For AllMake.stage4
|
||||||
|
export WM_THIRD_PARTY_USE_QT_486=1
|
||||||
|
export WM_THIRD_PARTY_USE_PARAVIEW_401=1
|
||||||
|
#export WM_THIRD_PARTY_USE_PARAVIEW_410=1
|
||||||
|
|
||||||
|
|
||||||
|
# Add in preset user preferences: will override site preferences
|
||||||
|
if [ -e $WM_PROJECT_USER_DIR/etc/prefs.sh ]
|
||||||
|
then
|
||||||
|
_foamSource $WM_PROJECT_USER_DIR/etc/prefs.sh
|
||||||
|
fi
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
|
@ -99,9 +99,6 @@ case FOAM:
|
||||||
breaksw
|
breaksw
|
||||||
case Gcc49:
|
case Gcc49:
|
||||||
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.1.2/platforms/$WM_OPTIONS/etc/gmp-5.1.2.csh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.1.2/platforms/$WM_OPTIONS/etc/mpfr-3.1.2.csh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-1.0.1/platforms/$WM_OPTIONS/etc/mpc-1.0.1.csh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS/etc/gcc-4.9.2.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS/etc/gcc-4.9.2.csh
|
||||||
breaksw
|
breaksw
|
||||||
case Gcc47:
|
case Gcc47:
|
||||||
|
@ -164,7 +161,15 @@ set mpi_version=unknown
|
||||||
|
|
||||||
switch ("$WM_MPLIB")
|
switch ("$WM_MPLIB")
|
||||||
case OPENMPI:
|
case OPENMPI:
|
||||||
if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ) then
|
if ($?WM_THIRD_PARTY_USE_OPENMPI_184 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.8.4/platforms/$WM_OPTIONS ) then
|
||||||
|
set mpi_version=openmpi-1.8.4
|
||||||
|
|
||||||
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
|
echo "Using openmpi-1.8.4 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
||||||
|
endif
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
||||||
|
|
||||||
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_165 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ) then
|
||||||
set mpi_version=openmpi-1.6.5
|
set mpi_version=openmpi-1.6.5
|
||||||
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) then
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
|
@ -172,7 +177,7 @@ case OPENMPI:
|
||||||
endif
|
endif
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
||||||
|
|
||||||
else if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ) then
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_143 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ) then
|
||||||
set mpi_version=openmpi-1.4.3
|
set mpi_version=openmpi-1.4.3
|
||||||
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) then
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
|
@ -180,7 +185,7 @@ case OPENMPI:
|
||||||
endif
|
endif
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
||||||
|
|
||||||
else if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ) then
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_143 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ) then
|
||||||
set mpi_version=openmpi-1.5
|
set mpi_version=openmpi-1.5
|
||||||
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) then
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
|
@ -445,38 +450,38 @@ endif
|
||||||
|
|
||||||
# Mesquite library if available
|
# Mesquite library if available
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?MESQUITE_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ) then
|
if ( $?MESQUITE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_MESQUITE_212 != 0 && -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Metis library if available
|
# Metis library if available
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?METIS_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ) then
|
if ( $?METIS_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_METIS_510 != 0 && -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ParMetis library if available
|
# ParMetis library if available
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?PARMETIS_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ) then
|
if ( $?PARMETIS_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARMETIS_403 != 0 && -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ParMGridGen library if available
|
# ParMGridGen library if available
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?PARMGRIDGEN_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ) then
|
if ( $?PARMGRIDGEN_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARMGRIDGEN_10 != 0 && -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Load Libccmio library
|
# Load Libccmio library
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?LIBCCMIO_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ) then
|
if ( $?LIBCCMIO_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_LIBCCMIO_261 != 0 && -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Scotch library if available
|
# Scotch library if available
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( $?SCOTCH_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ) then
|
if ( $?SCOTCH_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_SCOTCH_600 != 0 && -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -490,75 +495,97 @@ endif
|
||||||
|
|
||||||
# cmake
|
# cmake
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.12/platforms/$WM_OPTIONS ) then
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_2812 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.12/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_311 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-3.1.1/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-3.1.1/platforms/$WM_OPTIONS/etc/cmake-3.1.1.csh
|
||||||
|
endif
|
||||||
|
|
||||||
# m4
|
# m4
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?M4_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/m4-1.4.16/platforms/$WM_OPTIONS ) then
|
if ( $?M4_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_M4_1416 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/m4-1.4.16/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS/etc/m4-1.4.16.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS/etc/m4-1.4.16.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# bison
|
# bison
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?BISON_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/bison-2.7/platforms/$WM_OPTIONS ) then
|
if ( $?BISON_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_BISON_27 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/bison-2.7/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS/etc/bison-2.7.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS/etc/bison-2.7.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# flex
|
# flex
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?FLEX_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/flex-2.5.35/platforms/$WM_OPTIONS ) then
|
if ( $?FLEX_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_FLEX_2535 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/flex-2.5.35/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS/etc/flex-2.5.35.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS/etc/flex-2.5.35.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# zoltan
|
# zoltan
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?ZOLTAN_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/zoltan-3.5/platforms/$WM_OPTIONS ) then
|
if ( $?ZOLTAN_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_ZOLTAN_35 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/zoltan-3.5/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan-3.5/platforms/$WM_OPTIONS/etc/zoltan-3.5.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan-3.5/platforms/$WM_OPTIONS/etc/zoltan-3.5.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?PYTHON_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/Python-2.7/platforms/$WM_OPTIONS ) then
|
if ( $?PYTHON_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYTHON_27 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/Python-2.7/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# PyFoam
|
# PyFoam
|
||||||
# ~~~~~~
|
# ~~~~~~
|
||||||
if ( $?PYFOAM_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.4/platforms/noarch ) then
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_063 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.3/platforms/noarch ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.3/platforms/noarch/etc/PyFoam-0.6.3.csh
|
||||||
|
endif
|
||||||
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_063 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.4/platforms/noarch ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch/etc/PyFoam-0.6.4.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch/etc/PyFoam-0.6.4.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# hwloc
|
# hwloc
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?HWLOC_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ) then
|
if ( $?HWLOC_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_HWLOC_172 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ) then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# QT
|
# QT
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
if ( $?QT_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS )then
|
if ( $?QT_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_QT_486 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.8.5/platforms/$WM_OPTIONS )then
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.8.6.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.5/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.8.5.csh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# PARAVIEW
|
# PARAVIEW
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
#if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.3.1/platforms/$WM_OPTIONS ) then
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_431 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.3.1/platforms/$WM_OPTIONS ) then
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS/etc/ParaView-4.3.1.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS/etc/ParaView-4.3.1.csh
|
||||||
|
|
||||||
if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.0.1/platforms/$WM_OPTIONS ) then
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS/etc/ParaView-4.0.1.csh
|
|
||||||
|
|
||||||
#if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
|
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
|
|
||||||
|
|
||||||
#if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ) then
|
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.csh
|
|
||||||
|
|
||||||
#if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
|
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
|
|
||||||
endif
|
endif
|
||||||
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_410 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.1.0/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.1.0/platforms/$WM_OPTIONS/etc/ParaView-4.1.0.csh
|
||||||
|
endif
|
||||||
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_401 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.0.1/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS/etc/ParaView-4.0.1.csh
|
||||||
|
endif
|
||||||
|
|
||||||
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_3141 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
|
||||||
|
endif
|
||||||
|
|
||||||
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_381 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.csh
|
||||||
|
endif
|
||||||
|
|
||||||
|
# llvm
|
||||||
|
# ~~~~~
|
||||||
|
if ( $?LLVM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_LLVM_360 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/llvm-3.6.0/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/llvm-3.6.0/platforms/$WM_OPTIONS/etc/llvm-3.6.0.csh
|
||||||
|
endif
|
||||||
|
|
||||||
|
# mesa
|
||||||
|
# ~~~~~
|
||||||
|
if ( $?MESA_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_MESA_GIT != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/mesa-git/platforms/$WM_OPTIONS ) then
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesa-git/platforms/$WM_OPTIONS/etc/mesa-git.csh
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
if ( $WM_ARCH == "darwinIntel" || $WM_ARCH == "darwinIntel64" ) then
|
if ( $WM_ARCH == "darwinIntel" || $WM_ARCH == "darwinIntel64" ) then
|
||||||
setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}
|
setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}
|
||||||
|
|
|
@ -139,9 +139,6 @@ FOAM)
|
||||||
;;
|
;;
|
||||||
Gcc49)
|
Gcc49)
|
||||||
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS
|
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.1.2/platforms/$WM_OPTIONS/etc/gmp-5.1.2.sh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.1.2/platforms/$WM_OPTIONS/etc/mpfr-3.1.2.sh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-1.0.1/platforms/$WM_OPTIONS/etc/mpc-1.0.1.sh
|
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS/etc/gcc-4.9.2.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS/etc/gcc-4.9.2.csh
|
||||||
;;
|
;;
|
||||||
Gcc47)
|
Gcc47)
|
||||||
|
@ -212,7 +209,16 @@ unset MPI_ARCH_PATH
|
||||||
mpi_version=unknown
|
mpi_version=unknown
|
||||||
case "$WM_MPLIB" in
|
case "$WM_MPLIB" in
|
||||||
OPENMPI)
|
OPENMPI)
|
||||||
if [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ]
|
if [ ! -z $WM_THIRD_PARTY_USE_OPENMPI_184 ] && [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.8.4/platforms/$WM_OPTIONS ]
|
||||||
|
then
|
||||||
|
mpi_version=openmpi-1.8.4
|
||||||
|
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
||||||
|
then
|
||||||
|
echo "Using openmpi-1.8.4 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
||||||
|
fi
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.sh
|
||||||
|
|
||||||
|
elif [ ! -z $WM_THIRD_PARTY_USE_OPENMPI_165 ] && [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ]
|
||||||
then
|
then
|
||||||
mpi_version=openmpi-1.6.5
|
mpi_version=openmpi-1.6.5
|
||||||
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
||||||
|
@ -221,7 +227,7 @@ OPENMPI)
|
||||||
fi
|
fi
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.sh
|
||||||
|
|
||||||
elif [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ]
|
elif [ ! -z $WM_THIRD_PARTY_USE_OPENMPI_143 ] && [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ]
|
||||||
then
|
then
|
||||||
mpi_version=openmpi-1.4.3
|
mpi_version=openmpi-1.4.3
|
||||||
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
||||||
|
@ -230,7 +236,7 @@ OPENMPI)
|
||||||
fi
|
fi
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.sh
|
||||||
|
|
||||||
elif [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ]
|
elif [ ! -z $WM_THIRD_PARTY_USE_OPENMPI_15 ] && [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ]
|
||||||
then
|
then
|
||||||
mpi_version=openmpi-1.5
|
mpi_version=openmpi-1.5
|
||||||
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
||||||
|
@ -543,7 +549,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load Mesquite library
|
# Load Mesquite library
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$MESQUITE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ] && {
|
[ -z "$MESQUITE_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_MESQUITE_212 ] && [ -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " MESQUITE_DIR is initialized to: $MESQUITE_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " MESQUITE_DIR is initialized to: $MESQUITE_DIR"
|
||||||
|
@ -551,7 +557,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load Metis library
|
# Load Metis library
|
||||||
# ~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$METIS_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ] && {
|
[ -z "$METIS_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_METIS_510 ] && [ -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " METIS_DIR is initialized to: $METIS_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " METIS_DIR is initialized to: $METIS_DIR"
|
||||||
|
@ -559,7 +565,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load ParMetis library
|
# Load ParMetis library
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$PARMETIS_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ] && {
|
[ -z "$PARMETIS_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARMETIS_403 ] && [ -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARMETIS_DIR is initialized to: $PARMETIS_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARMETIS_DIR is initialized to: $PARMETIS_DIR"
|
||||||
|
@ -567,7 +573,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load ParMGridGen library
|
# Load ParMGridGen library
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$PARMGRIDGEN_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ] && {
|
[ -z "$PARMGRIDGEN_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARMGRIDGEN_10 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARMGRIDGEN_DIR is initialized to: $PARMGRIDGEN_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARMGRIDGEN_DIR is initialized to: $PARMGRIDGEN_DIR"
|
||||||
|
@ -575,7 +581,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load Libccmio library
|
# Load Libccmio library
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$LIBCCMIO_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ] && {
|
[ -z "$LIBCCMIO_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_LIBCCMIO_261 ] && [ -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " LIBCCMIO_DIR is initialized to: $LIBCCMIO_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " LIBCCMIO_DIR is initialized to: $LIBCCMIO_DIR"
|
||||||
|
@ -583,7 +589,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load Scotch library
|
# Load Scotch library
|
||||||
# ~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~
|
||||||
[ -z "$SCOTCH_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ] && {
|
[ -z "$SCOTCH_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_SCOTCH_600 ] && [ -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " SCOTCH_DIR is initialized to: $SCOTCH_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " SCOTCH_DIR is initialized to: $SCOTCH_DIR"
|
||||||
|
@ -591,28 +597,34 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load cmake
|
# Load cmake
|
||||||
# ~~~~~~~~~~
|
# ~~~~~~~~~~
|
||||||
[ -z "$CMAKE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS ] && {
|
[ -z "$CMAKE_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_CMAKE_2812 ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " CMAKE_DIR is initialized to: $CMAKE_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " CMAKE_DIR is initialized to: $CMAKE_DIR"
|
||||||
|
|
||||||
|
|
||||||
|
[ -z "$CMAKE_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_CMAKE_311 ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-3.1.1/platforms/$WM_OPTIONS ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-3.1.1/platforms/$WM_OPTIONS/etc/cmake-3.1.1.sh
|
||||||
|
}
|
||||||
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " CMAKE_DIR is initialized to: $CMAKE_DIR"
|
||||||
|
|
||||||
# Load m4
|
# Load m4
|
||||||
# ~~~~~~~~~~
|
# ~~~~~~~~~~
|
||||||
[ -z "$M4_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS ] && {
|
[ -z "$M4_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_M4_1416 ] && [ -e $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS/etc/m4-1.4.16.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS/etc/m4-1.4.16.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " M4_DIR is initialized to: $M4_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " M4_DIR is initialized to: $M4_DIR"
|
||||||
|
|
||||||
# Load bison
|
# Load bison
|
||||||
# ~~~~~~~~~~
|
# ~~~~~~~~~~
|
||||||
[ -z "$BISON_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS ] && {
|
[ -z "$BISON_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_BISON_27 ] && [ -e $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS/etc/bison-2.7.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS/etc/bison-2.7.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " BISON_DIR is initialized to: $BISON_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " BISON_DIR is initialized to: $BISON_DIR"
|
||||||
|
|
||||||
# Load flex
|
# Load flex
|
||||||
# ~~~~~~~~~~
|
# ~~~~~~~~~~
|
||||||
[ -z "$FLEX_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS ] && {
|
[ -z "$FLEX_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_FLEX_2535 ] && [ -e $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS/etc/flex-2.5.35.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS/etc/flex-2.5.35.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " FLEX_DIR is initialized to: $FLEX_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " FLEX_DIR is initialized to: $FLEX_DIR"
|
||||||
|
@ -620,7 +632,7 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load zoltan
|
# Load zoltan
|
||||||
# ~~~~~~~~~~
|
# ~~~~~~~~~~
|
||||||
[ -z "$ZOLTAN_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/zoltan_3.5 ] && {
|
[ -z "$ZOLTAN_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_ZOLTAN_35 ] && [ -e $WM_THIRD_PARTY_DIR/packages/zoltan_3.5 ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan_3.5/platforms/$WM_OPTIONS/etc/zoltan_3.5.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan_3.5/platforms/$WM_OPTIONS/etc/zoltan_3.5.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " ZOLTAN_DIR is initialized to: $ZOLTAN_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " ZOLTAN_DIR is initialized to: $ZOLTAN_DIR"
|
||||||
|
@ -628,14 +640,17 @@ export MPI_BUFFER_SIZE
|
||||||
|
|
||||||
# Load Python
|
# Load Python
|
||||||
# ~~~~~~~~~~~
|
# ~~~~~~~~~~~
|
||||||
[ -z "$PYTHON_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS ] && {
|
[ -z "$PYTHON_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PYTHON_27 ] && [ -e $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYTHON_DIR is initialized to: $PYTHON_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYTHON_DIR is initialized to: $PYTHON_DIR"
|
||||||
|
|
||||||
# Load PyFoam
|
# Load PyFoam
|
||||||
# ~~~~~~~~~~~
|
# ~~~~~~~~~~~
|
||||||
[ -z "$PYFOAM_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch ] && {
|
[ -z "$PYFOAM_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PYFOAM_063 ] && [ -e $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.3/platforms/noarch ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.3/platforms/noarch/etc/PyFoam-0.6.3.sh
|
||||||
|
}
|
||||||
|
[ -z "$PYFOAM_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PYFOAM_064 ] && [ -e $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch/etc/PyFoam-0.6.4.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch/etc/PyFoam-0.6.4.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYFOAM_DIR is initialized to: $PYFOAM_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYFOAM_DIR is initialized to: $PYFOAM_DIR"
|
||||||
|
@ -651,14 +666,14 @@ fi
|
||||||
|
|
||||||
# Load hwloc
|
# Load hwloc
|
||||||
# ~~~~~~~~~~~
|
# ~~~~~~~~~~~
|
||||||
[ -z "$HWLOC_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ] && {
|
[ -z "$HWLOC_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_HWLOC_172 ] && [ -e $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " HWLOC_DIR is initialized to: $HWLOC_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " HWLOC_DIR is initialized to: $HWLOC_DIR"
|
||||||
|
|
||||||
# Load QT
|
# Load QT
|
||||||
# ~~~~~~~
|
# ~~~~~~~
|
||||||
[ ! -z "$QT_THIRD_PARTY" ] && [ -e $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS ] && {
|
[ ! -z "$QT_THIRD_PARTY" ] && [ ! -z $WM_THIRD_PARTY_USE_QT_486 ] && [ -e $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.8.6.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.8.6.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " QT_DIR is initialized to: $QT_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " QT_DIR is initialized to: $QT_DIR"
|
||||||
|
@ -666,18 +681,39 @@ fi
|
||||||
|
|
||||||
# Load ParaView
|
# Load ParaView
|
||||||
# ~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~
|
||||||
#[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS ] && {
|
[ -z "$PARAVIEW_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARAVIEW_431 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS ] && {
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS/etc/ParaView-4.3.1.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS/etc/ParaView-4.3.1.sh
|
||||||
[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS ] && {
|
}
|
||||||
|
[ -z "$PARAVIEW_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARAVIEW_410 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-4.1.0/platforms/$WM_OPTIONS ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.1.0/platforms/$WM_OPTIONS/etc/ParaView-4.1.0.sh
|
||||||
|
}
|
||||||
|
[ -z "$PARAVIEW_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARAVIEW_401 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS ] && {
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS/etc/ParaView-4.0.1.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS/etc/ParaView-4.0.1.sh
|
||||||
#[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ] && {
|
}
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.sh
|
[ -z "$PARAVIEW_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARAVIEW_3141 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ] && {
|
||||||
#[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ] && {
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.sh
|
||||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.sh
|
}
|
||||||
|
[ -z "$PARAVIEW_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_PARAVIEW_381 ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.sh
|
||||||
}
|
}
|
||||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARAVIEW_DIR is initialized to: $PARAVIEW_DIR"
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARAVIEW_DIR is initialized to: $PARAVIEW_DIR"
|
||||||
|
|
||||||
|
|
||||||
|
# Load llvm
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
[ -z "$LLVM_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_LLVM_360 ] && [ -e $WM_THIRD_PARTY_DIR/packages/llvm-3.6.0/platforms/$WM_OPTIONS ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/llvm-3.6.0/platforms/$WM_OPTIONS/etc/llvm-3.6.0.sh
|
||||||
|
}
|
||||||
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " LLVM_DIR is initialized to: $LLVM_DIR"
|
||||||
|
|
||||||
|
# Load mesa
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
[ -z "$MESA_SYSTEM" ] && [ ! -z $WM_THIRD_PARTY_USE_MESA_GIT ] && [ -e $WM_THIRD_PARTY_DIR/packages/mesa-git/platforms/$WM_OPTIONS ] && {
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesa-git/platforms/$WM_OPTIONS/etc/mesa-git.sh
|
||||||
|
}
|
||||||
|
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " MESA_DIR is initialized to: $MESA_DIR"
|
||||||
|
|
||||||
|
|
||||||
# cleanup environment:
|
# cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unset _foamAddPath _foamAddLib minBufferSize
|
unset _foamAddPath _foamAddLib minBufferSize
|
||||||
|
|
Reference in a new issue