-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fclaw-build-wdeps.sh: an autotools build script
- Loading branch information
1 parent
adb290e
commit 46d04aa
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#! /bin/bash | ||
|
||
# Build and install the latest ForestClaw develop branch including p4est, | ||
# libsc, zlib and jansson. We first download and install a recent zlib to | ||
# a local directory, then do the same for the jansson library. Then we | ||
# clone and install the current develop branches of p4est and libsc using | ||
# that zlib and jansson installation and finally clone and install the | ||
# current develop branch of ForestClaw, linking against all of the above. | ||
|
||
# This results in five installation directories that any higher | ||
# level software package may be compiled and linked against. | ||
# The options are similar to those used in this script. | ||
# In particular, the -rpath option may turn out useful. | ||
|
||
# let the p4est installation script set the stage | ||
BLP4="p4est-build-wdeps.sh" | ||
wget -N "https://github.com/cburstedde/p4est/raw/develop/doc/$BLP4" && \ | ||
source "$BLP4" && \ | ||
rm "$BLP4" || exit 1 | ||
|
||
# clone, build and install ForestClaw | ||
git clone https://github.com/forestclaw/forestclaw.git -b develop && \ | ||
cd forestclaw && \ | ||
./bootstrap "$PREFIX/libsc/share/aclocal" "$PREFIX/p4est/share/aclocal" && \ | ||
mkdir build && \ | ||
cd build && \ | ||
../configure $CONFIG --with-sc="$PREFIX/libsc" --with-p4est="$PREFIX/p4est" \ | ||
--prefix="$PREFIX/fclaw" && \ | ||
(make -j V=0 || make -j V=0 || make -j V=0) && \ | ||
make -j install V=0 && \ | ||
cd ../../ && \ | ||
rm -rf forestclaw.git && \ | ||
rm -r forestclaw || bdie "ForestClaw" |