-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildme_deps
executable file
·58 lines (47 loc) · 1.07 KB
/
buildme_deps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Fetches and builds lwgrp and dtcmp libs, which SCR
# uses as optional dependencies.
# requires MPI-2.2 or higher
set -x
OPT="-g -O0"
mkdir -p deps
cd deps
installdir=`pwd`/install
lwgrp=lwgrp-1.0.2
dtcmp=dtcmp-1.0.3
if [ ! -f ${lwgrp}.tar.gz ] ; then
wget https://github.com/hpc/lwgrp/releases/download/v1.0.2/${lwgrp}.tar.gz
fi
if [ ! -f ${dtcmp}.tar.gz ] ; then
wget https://github.com/hpc/dtcmp/releases/download/v1.0.3/${dtcmp}.tar.gz
fi
rm -rf $installdir
rm -rf ${lwgrp}
tar -zxf ${lwgrp}.tar.gz
pushd ${lwgrp}
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
--disable-silent-rules && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install liblwgrp"
exit 1
fi
popd
rm -rf ${dtcmp}
tar -zxf ${dtcmp}.tar.gz
pushd ${dtcmp}
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
--disable-silent-rules \
--with-lwgrp=${installdir} && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libdtcmp"
exit 1
fi
popd