-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-deps.sh
executable file
·70 lines (62 loc) · 1.89 KB
/
install-deps.sh
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
#
# Builds standalone software that is bundled in this release. This
# currently includes:
# - SSM
# - Recordstore
# - IDB
# - HOSS
#
# These will be installed in ../include, ../bin, and ../lib.
#
# Software in this directory depends on the Aesop compiler. If this is
# not available, run ../install-aesop.sh first.
#
set -e
set -u
PFX=${PWD}
BASE=${PWD}/deps
set +u
CPPFLAGS=${CPPFLAGS}
CFLAGS=${CFLAGS}
LDFLAGS=${LDFLAGS}
PATH=${PATH}
set -u
#############################################################################
# RECORDSTORE
#############################################################################
cd ${BASE}/recordstore
./prepare.sh
./configure --prefix=${PFX} PKG_CONFIG_PATH=${PFX}/lib/pkgconfig
make install
#############################################################################
# SSM
#############################################################################
cd ${BASE}/libssm_ref-0.6.6-r2263
./configure --prefix=${PFX}
make install
cd ${BASE}/libssmptcp_ref-0.6.6-r2264
./configure --prefix=${PFX} LDFLAGS=-L${PFX}/lib CPPFLAGS=-I${PFX}/include
make install
#############################################################################
# IDB
#############################################################################
cd ${BASE}/idb
./prepare.sh
./configure --prefix=${PFX} \
CPPFLAGS="${CPPFLAGS} -I${PFX}/include" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${PFX}/lib" \
PKG_CONFIG_PATH="${PFX}/lib/pkgconfig" \
PATH="${PATH} ${PFX}/bin"
make install
#############################################################################
# HOSS
#############################################################################i
cd ${BASE}/hoss
./prepare.sh
./configure --prefix=${PFX} \
CPPFLAGS="${CPPFLAGS} -I${PFX}/include" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${PFX}/lib" \
PKG_CONFIG_PATH="${PFX}/lib/pkgconfig"
make install