2015-12-18 22:25:32 +01:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
TARGET=zmq
|
|
|
|
function _install()
|
|
|
|
{
|
2016-10-03 00:34:42 +02:00
|
|
|
LIBVERSION=5
|
2015-12-18 22:53:27 +01:00
|
|
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
2015-12-18 22:25:32 +01:00
|
|
|
set +u
|
|
|
|
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":./
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
cd "${BUILD}"
|
|
|
|
./configure --without-libsodium
|
|
|
|
make -j 8
|
|
|
|
cd -
|
2015-12-18 22:53:27 +01:00
|
|
|
rm -f -- "${QMCCHEM_PATH}"/lib/libzmq.{a,so,so.$LIBVERSION}
|
2016-10-03 00:34:42 +02:00
|
|
|
cp "${BUILD}"/.libs/libzmq.a "${QMCCHEM_PATH}"/lib/
|
|
|
|
cp "${BUILD}"/.libs/libzmq.so "${QMCCHEM_PATH}"/lib/libzmq.so.$LIBVERSION
|
|
|
|
# cp "${BUILD}"/src/.libs/libzmq.a "${QMCCHEM_PATH}"/lib/
|
|
|
|
# cp "${BUILD}"/src/.libs/libzmq.so "${QMCCHEM_PATH}"/lib/libzmq.so.$LIBVERSION
|
2015-12-18 22:53:27 +01:00
|
|
|
cp "${BUILD}"/include/{zmq,zmq_utils}.h "${QMCCHEM_PATH}"/lib/
|
|
|
|
cd "${QMCCHEM_PATH}"/lib
|
2015-12-18 22:25:32 +01:00
|
|
|
ln libzmq.so.$LIBVERSION libzmq.so || cp libzmq.so.$LIBVERSION libzmq.so
|
|
|
|
cd -
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
source scripts/build.sh
|
|
|
|
|