]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update some important files after binary installation
authorvsr <vsr@opencascade.com>
Fri, 19 Apr 2013 07:12:28 +0000 (07:12 +0000)
committervsr <vsr@opencascade.com>
Fri, 19 Apr 2013 07:12:28 +0000 (07:12 +0000)
config_files/ParaView.sh
config_files/hdf5.sh
config_files/med.sh
config_files/numpy.sh

index 618be2906b191063a9304c72758a9333c5ba940e..7a5253be2966309fd8f20714907c4717b085cffb 100755 (executable)
@@ -323,21 +323,35 @@ fi
 cd ${PRODUCT_DIR}
 
 for f in `find . -name "*.cmake"` ; do
-sed -e "s%/[^\";]*/bin/moc%$QTDIR/bin/moc%g"     \
-    -e "s%/[^\";]*/bin/uic%$QTDIR/bin/uic%g"     \
-    -e "s%/[^\";]*/bin/rcc%$QTDIR/bin/rcc%g"     \
-    -e "s%/[^\";]*/bin/qmake%$QTDIR/bin/qmake%g" \
-    -e "s%/[^\";]*/lib/libQt%$QTDIR/lib/libQt%g" \
-    -e "s%/[^\";]*/lib64/libQt%$QTDIR/lib64/libQt%g" \
+sed -e "s%/[^\";]*/bin/moc%${QTDIR}/bin/moc%g"     \
+    -e "s%/[^\";]*/bin/uic%${QTDIR}/bin/uic%g"     \
+    -e "s%/[^\";]*/bin/rcc%${QTDIR}/bin/rcc%g"     \
+    -e "s%/[^\";]*/bin/qmake%${QTDIR}/bin/qmake%g" \
+    -e "s%/[^\";]*/lib/libQt%${QTDIR}/lib/libQt%g" \
+    -e "s%/[^\";]*/lib64/libQt%${QTDIR}/lib64/libQt%g" \
     -e "s%/[^\";]*/lib/python\([0-9].[0-9]\)/config/libpython%$PYTHONHOME/lib/python\1/config/libpython%g" \
     -e "s%/[^\";]*/include/python\([0-9].[0-9]\)%$PYTHONHOME/include/python\1%g" \
     -e "s%/[^\";]*/tcltk[^/]*/include%${TCLHOME}/include%g" \
     -e "s%/[^\";]*/tcltk[^/]*/lib%${TCLHOME}/lib%g" \
+    -e "s%/[^\";]*/hdf5-[0-9]\+\.[0-9]\+\.[0-9]\+/include%${HDF5HOME}/include%g" \
     -e "s%/[^\";]*/lib/libhdf5.so%${HDF5HOME}/lib/libhdf5.so%g" \
     -e "s%/[^\";]*/lib64/libhdf5.so%${HDF5HOME}/lib64/libhdf5.so%g" \
+    -e "s%/[^\";]*/lib/libhdf5_hl.so%${HDF5HOME}/lib/libhdf5_hl.so%g" \
+    -e "s%/[^\";]*/lib64/libhdf5_hl.so%${HDF5HOME}/lib64/libhdf5_hl.so%g" \
+    -e "s%/[^\";]*/gl2ps-[0-9]\+\.[0-9]\+\.[0-9]\+/include%${GL2PSHOME}/include%g" \
+    -e "s%/[^\";]*/lib/libgl2ps.so%${GL2PSHOME}/lib/libgl2ps.so%g" \
+    -e "s%/[^\";]*/lib64/libgl2ps.so%${GL2PSHOME}/lib64/libgl2ps.so%g" \
+    -e "s%\(IMPORTED_LOCATION_RELEASE.*\"\).*/lib/paraview-${PVLIBVERSION}/\([^/]\+\"\)%\1${PRODUCT_DIR}/lib/paraview-${PVLIBVERSION}/\2%g" \
+    -e "s%\(IMPORTED_LOCATION_RELEASE.* \"\).*/bin/\([^/]\+\"\)%\1${PRODUCT_DIR}/bin/\2%g" \
     ${f} > ${f}.new
     mv -f ${f}.new ${f}
 done
