From: inv Date: Wed, 6 Jun 2012 13:12:32 +0000 (+0000) Subject: SALOME 6.5.0 preparation: correct la files modification procedure for graphvix (freet... X-Git-Tag: V6_5_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71ce8346f9a8fbd7bb6af645e9bbd29b08c2ca1f;p=tools%2Finstall.git SALOME 6.5.0 preparation: correct la files modification procedure for graphvix (freetype dependencies on RHEL4) --- diff --git a/config_Red_Hat_Enterprise_WS_4_64bit.xml b/config_Red_Hat_Enterprise_WS_4_64bit.xml index d68e4ce..019dac9 100755 --- a/config_Red_Hat_Enterprise_WS_4_64bit.xml +++ b/config_Red_Hat_Enterprise_WS_4_64bit.xml @@ -1158,6 +1158,7 @@ tcltk Swig expat + freetype Graphviz diff --git a/config_files/graphviz.sh b/config_files/graphviz.sh index d3e3f62..85867a3 100755 --- a/config_files/graphviz.sh +++ b/config_files/graphviz.sh @@ -131,12 +131,15 @@ cd $ldir for l in X `find $ldir -name "*.la"`; do if [ "$l" != "X" ] ; then - pydir="" ; tcldir="" + pydir="" ; tcldir="" ; freetypedir="" ; if [ -n "${PYTHONROOT}" ] ; then pydir=${PYTHONROOT} ; fi if [ -n "${TCLHOME}" ] ; then tcldir=${TCLHOME} ; fi + if [ -n "${FREETYPEDIR}" ] ; then freetypedir=${FREETYPEDIR} ; fi + sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" \ -e "s%[[:space:]]\(-L\)\?[^[:space:]]*Python[^[:space:]]*/lib% \1${pydir}/lib%g" \ - -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk[^[:space:]]*/lib% \1${tcldir}/lib%g" $l > $l"_" + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk[^[:space:]]*/lib% \1${tcldir}/lib%g" \ + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*freetype[^[:space:]]*/lib\(/libfreetype\.la\)% \1${freetypedir}/lib\2%g" $l > $l"_" chmod -f --reference=$l $l"_" mv -f $l"_" $l