# configure
cd ${PRODUCT_SRC_DIR}
-check_job ${PRODUCT_DIR}/BUILD.LOG ./bootstrap.sh --with-toolset=gcc --with-python=`which python` --prefix=${PRODUCT_DIR}
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./bootstrap.sh --with-toolset=gcc --with-python=`which python` --prefix=${PRODUCT_DIR}
# make & install
cd ${PRODUCT_SRC_DIR}
+PRODUCT_BUILD_DIR=${PRODUCT_DIR}_build
+mkdir -p ${PRODUCT_BUILD_DIR} >& /dev/null
+
./b2 --prefix=${PRODUCT_DIR} toolset=gcc variant=release runtime-link=shared threading=multi --build-dir=${PRODUCT_BUILD_DIR} install >& ${PRODUCT_DIR}/INSTALL.LOG
if [ "$?" -ne "0" ] ; then
# remove sources and temporary files after building
if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${PRODUCT_BUILD_DIR} && rm -fr ${PRODUCT_BUILD_DIR}
fi
# to generate environment scripts
#
# swig version
#
-SWIG_VERSION=2.0.9
+SWIG_VERSION=2.0.8
check_version(){
if [ -n "`which swig 2>/dev/null`" ]; then
#$DELIM ${PRODUCT_TYPE} $DELIM
export SWIG_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
export SWIG_ROOT_DIR=\${SWIG_ROOT}
-export PATH=\${SWIG_ROOT}/bin:\${PATH}
export SWIG_LIB=\${SWIG_ROOT}/share/swig/${SWIG_VERSION}
+export PATH=\${SWIG_ROOT}/bin:\${PATH}
##
EOF
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})