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 [ -z "${qwthome}" ] ; then
30 qwthome="`find_in_path libqwt.so.4.2.0 /usr/lib`"
32 if [ -n "${qwthome}" ] ; then
33 tmp="${qwthome} ${qwthome} \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
34 ld_library_path=`sort_path ${tmp}`
35 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
36 #$DELIM ${PRODUCT_TYPE} $DELIM
37 export LD_LIBRARY_PATH=${ld_library_path}
40 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
47 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
53 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
54 source ${INSTALL_WORK}/$SHRC
56 check_jb tar xfj ${SOURCE_DIR}/qwt-4.2.0.tar.bz2 -C ${INSTALL_WORK}
58 makedir ${PRODUCT_DIR}
60 qmake qwt.pro -o Makefile
63 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
67 check_job ${PRODUCT_DIR}/MAKE.LOG make
68 cp -rf include lib ${PRODUCT_DIR}
70 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
71 cd ${PRODUCT_DIR}; rm -rf ${PRODUCT_WORK}
78 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
79 source ${INSTALL_WORK}/$SHRC
81 check_jb tar xfz ${SOURCE_DIR}/qwt-4.2.0.tar.gz -C ${INSTALL_ROOT}
87 export INSTALL_WORK=$2;
89 export INSTALL_ROOT=$4;
90 export PRODUCT_SEQUENCE=$5;
91 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="qwt" ; fi
92 export PRODUCT="qwt-4.2.0"
93 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
94 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}