Skip to content

Commit

Permalink
fclaw-build-wdeps.sh: an autotools build script
Browse files Browse the repository at this point in the history
  • Loading branch information
cburstedde committed Jan 5, 2024
1 parent adb290e commit 46d04aa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/fclaw-build-wdeps.sh
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"

0 comments on commit 46d04aa

Please sign in to comment.