mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
academic/OpenFOAM: Fix build.
Thanks to Lorenzo Trevisan :) Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
fda1946e2d
commit
ceb24dc9b7
1 changed files with 5 additions and 4 deletions
|
@ -64,17 +64,18 @@ cd $PRGNAM-$VERSION
|
||||||
|
|
||||||
sed -i -e '16s=-lreadline=-lreadline -lncurses=' ./applications/utilities/mesh/manipulation/setSet/Allwmake
|
sed -i -e '16s=-lreadline=-lreadline -lncurses=' ./applications/utilities/mesh/manipulation/setSet/Allwmake
|
||||||
sed -i -e '47s=$HOME=/opt=' ./etc/bashrc
|
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,
|
# "Allwmake" below doesn't accept MAKEFLAGS. If MAKEFLAGS contains a -j option,
|
||||||
# extract it and pass it to "Allwmake". (Thanks to Chris Willing)
|
# extract the number of jobs and export it for "Allwmake". (Thanks to Chris Willing)
|
||||||
jval="$(echo $MAKEFLAGS |grep -o "\-j *[0-9]*" | grep -o "[0-9]*")" || true
|
jval="$(echo $MAKEFLAGS |grep -o "\-j *[0-9]*" | grep -o "[0-9]*")" || true
|
||||||
jobs=''
|
[ -n "$jval" ] && export WM_NCOMPPROCS="$jval"
|
||||||
[ -n "$jval" ] && jobs="-j${jval}"
|
|
||||||
|
|
||||||
(
|
(
|
||||||
. ./etc/bashrc || true
|
. ./etc/bashrc || true
|
||||||
cd $WM_PROJECT_DIR
|
cd $WM_PROJECT_DIR
|
||||||
./Allwmake $jobs
|
./Allwmake
|
||||||
# check for graphviz
|
# check for graphviz
|
||||||
if [ -x /usr/bin/dot ]; then
|
if [ -x /usr/bin/dot ]; then
|
||||||
wmake all doc
|
wmake all doc
|
||||||
|
|
Loading…
Reference in a new issue