#
####################################################################################
+SWIG_VERSION=1.3.40
+
check_version(){
if [ -n "`which swig 2>/dev/null`" ]; then
ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'`
- if [ "$ver" == "1.3.40" ] ; then
+ if [ "$ver" == "${SWIG_VERSION}" ] ; then
return 0;
fi
fi
#$DELIM ${PRODUCT_TYPE} $DELIM
export SWIG_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
export PATH=\${SWIG_ROOT}/bin:\${PATH}
+export SWIG_LIB=\${SWIG_ROOT}/share/swig/${SWIG_VERSION}
##
EOF
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
install_binary()
{
-echo "It impossible to install ${PRODUCT} from binaries! So this one will be build from sources."
-install_source_and_build
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment script for sources
+try_preinstalled
}
export PROCEDURE=$1;
shift
REMOVE_SRC_TMP=$8;
test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="SWIG-1.3.40"
+export PRODUCT="SWIG-${SWIG_VERSION}"
export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC