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 check_lib_version libqwt.so.0.4.1 ${QWTHOME}/lib
19 if [ "$?" -eq "0" ]; then
28 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
29 #$DELIM ${PRODUCT_TYPE} $DELIM
30 export QWTHOME=\${INSTALL_ROOT}/${PRODUCT}
31 export LD_LIBRARY_PATH=\${QWTHOME}/lib:\${LD_LIBRARY_PATH}
34 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
35 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
40 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
41 #$DELIM ${PRODUCT_TYPE}_src $DELIM
45 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
50 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
51 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
57 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
58 source ${INSTALL_WORK}/$SHRC
60 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
62 # to generate environment scripts
66 install_source_and_build()
73 makedir ${PRODUCT_DIR}
75 qmake qwt.pro -o Makefile
78 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
82 check_job ${PRODUCT_DIR}/MAKE.LOG make
83 cp -rf include lib ${PRODUCT_DIR}
85 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
88 # remove sources and temporary files after building
89 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
90 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
93 # to generate environment scripts
99 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
100 source ${INSTALL_WORK}/$SHRC
102 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
104 # to generate environment script for sources
109 export INSTALL_WORK=$2;
110 export SOURCE_DIR=$3;
111 export INSTALL_ROOT=$4;
112 export PRODUCT_SEQUENCE=$5;
113 export PRODUCT_TYPE=$6;
114 export INSTALL_PRODUCTS=$7;
117 export PRODUCT="qwt-0.4.1"
118 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
119 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}