]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
graphviz: fix a bug with *.la files
authorvsr <vsr@opencascade.com>
Tue, 25 Oct 2005 12:43:53 +0000 (12:43 +0000)
committervsr <vsr@opencascade.com>
Tue, 25 Oct 2005 12:43:53 +0000 (12:43 +0000)
config_files/graphviz-1.9.sh

index 993dfe30a56c439b267363081cc27d150914d940..9c5c8d49a2c7cc80577d2a9a2006d2b88bda0970 100755 (executable)
@@ -79,6 +79,15 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
 check_jb tar xfz ${SOURCE_DIR}/graphviz-1.9.tar.gz -C ${INSTALL_ROOT}
+cd ${PRODUCT_DIR}/lib/graphviz
+for l in `ls *.la`; do
+    libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+    sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" $l > _$l
+    libdir=`dirname $libdir`
+    sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" _$l > $l
+    rm -f _$l
+    chmod a+x $l
+done
 
 print_env
 }