3 ####################################################################################
4 # File : libxml2-2.6.27.sh
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 ####################################################################################
16 # No way to check version!
22 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
23 #$DELIM ${PRODUCT_TYPE} $DELIM
24 export LIBXML_DIR=\${INSTALL_ROOT}/${PRODUCT}
25 export PATH=\${LIBXML_DIR}/bin:\${PATH}
26 export LD_LIBRARY_PATH=\${LIBXML_DIR}/lib:\${LD_LIBRARY_PATH}
29 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
30 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
35 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
36 #$DELIM ${PRODUCT_TYPE}_src $DELIM
40 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
41 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
45 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
46 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
52 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
53 source ${INSTALL_WORK}/$SHRC
55 check_jb tar xfz ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
57 # to generate environment scripts
61 install_source_and_build()
69 makedir ${PRODUCT_DIR}
71 check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
72 ./configure --prefix=${PRODUCT_DIR}
74 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
77 check_job ${PRODUCT_DIR}/MAKE.LOG make
78 check_job ${PRODUCT_DIR}/INSTALL.LOG make install
80 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
83 # remove sources and temporary files after building
84 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
85 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
88 # to generate environment scripts
94 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
95 source ${INSTALL_WORK}/$SHRC
97 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
100 export libdir=`grep -e "libdir=.*" libxml2.la | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
103 for l in `find -type f -name *.la`; do
104 sed -e "s%${libdir}%${PRODUCT_DIR}/lib%g" $l > $l$lnew
109 # to generate environment scripts
114 export INSTALL_WORK=$2;
115 export SOURCE_DIR=$3;
116 export INSTALL_ROOT=$4;
117 export PRODUCT_SEQUENCE=$5;
118 export PRODUCT_TYPE=$6;
119 export INSTALL_PRODUCTS=$7;
123 export PRODUCT="libxml2-2.6.27"
124 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
125 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}