5 if [ -n "${QWTHOME}" ]; then
6 check_lib_version libqwt.so.4.2.0 ${QWTHOME}/lib
7 if [ "$?" -eq "0" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export QWTHOME=\${INSTALL_ROOT}/${PRODUCT}
19 export LD_LIBRARY_PATH=\${QWTHOME}/lib:\${LD_LIBRARY_PATH}
22 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
23 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
26 # looks for the native product and collects it's environment (used by make_env())
28 qwthome="`find_in_path libqwt.so.4.2.0 ${LD_LIBRARY_PATH}`"
29 if [ -n "${qwthome}" ] ; then
30 qwthome=`cd ${qwthome}/..; pwd`
31 tmp="\${QWTHOME}/lib ${QWTHOME}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
32 ld_library_path=`sort_path ${tmp}`
33 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
34 #$DELIM ${PRODUCT_TYPE} $DELIM
35 export QWTHOME=${qwthome}
36 export LD_LIBRARY_PATH=${ld_library_path}
39 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
46 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
52 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
53 source ${INSTALL_WORK}/$SHRC
55 check_jb tar xfj ${SOURCE_DIR}/qwt-4.2.0.tar.bz2 -C ${INSTALL_WORK}
57 makedir ${PRODUCT_DIR}
59 qmake qwt.pro -o Makefile
62 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
66 check_job ${PRODUCT_DIR}/MAKE.LOG make
67 cp -rf include lib ${PRODUCT_DIR}
69 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
70 rm -rf ${PRODUCT_WORK}
77 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
78 source ${INSTALL_WORK}/$SHRC
80 check_jb tar xfz ${SOURCE_DIR}/qwt-4.2.0.tar.gz -C ${INSTALL_ROOT}
86 export INSTALL_WORK=$2;
88 export INSTALL_ROOT=$4;
89 export PRODUCT_SEQUENCE=$5;
90 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="qwt" ; fi
91 export PRODUCT="qwt-4.2.0"
92 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
93 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}