+#sed -i "s%set (VTK_CONFIG_FILE \".*/VTKConfig.cmake\")%set (VTK_CONFIG_FILE \"${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}/VTKConfig.cmake\")%g" ${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}/ParaViewConfig.cmake
+#sed -i "s%set (PARAVIEW_CONFIG_TARGETS_FILE \".*/ParaViewTargets.cmake\")%set (PARAVIEW_CONFIG_TARGETS_FILE \"${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}/ParaViewTargets.cmake\")%g" ${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}/ParaViewConfig.cmake
+#sed -i "s%set (ParaView_CMAKE_DIR \".*\")%set (ParaView_CMAKE_DIR \"${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}\")%g" ${PRODUCT_DIR}/lib/cmake/paraview-${PVLIBVERSION}/ParaViewConfig.cmake
+
+sed -i "s%set[[:space:]]*(QtTesting_INCLUDE_DIRS \".*\")%set (QtTesting_INCLUDE_DIRS \"${PRODUCT_DIR}/include/paraview-${PVLIBVERSION}\")%g" ${PRODUCT_DIR}/lib/CMake/QtTestingConfig.cmake
+sed -i "s%set[[:space:]]*(QtTesting_LIBRARY_DIR \".*\")%set (QtTesting_LIBRARY_DIR \"${PRODUCT_DIR}/lib/paraview-${PVLIBVERSION}\")%g" ${PRODUCT_DIR}/lib/CMake/QtTestingConfig.cmake
 
 # to generate environment script for sources
 try_preinstalled
index 8394c808dd0cb303dc25b1ccf52d4e86c9995a08..46eb3b1b2687fc0816534f9cfbd3438d30bd5c18 100755 (executable)
@@ -138,6 +138,10 @@ if [ -e libhdf5_hl.la ] ; then
     sed -i "s%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libhdf5.la\3%g;s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libhdf5_hl.la
 fi
 
+# modify settings file
+cd ${PRODUCT_DIR}/lib
+sed -i "s%Installation point: .*%Installation point: ${PRODUCT_DIR}%g" libhdf5.settings
+
 # to generate environment script for sources
 try_preinstalled
 }
index 02f8b200e4bc5b69f7ffc709c31d85a601c1d206..40d6b3ac6869cac17626521f3db61ffa0583cbf8 100755 (executable)
@@ -140,13 +140,23 @@ for fl in libmed.la libmedC.la libmedimport.la ; do
 done
 
 ### modify scripts to correct installation path
-### this pb should be fixed in med 3.0.5 or newer version
-cd ${PRODUCT_DIR}/bin
-for fl in xmdump xmdump3 ; do
-    if [ -f ${fl} ] ; then
-        sed -i "s%set cmd \".*/bin/mdump\"%set cmd \"${PRODUCT_DIR}/bin/mdump\"%g;s%#\!.*wish -f%#\!/usr/bin/env wish%g" ${fl}
-    fi
-done
+### this pb is fixed in med 3.0.6
+#cd ${PRODUCT_DIR}/bin
+#for fl in xmdump xmdump3 ; do
+#    if [ -f ${fl} ] ; then
+#        sed -i "s%set cmd \".*/bin/mdump\"%set cmd \"${PRODUCT_DIR}/bin/mdump\"%g;s%#\!.*wish -f%#\!/usr/bin/env wish%g" ${fl}
+#    fi
+#done
+
+# modify settings file
+cd ${PRODUCT_DIR}/lib
+sed -i "s%Installation point: .*%Installation point: ${PRODUCT_DIR}%g" libmed3.settings
+sed -i "s%-I[^[:space:]]*/hdf5-[0-9]\+\.[0-9]\+\.[0-9]\+/include%-I${HDF5HOME}/include%g" libmed3.settings
+sed -i "s%-L[^[:space:]]*/hdf5-[0-9]\+\.[0-9]\+\.[0-9]\+/lib%-L${HDF5HOME}/lib%g" libmed3.settings
+sed -i "s%[^[:space:]]*/hdf5-[0-9]\+\.[0-9]\+\.[0-9]\+/bin%${HDF5HOME}/bin%g" libmed3.settings
+sed -i "s%Tk/wish used for xmdump :.*%Tk/wish used for xmdump : ${TCLHOME}/bin/wish%g" libmed3.settings
+
+# 
 
 # to generate environment script for sources
 try_preinstalled
index b2340dbbf274d8d3814be0efb30df48396498d89..18693e908baf4a0b7898e02f899025b7855abdc6 100755 (executable)
@@ -114,6 +114,15 @@ test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
 
 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
 
+# modify pkgconfig
+cd ${PRODUCT_DIR}/lib/pkgconfig
+for l in X `find . -name "*.pc"`; do
+    if [ "${l}" != "X" ] ; then
+        sed -i "s%prefix=.*%prefix=${PRODUCT_DIR}%g;s%prefix=.*%libdir=${PRODUCT_DIR}/lib%g" ${l}
+       sed -i "s%Libs: -L[^[:space:]]*/lib%Libs: -L${PRODUCT_DIR}/lib%g" ${l}
+    fi
+done
+
 # to generate environment script for sources
 try_preinstalled
 }