mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
STYLE: clearly document which scripts contain user-configurable settings
- unify cd, check for the cwd and error message
This commit is contained in:
36
Allclean
36
Allclean
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -26,26 +26,24 @@
|
|||||||
# Allclean
|
# Allclean
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Clean script for third-party applications and libraries
|
# Clean script for ThirdParty applications and libraries
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# Run from third-party directory only
|
||||||
cd ${0%/*} || exit 1
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
# . etc/tools/ThirdPartyFunctions
|
# . etc/tools/ThirdPartyFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
Usage: $Script [OPTION] [<platform> [ ... <platformN> ]]
|
Usage: ${0##*/} [OPTION] [<platform> [ ... <platformN> ]]
|
||||||
options:
|
options:
|
||||||
-all remove all platforms directories.
|
-all remove all platforms directories.
|
||||||
-current clean the current platform ($WM_OPTIONS).
|
-current clean the current platform ($WM_OPTIONS).
|
||||||
@ -60,14 +58,15 @@ USAGE
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Print help message
|
# Print help message
|
||||||
if [ "$1" = "-h" -o "$1" = "-help" ]; then
|
if [ "$1" = "-h" -o "$1" = "-help" ]
|
||||||
|
then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Clean various packages via 'distclean'
|
# Clean various packages via 'distclean'
|
||||||
for i in openmpi-* ADIOS-* metis-*
|
for i in openmpi-* metis-* adios-* ADIOS-*
|
||||||
do
|
do
|
||||||
[ -d "$i" ] && (
|
[ -d "$i" ] && (
|
||||||
echo
|
echo
|
||||||
@ -105,12 +104,6 @@ fi
|
|||||||
#
|
#
|
||||||
# Clean platforms directories
|
# Clean platforms directories
|
||||||
#
|
#
|
||||||
if [ "$#" -ge 1 ]
|
|
||||||
then
|
|
||||||
echo
|
|
||||||
echo "Clean platforms/sub-directories"
|
|
||||||
fi
|
|
||||||
|
|
||||||
removePlatform()
|
removePlatform()
|
||||||
{
|
{
|
||||||
local platform="$1"
|
local platform="$1"
|
||||||
@ -125,6 +118,11 @@ removePlatform()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$#" -ge 1 ]
|
||||||
|
then
|
||||||
|
echo
|
||||||
|
echo "Clean platforms/sub-directories"
|
||||||
|
fi
|
||||||
|
|
||||||
# Optionally cleanup platforms specified from the arguments
|
# Optionally cleanup platforms specified from the arguments
|
||||||
while [ "$#" -ge 1 ]
|
while [ "$#" -ge 1 ]
|
||||||
|
|||||||
16
Allwmake
16
Allwmake
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -28,18 +28,18 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for ThirdParty
|
# Build script for ThirdParty
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
cd ${0%/*} || exit 1
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
||||||
echo "Error: FOAM_EXT_LIBBIN not set"
|
echo "Error (${0##*/}) : \$FOAM_EXT_LIBBIN not set"
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check your OpenFOAM environment and installation"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
|||||||
@ -28,20 +28,20 @@
|
|||||||
# Description
|
# Description
|
||||||
# Change prefix when relocating QT installation
|
# Change prefix when relocating QT installation
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
unset qtVERSION # No default version
|
# Run from third-party (parent) directory only
|
||||||
|
wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
#------------------------------------------------------------------------------
|
echo "Error (${0##*/}) : current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
# Run from third-party directory only
|
echo " Check your OpenFOAM environment and installation"
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
. etc/tools/QtFunctions
|
. etc/tools/QtFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
unset qtVERSION # No default version
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
|
|||||||
26
makeADIOS
26
makeADIOS
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -28,23 +28,23 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for ADIOS
|
# Build script for ADIOS
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get version info
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ADIOS version from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ADIOS)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ADIOS)
|
||||||
|
|
||||||
adiosPACKAGE=${adios_version:-adios-none}
|
adiosPACKAGE=${adios_version:-adios-none}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
@ -365,4 +365,4 @@ else
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
36
makeCCMIO
36
makeCCMIO
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -28,29 +28,28 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build CD-adapco's ccmio library
|
# Build CD-adapco's ccmio library
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get version info
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
||||||
|
echo "Error (${0##*/}) : \$FOAM_EXT_LIBBIN not set"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# libccmio version from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
|
||||||
|
|
||||||
ccmioPACKAGE=${ccmio_version:-libccmio-2.6.1}
|
ccmioPACKAGE=${ccmio_version:-libccmio-2.6.1}
|
||||||
targetType=lib
|
targetType=lib
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
cd ${0%/*} || exit 1
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
|
||||||
echo "Error: FOAM_EXT_LIBBIN not set"
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
@ -79,7 +78,6 @@ USAGE
|
|||||||
}
|
}
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
# Parse options
|
# Parse options
|
||||||
while [ "$#" -gt 0 ]
|
while [ "$#" -gt 0 ]
|
||||||
do
|
do
|
||||||
|
|||||||
29
makeCGAL
29
makeCGAL
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -34,8 +34,18 @@
|
|||||||
# simply specify a 'system' version. For example,
|
# simply specify a 'system' version. For example,
|
||||||
# makeCGAL boost-system gmp-system
|
# makeCGAL boost-system gmp-system
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get CGAL, boost and gmp/mpfr versions
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# CGAL, boost and gmp/mpfr versions from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
||||||
unset BOOST_ARCH_PATH CGAL_ARCH_PATH # purge current values
|
unset BOOST_ARCH_PATH CGAL_ARCH_PATH # purge current values
|
||||||
@ -48,24 +58,13 @@ boostPACKAGE=${boost_version:-boost-system}
|
|||||||
gmpPACKAGE=${gmp_version:-gmp-system}
|
gmpPACKAGE=${gmp_version:-gmp-system}
|
||||||
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
||||||
cgalPACKAGE=$cgal_version
|
cgalPACKAGE=$cgal_version
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script="${0##*/}"
|
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: $Script [OPTION] [CGAL-VERSION] [boost-VERSION] [gmp-VERSION] [mpfr-VERSION]
|
usage: ${0##*/} [OPTION] [CGAL-VERSION] [boost-VERSION] [gmp-VERSION] [mpfr-VERSION]
|
||||||
options:
|
options:
|
||||||
-cmake PATH with cmake from the path given
|
-cmake PATH with cmake from the path given
|
||||||
-gcc force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
-gcc force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
||||||
@ -82,7 +81,7 @@ options:
|
|||||||
Normally builds against ThirdParty boost and gmp/mpfr when possible.
|
Normally builds against ThirdParty boost and gmp/mpfr when possible.
|
||||||
To override this behaviour (and use the system boost and/or gmp/mpfr),
|
To override this behaviour (and use the system boost and/or gmp/mpfr),
|
||||||
simply specify a 'system' version. For example,
|
simply specify a 'system' version. For example,
|
||||||
$Script boost-system gmp-system
|
${0##*/} boost-system gmp-system
|
||||||
|
|
||||||
Use gmp-none to disable use of gmp/mpfr (eg, not available)
|
Use gmp-none to disable use of gmp/mpfr (eg, not available)
|
||||||
|
|
||||||
|
|||||||
20
makeCmake
20
makeCmake
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -28,20 +28,20 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for cmake
|
# Build script for cmake
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
# ----------------------------------------------
|
||||||
# Special purpose script, no default version.
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
unset cmakePACKAGE
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
# Special purpose script - no default version.
|
||||||
|
unset cmakePACKAGE
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
@ -53,7 +53,7 @@ options:
|
|||||||
-help
|
-help
|
||||||
|
|
||||||
* build cmake
|
* build cmake
|
||||||
${cmakePACKAGE:-'unspecified version'}
|
${cmakePACKAGE:-'unspecified'}
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
24
makeFFTW
24
makeFFTW
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -28,24 +28,24 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for FFTW
|
# Build script for FFTW
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get FFTW versions
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# FFTW version from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
||||||
|
|
||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/FFTW)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/FFTW)
|
||||||
|
|
||||||
fftwPACKAGE=${fftw_version:-fftw-system}
|
fftwPACKAGE=${fftw_version:-fftw-system}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
|
|||||||
28
makeGcc
28
makeGcc
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -40,8 +40,18 @@
|
|||||||
#
|
#
|
||||||
# WM_COMPILER=Gcc51 ./makeGcc -system
|
# WM_COMPILER=Gcc51 ./makeGcc -system
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# get default GCC, mpfr, gmp and mpc versions
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Default GCC, mpfr, gmp and mpc versions from OpenFOAM etc/config.sh file
|
||||||
WM_COMPILER_TYPE=ThirdParty # ensure we get the correct compiler settings
|
WM_COMPILER_TYPE=ThirdParty # ensure we get the correct compiler settings
|
||||||
: ${WM_COMPILER:=Gcc} # this will still fail if 'Clang' was set
|
: ${WM_COMPILER:=Gcc} # this will still fail if 'Clang' was set
|
||||||
|
|
||||||
@ -52,25 +62,13 @@ gmpPACKAGE=${gmp_version:-gmp-system}
|
|||||||
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
||||||
mpcPACKAGE=${mpc_version:-mpc-system}
|
mpcPACKAGE=${mpc_version:-mpc-system}
|
||||||
gccPACKAGE=$gcc_version
|
gccPACKAGE=$gcc_version
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: $Script [OPTION] [gcc-VERSION] [gmp-VERSION] [mpfr-VERSION] [mpc-VERSION]
|
usage: ${0##*/} [OPTION] [gcc-VERSION] [gmp-VERSION] [mpfr-VERSION] [mpc-VERSION]
|
||||||
options:
|
options:
|
||||||
-multilib for 64-bit systems with 32-bit support required
|
-multilib for 64-bit systems with 32-bit support required
|
||||||
-no-multilib for 64-bit systems without 32-bit support (DEFAULT)
|
-no-multilib for 64-bit systems without 32-bit support (DEFAULT)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -28,24 +28,24 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for gperftools
|
# Build script for gperftools
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get gperftools version
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Gperftools version from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
||||||
|
|
||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/gperftools)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/gperftools)
|
||||||
|
|
||||||
gperftoolsPACKAGE=${gperftools_version:-gperftools-system}
|
gperftoolsPACKAGE=${gperftools_version:-gperftools-system}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
|
|||||||
44
makeLLVM
44
makeLLVM
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -30,28 +30,30 @@
|
|||||||
#
|
#
|
||||||
# Note
|
# Note
|
||||||
# - Ensure that you always use matching versions between llvm and clang.
|
# - Ensure that you always use matching versions between llvm and clang.
|
||||||
# - The LLVM components reside in the LLVM tools/ subdirectory
|
# - LLVM components such as clang reside in the LLVM tools/ subdirectory
|
||||||
#
|
#
|
||||||
# Example, building from svn repository:
|
# For example, when building from tar files (version 3.8.0)
|
||||||
# 1) Checkout LLVM:
|
|
||||||
# svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn
|
|
||||||
#
|
#
|
||||||
# 2) Checkout Clang, in the correct location
|
# 1) Unpack LLVM:
|
||||||
# cd llvm-svn/tools
|
# tar -xJvf llvm-3.8.0.src.tar.xz
|
||||||
# svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
|
|
||||||
# cd -
|
|
||||||
#
|
|
||||||
# Example, building from tar files (version 3.8.0)
|
|
||||||
# - Unpack LLVM:
|
|
||||||
# tar -Jvf llvm-3.8.0.src.tar.xz
|
|
||||||
# mv llvm-3.8.0.src llvm-3.8.0
|
# mv llvm-3.8.0.src llvm-3.8.0
|
||||||
#
|
#
|
||||||
# - Unpack Clang (also know as cfe):
|
# 2) Unpack Clang (also know as cfe):
|
||||||
# tar -Jvf cfe-3.8.0.src.tar.xz
|
# tar -xJvf cfe-3.8.0.src.tar.xz
|
||||||
# mv cfe-3.8.0.src llvm-3.8.0/tools/clang
|
# mv cfe-3.8.0.src llvm-3.8.0/tools/clang
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get default llvm/clang version
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# LLVM/Clang version from OpenFOAM etc/config.sh file
|
||||||
WM_COMPILER_TYPE=ThirdParty # ensure we get the correct compiler settings
|
WM_COMPILER_TYPE=ThirdParty # ensure we get the correct compiler settings
|
||||||
WM_COMPILER=Clang # force values for 'clang'
|
WM_COMPILER=Clang # force values for 'clang'
|
||||||
|
|
||||||
@ -59,16 +61,6 @@ WM_COMPILER=Clang # force values for 'clang'
|
|||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/compiler)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/compiler)
|
||||||
|
|
||||||
llvmPACKAGE=$clang_version
|
llvmPACKAGE=$clang_version
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# run from third-party directory only
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
|
|||||||
26
makeMesa
26
makeMesa
@ -32,23 +32,27 @@
|
|||||||
# Building with mesa-12.x.x fails to create an include/GL directory and
|
# Building with mesa-12.x.x fails to create an include/GL directory and
|
||||||
# an "osmesa.h" file. Both make it fairly useless for off-screen VTK.
|
# an "osmesa.h" file. Both make it fairly useless for off-screen VTK.
|
||||||
#
|
#
|
||||||
# Building with mesa-11.x is fine and mesa-13.x also seems to be okay.
|
# Building with mesa-11.x and mesa-13.x seem to be okay.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
# ----------------------------------------------
|
||||||
# Special purpose script, no default version.
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
unset mesaPACKAGE
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
cd ${0%/*} || exit 1
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
# MESA version from OpenFOAM etc/config.sh file
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
unset -f _foamAddPath _foamAddLib # get settings only
|
||||||
|
unset vtk_version mesa_version # purge current values
|
||||||
|
|
||||||
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/vtk)
|
||||||
|
mesaPACKAGE=$mesa_version
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
@ -207,4 +211,4 @@ adjustMESA()
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
33
makeParaView
33
makeParaView
@ -33,27 +33,25 @@
|
|||||||
#
|
#
|
||||||
# Note the capitalization of ParaView in the directory names.
|
# Note the capitalization of ParaView in the directory names.
|
||||||
#
|
#
|
||||||
|
# ------------------------------------------------
|
||||||
|
# SOME USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get ParaView_VERSION location from OpenFOAM config file
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
. etc/tools/ParaViewFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ParaView_VERSION from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib # get settings only
|
unset -f _foamAddPath _foamAddLib # get settings only
|
||||||
unset ParaView_VERSION # purge current values
|
unset ParaView_VERSION # purge current values
|
||||||
|
|
||||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/paraview)
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/paraview)
|
||||||
|
|
||||||
: ${ParaView_VERSION##*-}
|
: ${ParaView_VERSION##*-}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
cd ${0%/*} || exit 1
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
. etc/tools/ParaViewFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# USER DEFAULTS:
|
# USER DEFAULTS:
|
||||||
@ -69,7 +67,7 @@ MESA_LIBRARY="/usr/lib$WM_COMPILER_LIB_ARCH/libOSMesa.so"
|
|||||||
# If that fails, specify the path using the PYTHON_LIBRARY variable below.
|
# If that fails, specify the path using the PYTHON_LIBRARY variable below.
|
||||||
withPYTHON=false
|
withPYTHON=false
|
||||||
PYTHON_LIBRARY=""
|
PYTHON_LIBRARY=""
|
||||||
# PYTHON_LIBRARY="/usr/lib$WM_COMPILER_LIB_ARCH/libpython2.6.so.1.0"
|
# PYTHON_LIBRARY="/usr/lib$WM_COMPILER_LIB_ARCH/libpython2.7.so.1.0"
|
||||||
|
|
||||||
# New rendering backend (starting with paraview 5.0).
|
# New rendering backend (starting with paraview 5.0).
|
||||||
# Default to auto-config based on paraview version
|
# Default to auto-config based on paraview version
|
||||||
@ -79,14 +77,13 @@ withGL2=auto
|
|||||||
# NO FURTHER EDITING BELOW THIS LINE
|
# NO FURTHER EDITING BELOW THIS LINE
|
||||||
#
|
#
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
Script=${0##*/}
|
|
||||||
usage() {
|
usage() {
|
||||||
: ${ParaView_VERSION:=none} # some dummy value for usage information
|
: ${ParaView_VERSION:=none} # some dummy value for usage information
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: $Script [OPTION] [paraview-VERSION] [CMAKE-OPTION]
|
usage: ${0##*/} [OPTION] [paraview-VERSION] [CMAKE-OPTION]
|
||||||
options:
|
options:
|
||||||
-gcc force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
-gcc force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
||||||
-rebuild for repeated builds (-make -install) *use with caution*
|
-rebuild for repeated builds (-make -install) *use with caution*
|
||||||
@ -116,7 +113,7 @@ The -no-FEATURE option can be used to forcibly disable these features:
|
|||||||
|
|
||||||
CMake options start with a capital letter and contain an '='.
|
CMake options start with a capital letter and contain an '='.
|
||||||
For example,
|
For example,
|
||||||
$Script BUILD_TESTING=ON
|
${0##*/} BUILD_TESTING=ON
|
||||||
to add tests
|
to add tests
|
||||||
|
|
||||||
For finer control, the build stages can be selected or deselected individually:
|
For finer control, the build stages can be selected or deselected individually:
|
||||||
|
|||||||
18
makeQt
18
makeQt
@ -28,21 +28,21 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build script for QT (the qt-everywhere-opensource-src package)
|
# Build script for QT (the qt-everywhere-opensource-src package)
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
# ----------------------------------------------
|
||||||
unset qtVERSION # No default version
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
qtTYPE=qt-everywhere-opensource-src
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
. etc/tools/QtFunctions
|
. etc/tools/QtFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
qtTYPE=qt-everywhere-opensource-src
|
||||||
|
unset qtVERSION # No default version
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
@ -53,7 +53,7 @@ options:
|
|||||||
-gcc Force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
-gcc Force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
||||||
-help
|
-help
|
||||||
|
|
||||||
* build $qtTYPE, version $qtVERSION
|
* build $qtTYPE, version ${qtVERSION:-undefined}
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
35
makeTecio
35
makeTecio
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -28,8 +28,23 @@
|
|||||||
# Description
|
# Description
|
||||||
# Build Tecplot library
|
# Build Tecplot library
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Get boost version (headers only)
|
# Run from third-party directory only
|
||||||
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
||||||
|
echo "Error (${0##*/}) : \$FOAM_EXT_LIBBIN not set"
|
||||||
|
echo " Check your OpenFOAM environment and installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
. etc/tools/ThirdPartyFunctions
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Boost version (headers only) from OpenFOAM etc/config.sh file
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
unset -f _foamAddPath _foamAddLib _foamAddMan # get settings only
|
||||||
|
|
||||||
@ -38,22 +53,6 @@ _foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
|
|||||||
boostPACKAGE=${boost_version:-boost-system}
|
boostPACKAGE=${boost_version:-boost-system}
|
||||||
tecioPACKAGE=tecio
|
tecioPACKAGE=tecio
|
||||||
targetType=lib
|
targetType=lib
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Run from third-party directory only
|
|
||||||
cd ${0%/*} || exit 1
|
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
[ -n "$FOAM_EXT_LIBBIN" ] || {
|
|
||||||
echo "Error: FOAM_EXT_LIBBIN not set"
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
. etc/tools/ThirdPartyFunctions
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
|||||||
28
makeVTK
28
makeVTK
@ -28,27 +28,34 @@
|
|||||||
# Description
|
# Description
|
||||||
# Make and install VTK.
|
# Make and install VTK.
|
||||||
# The VTK sources should be located under one of these locations:
|
# The VTK sources should be located under one of these locations:
|
||||||
# - $WM_THIRD_PARTY_DIR/ParaView-VERSION
|
# - $WM_THIRD_PARTY_DIR/VTK-VERSION
|
||||||
# - $WM_THIRD_PARTY_DIR/ParaView-vVERSION
|
|
||||||
#
|
#
|
||||||
# To use the VTK source from the ParaView source tree, simply make an
|
# To use the VTK source from the ParaView source tree, simply make an
|
||||||
# appropriate link first. For example,
|
# appropriate link first. For example,
|
||||||
#
|
#
|
||||||
# (cd $WM_THIRD_PARTY_DIR && ln -s ParaView-v5.2.0/VTK VTK-7.1.0)
|
# (cd $WM_THIRD_PARTY_DIR && ln -s ParaView-v5.2.0/VTK VTK-7.1.0)
|
||||||
#
|
#
|
||||||
|
# ------------------------------------------------
|
||||||
|
# SOME USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
cd ${0%/*} || exit 1
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. etc/tools/ThirdPartyFunctions
|
. etc/tools/ThirdPartyFunctions
|
||||||
. etc/tools/ParaViewFunctions
|
. etc/tools/ParaViewFunctions
|
||||||
. etc/tools/vtkFunctions
|
. etc/tools/vtkFunctions
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
# VTK version from OpenFOAM etc/config.sh file
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
unset -f _foamAddPath _foamAddLib # get settings only
|
||||||
|
unset vtk_version mesa_version # purge current values
|
||||||
|
|
||||||
|
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/vtk)
|
||||||
|
VTK_VERSION=$vtk_version
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# USER DEFAULTS:
|
# USER DEFAULTS:
|
||||||
# ~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~
|
||||||
@ -66,13 +73,12 @@ withGL2=auto
|
|||||||
# NO FURTHER EDITING BELOW THIS LINE
|
# NO FURTHER EDITING BELOW THIS LINE
|
||||||
#
|
#
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
Script=${0##*/}
|
|
||||||
usage() {
|
usage() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: $Script [OPTION] [vtk-VERSION] [CMAKE-OPTION]
|
usage: ${0##*/} [OPTION] [vtk-VERSION] [CMAKE-OPTION]
|
||||||
options:
|
options:
|
||||||
-gcc force g++ instead of the value from \$WM_CXX
|
-gcc force g++ instead of the value from \$WM_CXX
|
||||||
-rebuild for repeated builds (-make -install) *use with caution*
|
-rebuild for repeated builds (-make -install) *use with caution*
|
||||||
@ -91,12 +97,12 @@ options:
|
|||||||
-suffix NAME specify a suffix to distinguish the build
|
-suffix NAME specify a suffix to distinguish the build
|
||||||
-help
|
-help
|
||||||
|
|
||||||
The -no-FEATURE option can be disable these features (if not already disabled):
|
The -no-FEATURE option can be used to forcibly disable these features:
|
||||||
-no-gl2 | -no-mesa | -no-mpi
|
-no-gl2 | -no-mesa | -no-mpi
|
||||||
|
|
||||||
CMake options start with a capital letter and contain an '='.
|
CMake options start with a capital letter and contain an '='.
|
||||||
For example,
|
For example,
|
||||||
$Script BUILD_TESTING=ON
|
${0##*/} BUILD_TESTING=ON
|
||||||
to add tests and avoid building documentation
|
to add tests and avoid building documentation
|
||||||
|
|
||||||
For finer control, the build stages can be selected or deselected individually:
|
For finer control, the build stages can be selected or deselected individually:
|
||||||
|
|||||||
11
minCmake
11
minCmake
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -28,12 +28,13 @@
|
|||||||
# Description
|
# Description
|
||||||
# Scour CMakeLists.txt files to report the cmake_minimum required.
|
# Scour CMakeLists.txt files to report the cmake_minimum required.
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------
|
||||||
|
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Run from third-party directory only
|
# Run from third-party directory only
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
cd ${0%/*} && wmakeCheckPwd -q "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " Check your OpenFOAM environment and installation"
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user