3 ####################################################################################
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
17 if [ -n "${QWTHOME}" ] ; then
18 qwtinc=${QWTHOME}/include/qwt_global.h
19 if [ ! -f $qwtinc ] ; then
20 qwtinc=${QWTHOME}/include/qwt/qwt_global.h
22 if [ -f $qwtinc ] ; then
23 ver=`grep -e "^#define[[:space:]]\+QWT_VERSION_STR" $qwtinc | sed -e 's/^#define[[:space:]]\+QWT_VERSION_STR[[:space:]]*"\(.*\)"/\1/'`
24 if [ "$ver" == "4.2.0" ]; then
34 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
35 #$DELIM ${PRODUCT_TYPE} $DELIM
36 export QWTHOME=\${INSTALL_ROOT}/${PRODUCT}
37 export LD_LIBRARY_PATH=\${QWTHOME}/lib:\${LD_LIBRARY_PATH}
40 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
41 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
46 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
47 #$DELIM ${PRODUCT_TYPE}_src $DELIM
51 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
52 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
56 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
57 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
63 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
64 source ${INSTALL_WORK}/$SHRC
66 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
68 # to generate environment scripts
72 install_source_and_build()
79 makedir ${PRODUCT_DIR}
81 qmake qwt.pro -o Makefile
84 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
88 check_job ${PRODUCT_DIR}/MAKE.LOG make
89 cp -rf include lib ${PRODUCT_DIR}
91 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
94 # remove sources and temporary files after building
95 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
96 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
99 # to generate environment scripts
105 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
106 source ${INSTALL_WORK}/$SHRC
108 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
110 # to generate environment script for sources
115 export INSTALL_WORK=$2;
116 export SOURCE_DIR=$3;
117 export INSTALL_ROOT=$4;
118 export PRODUCT_SEQUENCE=$5;
119 export PRODUCT_TYPE=$6;
120 export INSTALL_PRODUCTS=$7;
123 export PRODUCT="qwt-4.2.0"
124 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
125 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}