Debian Codegraph @

src/build_zmq_linux.inc

raw
1 ### This file contains steps that pre-build ZeroMQ 4.2.2 source for linux.
2 ### The pre-build ZeroMQ source is only for CRAN and tested under xubuntu.
3 ###
4 ### Wei-Chen Chen 12/23/2017
5
6 rm -rf zeromq-4.2.2
7 tar zxvf zeromq-4.2.2.tar.gz
8 cd zeromq-4.2.2
9
10 ### Remove
11 rm -rf AUTHORS ChangeLog CMakeLists.txt COPYING* foreign INSTALL
12 rm -rf MAINTAINERS NEWS perf tools tests FindSodium.cmake
13 rm -rf doc builds
14 cp ../4.1.0-rc1/zzz.cpp ./src
15 cp ../cppzmq-master/zmq*.hpp ./include
16
17 ### Disable all
18 sed -i "/doc\/Makefile/i \]\)" configure.ac
19 sed -i "689,691 s/^/# /" configure.ac
20 sed -i "s/SUBDIRS = .*/SUBDIRS = /" Makefile.am
21 sed -i "/src\/zmq_draft.h/ s/$/ \\\/" Makefile.am
22 sed -i "/src\/zmq_draft.h/ s/$/\n\tsrc\/zzz.cpp/" Makefile.am
23 sed -i "/include\/zmq_utils.h/ s/$/ \\\/" Makefile.am
24 sed -i "/include\/zmq_utils.h/ s/$/\n\tinclude\/zmq_addon.hpp/" Makefile.am
25 sed -i "/include\/zmq_utils.h/ s/$/\n\tinclude\/zmq.hpp \\\/" Makefile.am
26 sed -i "s/config\/lt\~obsolete.m4/config\/lt_obsolete.m4/" aclocal.m4
27 mv ./config/lt~obsolete.m4 ./config/lt_obsolete.m4
28
29 ### Reconfigure
30 aclocal
31 autoconf
32 automake
33 rm -rf autom4te.cache
34 rm -rf /home/snoweye/work-my/tmp_pbd/pbdZMQ/pbdZMQ/src/zmqsrc
35 cp -R ./ /home/snoweye/work-my/tmp_pbd/pbdZMQ/pbdZMQ/src/zmqsrc
36
37 ### Test
38 CPPFLAGS="-I/home/snoweye/work-my/local/R-devel/lib/R/include/" \
39 ./configure \
40 --prefix=/home/snoweye/work-my/tmp_pbd/pbdZMQ/pbdZMQ/src/zmq \
41 --enable-static=no \
42 --enable-shared=yes \
43 --without-docs \
44 --without-documentation \
45 --disable-pedantic \
46 --disable-eventfd \
47 --disable-perf \
48 --disable-curve-keygen \
49 --disable-curve
50 # make -j 4
51 # make install
52 # make distclean
53 # cd ../