10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-24 13:23:41 +01:00
quantum_package/install/scripts/install_zeromq.sh

31 lines
706 B
Bash
Raw Normal View History

2015-11-25 11:49:42 +01:00
#!/bin/bash -x
TARGET=zeromq
function _install()
{
2015-11-25 18:59:49 +01:00
cd ..
QP_ROOT=$PWD
cd -
2015-11-25 11:49:42 +01:00
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":./
set -e
set -u
2015-11-25 13:57:40 +01:00
ORIG=$(pwd)
2015-11-25 11:49:42 +01:00
cd "${BUILD}"
./configure --without-libsodium || exit 1
make -j 8 || exit 1
2015-12-04 20:02:35 +01:00
rm -f -- "${QP_ROOT}"/lib/libzmq.a "${QP_ROOT}"/lib/libzmq.so "${QP_ROOT}"/lib/libzmq.so.?
2016-07-13 18:12:25 +02:00
cp .libs/libzmq.a "${QP_ROOT}"/lib
cp .libs/libzmq.so "${QP_ROOT}"/lib/libzmq.so.5
# cp src/.libs/libzmq.a "${QP_ROOT}"/lib
# cp src/.libs/libzmq.so "${QP_ROOT}"/lib/libzmq.so.4
2015-11-25 11:49:42 +01:00
cp include/{zmq.h,zmq_utils.h} "${QP_ROOT}"/lib
cd "${QP_ROOT}"/lib
2016-07-13 18:12:25 +02:00
ln -s libzmq.so.5 libzmq.so
# ln -s libzmq.so.4 libzmq.so
2015-11-25 13:57:40 +01:00
cd ${ORIG}
2015-11-25 11:49:42 +01:00
return 0
}
source scripts/build.sh