]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Modification la files updated
authormaintenance team <salome-mnt@opencascade.com>
Wed, 11 Jul 2007 14:02:03 +0000 (14:02 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 11 Jul 2007 14:02:03 +0000 (14:02 +0000)
config_files/graphviz-2.2.3.sh
config_files/libxml2-2.6.27.sh

index 16d84e9ece745d407e70e868a33e8dfda5324b49..c380db73ac6b2549b4837b2dcaf71132c2409ac7 100755 (executable)
@@ -115,6 +115,30 @@ for l in `ls *.la`; do
     chmod a+x $l
 done
 
+tmp=""
+if [ -n "${TCLHOME}" ]; then
+    tmp="-L${TCLHOME}/lib"
+fi
+echo $tmp
+TCL_MAJOR_VERSION=`grep -e "TCL_MAJOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MAJOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+TCL_MINOR_VERSION=`grep -e "TCL_MINOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MINOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+TCL_PATCH_LEVEL=`grep -e "TCL_PATCH_LEVEL" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_PATCH_LEVEL=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+
+export TCL_VERSION=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION$TCL_PATCH_LEVEL
+
+lnew="_new"
+cd ${PRODUCT_DIR}
+for l in `find -type f -name *.la`; do
+for ll in $l; do
+f=`grep "tcltk" $ll`
+if test "$f" != ""; then
+sed -e "s%\(.*\)\([[:space:]].*-L.*/tcltk-${TCL_VERSION}/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" $l > $l$lnew
+mv $l$lnew $l
+chmod 755 $l
+fi
+done
+done
+
 print_env
 }
 
index d01ed5476f1090f16dc36186f6b75652efb6cbf0..26365d2274bf9bd06012c9035b31d6b59480cc70 100755 (executable)
@@ -66,6 +66,16 @@ source ${INSTALL_WORK}/$SHRC
 
 check_jb tar xfz ${SOURCE_DIR}/libxml2-2.6.27.tar.gz -C ${INSTALL_ROOT}
 
+cd ${PRODUCT_DIR}/lib
+export libdir=`grep -e "libdir=.*" libxml2.la | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+cd ..
+lnew="_new"
+for l in `find -type f -name *.la`; do
+sed -e "s%${libdir}%${PRODUCT_DIR}/lib%g" $l > $l$lnew
+mv $l$lnew $l
+chmod 755 $l
+done
+
 print_env
 }