10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-08 07:03:57 +01:00
quantum_package/install/scripts/install_zeromq.sh

28 lines
579 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-11-25 13:57:40 +01:00
rm -f -- "${QP_ROOT}"/lib/libzmq.a "${QP_ROOT}"/lib/libzmq.so "${QP_ROOT}"/lib/libzmq.so.5
2015-11-25 11:49:42 +01:00
cp .libs/libzmq.a "${QP_ROOT}"/lib
cp .libs/libzmq.so "${QP_ROOT}"/lib/libzmq.so.5
cp include/{zmq.h,zmq_utils.h} "${QP_ROOT}"/lib
cd "${QP_ROOT}"/lib
ln -s libzmq.so.5 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