summaryrefslogtreecommitdiff
path: root/academic/OpenFOAM
diff options
context:
space:
mode:
authorLorenzo Trevisan <lorenzo.trevisan@gmail.com>2018-07-16 19:39:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-17 07:15:42 +0700
commiteb1f6670bf763ad766e3c11f0d406fb8406ed96c (patch)
tree06f512e10ee66a48fa19939da27cf04d4cb2999f /academic/OpenFOAM
parent19e983380bc6420cbe0cbebe79d60afb12bd5007 (diff)
downloadslackbuilds-eb1f6670bf763ad766e3c11f0d406fb8406ed96c.tar.gz
academic/OpenFOAM: Updated for version 6.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/OpenFOAM')
-rw-r--r--academic/OpenFOAM/OpenFOAM.SlackBuild21
-rw-r--r--academic/OpenFOAM/OpenFOAM.info10
-rw-r--r--academic/OpenFOAM/OpenFOAM.sh2
-rw-r--r--academic/OpenFOAM/README4
-rw-r--r--academic/OpenFOAM/slack-desc2
5 files changed, 19 insertions, 20 deletions
diff --git a/academic/OpenFOAM/OpenFOAM.SlackBuild b/academic/OpenFOAM/OpenFOAM.SlackBuild
index d4b76a6237..edf0a4763e 100644
--- a/academic/OpenFOAM/OpenFOAM.SlackBuild
+++ b/academic/OpenFOAM/OpenFOAM.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for OpenFOAM
-# Copyright 2017 Lorenzo Trevisan, Caorle, Venice, Italy
+# Copyright 2017, 2018 Lorenzo Trevisan, Caorle, Venice, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=OpenFOAM
-VERSION=${VERSION:-5.0}
+VERSION=${VERSION:-6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-XVER=${VERSION%%.*}.x
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -49,10 +47,10 @@ mkdir -p $TMP $PKG $OUTPUT
cd $PKG
mkdir -p opt/$PRGNAM
cd $PKG/opt/$PRGNAM
-tar xvf $CWD/$PRGNAM-$XVER-version-$VERSION.tar.gz
-mv $PRGNAM-$XVER-version-$VERSION $PRGNAM-$VERSION
-tar xvf $CWD/ThirdParty-$XVER-version-$VERSION.tar.gz
-mv ThirdParty-$XVER-version-$VERSION ThirdParty-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-version-$VERSION.tar.gz
+mv $PRGNAM-$VERSION-version-$VERSION $PRGNAM-$VERSION
+tar xvf $CWD/ThirdParty-$VERSION-version-$VERSION.tar.gz
+mv ThirdParty-$VERSION-version-$VERSION ThirdParty-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -62,10 +60,7 @@ find -L . \
cd $PRGNAM-$VERSION
-sed -i -e '16s=-lreadline=-lreadline -lncurses=' ./applications/utilities/mesh/manipulation/setSet/Allwmake
sed -i -e '47s=$HOME=/opt=' ./etc/bashrc
-# Fix bash_completion for posixly-incorrect identifier
-sed -i -e 's/rm~all/rmAll/g' etc/config.sh/bash_completion
# "Allwmake" below doesn't accept MAKEFLAGS. If MAKEFLAGS contains a -j option,
# extract the number of jobs and export it for "Allwmake". (Thanks to Chris Willing)
@@ -78,7 +73,9 @@ jval="$(echo $MAKEFLAGS |grep -o "\-j *[0-9]*" | grep -o "[0-9]*")" || true
./Allwmake
# check for graphviz
if [ -x /usr/bin/dot ]; then
- wmake all doc
+ cd $WM_PROJECT_DIR/doc/Doxygen
+ ./Allwmake
+ cd $WM_PROJECT_DIR
fi
)
diff --git a/academic/OpenFOAM/OpenFOAM.info b/academic/OpenFOAM/OpenFOAM.info
index dfdaffc707..67f8c46c63 100644
--- a/academic/OpenFOAM/OpenFOAM.info
+++ b/academic/OpenFOAM/OpenFOAM.info
@@ -1,10 +1,10 @@
PRGNAM="OpenFOAM"
-VERSION="5.0"
+VERSION="6"
HOMEPAGE="https://openfoam.org/"
-DOWNLOAD="https://github.com/OpenFOAM/OpenFOAM-5.x/archive/version-5.0/OpenFOAM-5.x-version-5.0.tar.gz \
- https://github.com/OpenFOAM/ThirdParty-5.x/archive/version-5.0/ThirdParty-5.x-version-5.0.tar.gz"
-MD5SUM="cd8c5bdd3ff39c34f61747c8e55f59d1 \
- 76d619a8c79eae38baed2e08305eb923"
+DOWNLOAD="https://github.com/OpenFOAM/OpenFOAM-6/archive/version-6/OpenFOAM-6-version-6.tar.gz \
+ https://github.com/OpenFOAM/ThirdParty-6/archive/version-6/ThirdParty-6-version-6.tar.gz"
+MD5SUM="f40aa39d4d5dfe7ea8d9a58f2625037a \
+ 848652a3eaf8a1a7e17a7ad9655a123c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="openmpi CGAL"
diff --git a/academic/OpenFOAM/OpenFOAM.sh b/academic/OpenFOAM/OpenFOAM.sh
index ee304372f1..fd91481fb4 100644
--- a/academic/OpenFOAM/OpenFOAM.sh
+++ b/academic/OpenFOAM/OpenFOAM.sh
@@ -1 +1 @@
-. /opt/OpenFOAM/OpenFOAM-5.0/etc/bashrc
+. /opt/OpenFOAM/OpenFOAM-6/etc/bashrc
diff --git a/academic/OpenFOAM/README b/academic/OpenFOAM/README
index b5a4298c1c..fd23aef9b7 100644
--- a/academic/OpenFOAM/README
+++ b/academic/OpenFOAM/README
@@ -4,7 +4,9 @@ suppression in buildings, involving combustion, chemical reactions,
heat transfer, liquid sprays and films. It includes tools for meshing
in and around complex geometries (e.g. a vehicle), and for data
processing and visualisation, and more. Almost all computations can be
-executed in parallel as standard to take full advantage of today’s
+executed in parallel as standard to take full advantage of today's
multi-core processors and multi-processor computers.
Optional dependency: graphviz (for documentation with graphs)
+
+You can build with multiple jobs by setting the MAKEFLAGS environment variable.
diff --git a/academic/OpenFOAM/slack-desc b/academic/OpenFOAM/slack-desc
index 598081f06c..5aafe9332c 100644
--- a/academic/OpenFOAM/slack-desc
+++ b/academic/OpenFOAM/slack-desc
@@ -14,6 +14,6 @@ OpenFOAM: suppression in buildings, involving combustion, chemical reactions,
OpenFOAM: heat transfer, liquid sprays and films. It includes tools for meshing
OpenFOAM: in and around complex geometries (e.g. a vehicle), and for data
OpenFOAM: processing and visualisation, and more. Almost all computations can be
-OpenFOAM: executed in parallel as standard to take full advantage of today’s
+OpenFOAM: executed in parallel as standard to take full advantage of today's
OpenFOAM: multi-core processors and multi-processor computers.
OpenFOAM: