From 3dfccded90a46bf8c54c249274de8a40b35e9d23 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 9 Feb 2006 17:08:09 +0000 Subject: [PATCH] Provide binaries compilation mode for BOOST 1.31.0 --- config_files/BOOST-1.31.0.sh | 68 ++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 3 deletions(-) diff --git a/config_files/BOOST-1.31.0.sh b/config_files/BOOST-1.31.0.sh index a694d27..322359b 100755 --- a/config_files/BOOST-1.31.0.sh +++ b/config_files/BOOST-1.31.0.sh @@ -15,6 +15,7 @@ print_env() cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < /dev/null + if [ "$?" -ne "0" ] ; then + return 1 + fi ver=`egrep 'BOOST_VERSION [0-9]+' ${boostdir}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` if [ $ver -ge 103100 ] ; then cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/BUILD.LOG < signals_common.hpp.orig +mv -f signals_common.hpp.orig signals_common.hpp + +# install +cd ${PRODUCT_WORK} +python_root=`find_in_path python $PATH`; +python_root=`cd ${python_root}/..; pwd` +python_version=`python -c "import sys; print sys.version[:3]"` + +echo "`pwd` -> ./tools/build/jam_src/bin.linuxx86/bjam >> ${PRODUCT_DIR}/INSTALL.LOG" +./tools/build/jam_src/bin.linuxx86/bjam "-sBOOST_ALL_DYN_LINK=1" \ + "-sBUILD=release dynamic multi" \ + --prefix=${PRODUCT_DIR} --builddir=${PRODUCT_WORK} \ + "-sPYTHON_VERSION=$python_version" --with-python-root=${python_root} \ + install >> ${PRODUCT_DIR}/INSTALL.LOG 2> $INSTALL_WORK/errlog + +if [ "$?" -ne "0" ] ; then + cat ${PRODUCT_DIR}/INSTALL.LOG + cat $INSTALL_WORK/errlog >&2 + cat $INSTALL_WORK/errlog >> ${PRODUCT_DIR}/INSTALL.LOG +fi + +# move includes +cd ${PRODUCT_DIR}/include +mv -f boost-1_31/boost boost +rm -rf boost-1_31 + +# create additional links for libraries +cd ${PRODUCT_DIR}/lib +for aLib in date_time filesystem prg_exec_monitor python regex signals test_exec_monitor thread unit_test_framework ; do + if [ -f libboost_${aLib}-gcc-mt-1_31.so ] ; then + ln -s libboost_${aLib}-gcc-mt-1_31.so libboost_${aLib}-mt.so + fi +done + +du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK} print_env } install_binary() { -echo "It impossible to install BOOST 1.31.0 from binaries, try to install it from sources." -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/boost-1.31.0.tar.gz -C ${INSTALL_ROOT} + +print_env } export PROCEDURE=$1; -- 2.39.2