File tree Expand file tree Collapse file tree 3 files changed +27
-14
lines changed
Expand file tree Collapse file tree 3 files changed +27
-14
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ binding.Makefile
1111binding.target.gyp.mk
1212gyp-mac-tool
1313out /
14+ zmq
Original file line number Diff line number Diff line change @@ -30,20 +30,7 @@ before_install:
3030 - npm --version
3131 - test "$(uname)" = "Darwin" || export CXX=g++-4.8 CC=gcc-4.8
3232 - gcc --version
33- - mkdir zmq
34- - export ZMQ_PREFIX=`pwd`/zmq
35- - export CFLAGS=-fPIC
36- - export CXXFLAGS=-fPIC
37- - export PKG_CONFIG_PATH=$ZMQ_PREFIX/lib/pkgconfig
38- - echo $PKG_CONFIG_PATH
39- - wget https://github.com/zeromq/zeromq4-1/archive/$ZMQ.tar.gz -O zeromq-$ZMQ.tar.gz
40- - tar xzvf zeromq-$ZMQ.tar.gz
41- - cd zeromq4-1-$ZMQ
42- - ./autogen.sh
43- - ./configure --prefix=$ZMQ_PREFIX --with-tweetnacl --with-relaxed --enable-static --disable-shared
44- - V=1 make -j
45- - make install
46- - cd ..
33+ - sh build_libzmq.sh
4734
4835install : env PKG_CONFIG_PATH=$ZMQ_PREFIX/lib/pkgconfig npm install
4936
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ test -d zmq || mkdir zmq
5+
6+ export ZMQ=b539733cee0f47f9bf1a70dc7cb7ff20410d3380 # zeromq-4.1.5 prerelease for tweetnacl support
7+ realpath () {
8+ [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } "
9+ }
10+ export ZMQ_PREFIX=" $( dirname $( realpath $0 ) ) /zmq"
11+ export ZMQ_SRC_DIR=zeromq4-1-$ZMQ
12+ cd $ZMQ_PREFIX
13+
14+ export CFLAGS=-fPIC
15+ export CXXFLAGS=-fPIC
16+ export PKG_CONFIG_PATH=$ZMQ_PREFIX /lib/pkgconfig
17+
18+ test -f zeromq-$ZMQ .tar.gz || wget https://github.com/zeromq/zeromq4-1/archive/$ZMQ .tar.gz -O zeromq-$ZMQ .tar.gz
19+ test -d $ZMQ_SRC_DIR || tar xzf zeromq-$ZMQ .tar.gz
20+ cd $ZMQ_SRC_DIR
21+
22+ test -f configure || ./autogen.sh
23+ ./configure --prefix=$ZMQ_PREFIX --with-tweetnacl --with-relaxed --enable-static --disable-shared
24+ V=1 make -j
25+ make install
You can’t perform that action at this time.
0 commit comments