From: akl Date: Wed, 27 Feb 2008 14:09:10 +0000 (+0000) Subject: Process graphviz dependencies in *.la files of SALOME modules. X-Git-Tag: V_4_1_1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c34c065fbba4ef2b9023e6a5e76a2960ffb95a3b;p=tools%2Finstall.git Process graphviz dependencies in *.la files of SALOME modules. --- diff --git a/config_files/common.sh b/config_files/common.sh index 5694d98..c8d9a8a 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -807,13 +807,13 @@ if [ "$l" != "X" ] ; then sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_" mv -f $l"_" $l - # 3. process scotch dependencies + # 17. process scotch dependencies scotchdir=`printenv SCOTCHDIR`/bin if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_" mv -f $l"_" $l - # 4. process libGL.la dependencies + # 18. process libGL.la dependencies if test `uname -m` = "x86_64" ; then libGLpath=/usr/lib64/libGL.la else @@ -822,6 +822,13 @@ if [ "$l" != "X" ] ; then sed -e "s%$libGLpath%""%g" $l > $l"_" mv -f $l"_" $l + # 19. process graphviz dependencies + graphvizdir=`printenv GRAPHVIZHOME` + if [ -n "${graphvizdir}" ] && [ -d "${graphvizdir}" ] ; then + sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz-[0-9]\+\.[0-9]\+\.[0-9]\+% \1${graphvizdir}%g" $l > $l"_" + chmod -f --reference=$l $l"_" + mv -f $l"_" $l + fi fi done