]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Correct la files procedure for Distene MeshGems-1.0
authorinv <inv@opencascade.com>
Tue, 27 Nov 2012 11:04:27 +0000 (11:04 +0000)
committerinv <inv@opencascade.com>
Tue, 27 Nov 2012 11:04:27 +0000 (11:04 +0000)
config_files/common.sh

index b1f725fc9f33a7533edf3a8a2cc97844b0e1e3a9..6f4d55b8e696e4152abbf78e72bf1b280f1ddd7f 100755 (executable)
@@ -755,6 +755,12 @@ expatdir=${EXPAT_ROOT}/lib
 paraviewdir=`printenv PVHOME`/lib
 # qt dir
 qtdir=`printenv QTDIR`/lib
+# distene meshgems dir
+if test `uname -m` = "x86_64" ; then
+    mgemsdir=`printenv MESHGEMSHOME`/lib/Linux_64
+else
+    mgemsdir=`printenv MESHGEMSHOME`/lib/Linux
+fi
 
 for l in X ${la_files}; do
 
@@ -920,6 +926,11 @@ if [ "$l" != "X" ] ; then
        sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" $l
     fi
     
+    # . process DISTENE MeshGems dependencies
+    if [ -n "${mgemsdir}" ] && [ -d "${mgemsdir}" ] ; then
+       sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*MeshGems-[0-9.]\+/Products/lib/Linux\(_64\)\?% \1${mgemsdir}%g" $l
+    fi
+
 fi
 done