]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Process graphviz dependencies in *.la files of SALOME modules.
authorakl <akl@opencascade.com>
Wed, 27 Feb 2008 14:09:10 +0000 (14:09 +0000)
committerakl <akl@opencascade.com>
Wed, 27 Feb 2008 14:09:10 +0000 (14:09 +0000)
config_files/common.sh

index 5694d9892581e6c32917f6fabd2643cce5b9803e..c8d9a8a88ddc30b18033a9bd9ec565d6a4b4b124 100755 (executable)
@@ -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