5 if [ -n "${SIPDIR}" ]; then
6 sip_ver=`${SIPDIR}/sip -V | awk '{print $1}'`
7 if [ "$sip_ver" == "3.3.2" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export SIPDIR=\${INSTALL_ROOT}/${PRODUCT}
19 export PATH=\${SIPDIR}:\${PATH}
20 export PYTHONPATH=\${SIPDIR}:\${PYTHONPATH}
21 export LD_LIBRARY_PATH=\${SIPDIR}:\${LD_LIBRARY_PATH}
24 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
25 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
28 # looks for the native product and collects it's environment (used by make_env())
30 sipdir="`find_in_path sip ${PATH}`"
31 if [ -z "${sipdir}" ] ; then
32 sipdir="`find_in_path sip /usr/bin`"
34 if [ -n "${sipdir}" ] ; then
35 python_version="`python -c 'import sys; print sys.version[:3]'`"
36 sippython="`find_in_path libsip.so.9.1.0 ${PYTHONPATH}`"
37 if [ -z "${sippython}" ] ; then
38 sippython="`find_in_path libsip.so.9.1.0 /usr/lib/python${python_version}/site-packages`"
40 if [ -n "${sippython}" ]; then
41 tmp="${sipdir} ${sipdir} \${PATH} ${PATH}";
42 path=`sort_path ${tmp}`
43 tmp="${sipdir} ${sipdir} \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
44 ld_library_path=`sort_path ${tmp}`
45 tmp="${sippython} ${sippython} \${PYTHONPATH} ${PYTHONPATH}";
46 pythonpath=`sort_path ${tmp}`
47 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
48 #$DELIM ${PRODUCT_TYPE} $DELIM
50 export PYTHONPATH=${pythonpath}
51 export LD_LIBRARY_PATH=${ld_library_path}
54 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
62 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
68 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
69 source ${INSTALL_WORK}/$SHRC
71 makedir ${PRODUCT_DIR}
73 check_jb tar xfz ${SOURCE_DIR}/sip-3.3.2.tar.gz -C ${INSTALL_WORK}
76 sed -e 's%platCopy,platPyIncDir%platCopy,platBinDir%g' build.py > temp_build.py
77 mv -f temp_build.py build.py
78 check_job ${PRODUCT_DIR}/BUILDINSTALL.LOG \
79 python build.py -b ${PRODUCT_DIR} -d ${PRODUCT_DIR} -l qt-mt install
81 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
84 check_job ${PRODUCT_DIR}/MAKE.LOG make
85 check_job ${PRODUCT_DIR}/INSTALL.LOG make install
87 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
88 cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
94 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
95 source ${INSTALL_WORK}/$SHRC
97 check_jb tar xfz ${SOURCE_DIR}/sip-3.3.2.tar.gz -C ${INSTALL_ROOT}
103 export INSTALL_WORK=$2;
104 export SOURCE_DIR=$3;
105 export INSTALL_ROOT=$4;
106 export PRODUCT_SEQUENCE=$5;
107 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="sip" ; fi
108 export PRODUCT="sip-3.3.2"
109 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
110 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}