/
buildme_dependencies_dev
executable file
·100 lines (89 loc) · 2.23 KB
/
buildme_dependencies_dev
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
set -x
OPT="-g -O0"
installdir=`pwd`/install
# if EA is set to true then add configure option
EA=false
build_type=""
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
fi
mkdir -p deps
cd deps
# specify versions of software
# (may need to update some other lines further below)
libcircle=libcircle-0.2.1-rc.1
lwgrp=lwgrp-1.0.2
dtcmp=dtcmp-1.1.0
libarchive=libarchive-3.1.2
# fetch dependencies
if [ ! -f ${libcircle}.tar.gz ] ; then
wget https://github.com/adammoody/libcircle/releases/download/v0.2.1-rc.1/${libcircle}.tar.gz
fi
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.1.0/${dtcmp}.tar.gz
fi
if [ ! -f ${libarchive}.tar.gz ] ; then
wget http://www.libarchive.org/downloads/${libarchive}.tar.gz
fi
# build dependencies
rm -rf ${libcircle}
tar -zxf ${libcircle}.tar.gz
pushd ${libcircle}
export CFLAGS=${OPT}
./configure --build=${build_type} \
--prefix=$installdir \
--disable-silent-rules && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libcircle"
exit 1
fi
popd
rm -rf ${lwgrp}
tar -zxf ${lwgrp}.tar.gz
pushd ${lwgrp}
export CFLAGS=${OPT}
./configure --build=${build_type} \
--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 --build=${build_type} \
--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
rm -rf ${libarchive}
tar zxvf ${libarchive}.tar.gz
pushd ${libarchive}
export CFLAGS=${OPT}
./configure --build=${build_type} \
--prefix=${installdir} && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libarchive"
exit 1
fi
popd