-
Notifications
You must be signed in to change notification settings - Fork 2
/
ci_build.sh
executable file
·75 lines (71 loc) · 1.51 KB
/
ci_build.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
71
72
73
74
75
#!/usr/bin/env bash
set -x
set -e
# mkdir tmp
# BUILD_PREFIX=$PWD/tmp
CONFIG_OPTS=()
#CONFIG_OPTS+=("CFLAGS=-I${BUILD_PREFIX}/include")
#CONFIG_OPTS+=("CPPFLAGS=-I${BUILD_PREFIX}/include")
#CONFIG_OPTS+=("CXXFLAGS=-I${BUILD_PREFIX}/include")
#CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib")
#CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
#CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
CONFIG_OPTS+=("--with-docs=no")
CONFIG_OPTS+=("--quiet")
CONFIG_OPTS+=("--with-libsodium=no")
# Clone and build dependencies
# jansson
git clone https://github.com/akheron/jansson.git
cd jansson
autoreconf -i
./configure
make
sudo make install
cd ..
# zmq 4.1.2
wget http://download.zeromq.org/zeromq-4.1.2.tar.gz
tar zxvf zeromq-4.1.2.tar.gz
cd zeromq-4.1.2/
if [ -e autogen.sh ]; then
./autogen.sh 2> /dev/null
fi
if [ -e buildconf ]; then
./buildconf 2> /dev/null
fi
./configure "${CONFIG_OPTS[@]}"
make -j4
sudo make install
cd ..
# czmq 3.0.2
wget https://github.com/zeromq/czmq/archive/v3.0.2.tar.gz
tar zxvf v3.0.2.tar.gz
cd czmq-3.0.2/
if [ -e autogen.sh ]; then
./autogen.sh 2> /dev/null
fi
if [ -e buildconf ]; then
./buildconf 2> /dev/null
fi
./configure "${CONFIG_OPTS[@]}"
make -j4
sudo make install
cd ..
## zyre 1.1.0
wget https://github.com/zeromq/zyre/archive/v1.1.0.tar.gz
tar zxvf v1.1.0.tar.gz
cd zyre-1.1.0/
if [ -e autogen.sh ]; then
./autogen.sh 2> /dev/null
fi
if [ -e buildconf ]; then
./buildconf 2> /dev/null
fi
./configure "${CONFIG_OPTS[@]}"
make -j4
sudo make install
cd ..
mkdir build
cd build
cmake ..
make
make check