]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update for Salome 4.1.3 V4_1_3 V4_1_3rc1
authormaintenance team <salome-mnt@opencascade.com>
Tue, 3 Jun 2008 07:27:24 +0000 (07:27 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Tue, 3 Jun 2008 07:27:24 +0000 (07:27 +0000)
42 files changed:
config_Debian_3.1.xml
config_Debian_4.0.xml
config_Mandrake_10.1.xml
config_Mandriva_2006.0.xml
config_Mandriva_2006.0_64.xml
config_Mandriva_2007.0.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64.xml
config_RedHatEnterprise_4.xml
config_RedHat_8.0.xml
config_RedHat_9.xml
config_Scientific_4.2.xml
config_Scientific_4.3.xml
config_files/BLSURFPLUGIN.sh
config_files/CALCULATOR.sh
config_files/CAS-6.2.1sp3.sh [new file with mode: 0755]
config_files/COMPONENT.sh
config_files/DOCUMENTATION.sh
config_files/FILTER.sh
config_files/GEOM.sh
config_files/GHS3DPLUGIN.sh
config_files/GHS3DPRLPLUGIN.sh
config_files/GUI.sh
config_files/HELLO.sh
config_files/HXX2SALOME.sh
config_files/HXX2SALOMEDOC.sh
config_files/HexoticPLUGIN.sh
config_files/KERNEL.sh
config_files/LIGHT.sh
config_files/MED.sh
config_files/MULTIPR.sh
config_files/NETGENPLUGIN.sh
config_files/PYCALCULATOR.sh
config_files/PYHELLO.sh
config_files/RANDOMIZER.sh
config_files/SAMPLES.sh
config_files/SIERPINSKY.sh
config_files/SMESH.sh
config_files/SUPERV.sh
config_files/VISU.sh
config_files/YACS.sh
config_files/med-2.3.4.sh [new file with mode: 0755]

index d2c4715b57c9939cbda9c1d4e7246eb7e2269389..d0d4be7e20aa116c26317eb5ca0cbd7ffefccc3b 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Debian3.1"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="241631,268394,1222169"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Debian3.1"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="19544,6445,63656"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index f63ba1449885b947c5ef2dc8ae0af5d2cb04b041..041bdc51915e6b06d551a19991f89fcf2febcaa1 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Debian4.0"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="241631,268394,1222169"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Debian4.0"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="19544,6445,63656"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index f642b7619311e8efff4e242afd50580a7393eea1..296bd0106d61378191dd78450576324b8e620dab 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandrake10.1"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="239478,268394,1220016"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandrake10.1"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="7721,6445,26773"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index cb6a658e01190a0124da2ae6bb8f7935f8fccb9b..57be09fef10d77b94038e778afd8ac2f08ed69cb 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandriva2006.0"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="238909,389774,1282214"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva2006.0"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index e1639f7e79d3a51fbd67a34d69fd1a47a5c1e115..717b111f7f137069115d3bcee619f76520949421 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandriva2006.0_64"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="238909,389774,1282214"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva2006.0_64"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index aa6ca62b6056b4683f8e328ef3fe51e47587c225..ba43b4f3c6c2caaa031e6919f522a56381fe371e 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandriva2007.0"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="237087,268394,1217625"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva2007.0"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="8050,6445,27102"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 1366c64877b9678e1334d1a0a07761c5852a3910..0e4ccccd843a21adfabfae21931f4f7d5ed75c9a 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandriva2008.0"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="238909,389774,1282214"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva2008.0"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index ec2be9c995c63d2eb86f02681ff0cf908907f6aa..dfdceaa098885aaabdac6a2cba01cd77cd4c0690 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Mandriva2008.0_64"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="238909,389774,1282214"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva2008.0_64"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 6ddadd1d0761c015978fa1f02311c402a1c15925..9479685cd238802759afb951425ff99236807455 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="RedHatEnterprise4"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="217388,268394,1197926"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="RedHatEnterprise4"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index bef5c99299e6b119c8d839f9aed7a72dd738d673..0b206c5aa3b07c39ece3e2f3eb3c9558386f8cac 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="RedHat8.0"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="207372,268394,1051492"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="RedHat8.0"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="18205,6445,59973"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index f09950254cafe9544dfe16846eca133c81781c0e..9a7939341d35f784a9c0f466b1e76c139f9a34e5 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="RedHat9"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="207372,268394,1051492"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="RedHat9"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="18205,6445,59973"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 4cb0d2e6174714e2c5b5a5e509bd2dc6718b710b..32782afc599d46711a7b8c4561e8807ddeaf9c00 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Scientific4.2"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="217388,268394,1197926"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Scientific4.2"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 94b5b413ae62e9bc2d448cb77b249400ae880e7a..3c9dc0bec0e87ad15df273c17feda39b31495169 100755 (executable)
             type="prerequisite"
              description="Open CASCADE version 6.2sp3">
       <installation os="Scientific4.3"
-                    version="6.2.1sp2
+                    version="6.2.1sp3
                    disable="false"
                    installdiskspace="217388,268394,1197926"
-                   script="CAS-6.2.1sp2.sh"/>
+                   script="CAS-6.2.1sp3.sh"/>
     </product>
     <product name="Qwt" 
             type="prerequisite"
             type="prerequisite"
             description="MED format interface library">
       <installation os="Scientific4.3"
-                    version="2.3.3
+                    version="2.3.4
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.3.sh"/>
+                   script="med-2.3.4.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 6ba9b9d6ca26c3841e013fb3d8d6eb19ef72fb61..a124d48e2d8ffef3bb0b462075411ff580a0298b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${BLSURFPLUGIN_ROOT_DIR}" ]; then
index 1b2dffcd14170e2f7ed724c9c519d0b8b8266e47..0f861e8dd690b32c328dc4c0f045194d0702b8f4 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
diff --git a/config_files/CAS-6.2.1sp3.sh b/config_files/CAS-6.2.1sp3.sh
new file mode 100755 (executable)
index 0000000..56efca3
--- /dev/null
@@ -0,0 +1,291 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : CAS-6.2.1sp3.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version()
+{
+if [ -z "$CASROOT" ]; then
+    return 1
+fi
+check_lib_version ${CASROOT}/inc/Standard_Version.hxx
+if [ "$?" -ne "0" ] ; then
+    return 1
+fi
+ver_major=`grep "#define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver_minor=`grep "#define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver_maint=`grep "#define OCC_VERSION_MAINTENANCE" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver="$ver_major.$ver_minor.$ver_maint"
+if [ "$ver" == "6.2" ] ; then
+    return 0
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CASROOT=\${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${CASROOT}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${CASROOT}/lib:\${CASROOT}/lin/lib:\${LD_LIBRARY_PATH}
+# Variable for Foundation Classes : 
+export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
+export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat 
+# Variable for DataExchange : 
+export CSF_SHMessage=\${CASROOT}/src/SHMessage
+export CSF_XSMessage=\${CASROOT}/src/XSMessage 
+# Variable for Font : 
+export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT 
+export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures 
+# Activation of OCCT Kernel multithreading :
+export MMGT_REENTRANT=1
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled()
+{
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+cd ${PRODUCT_SRC_DIR}
+
+# configure
+
+echo " +++++++++++ configure"
+
+is_mandriva2007=0
+is_mandriva2008=0
+is_debian40=0
+
+if [ -e /etc/issue ] ; then
+  grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
+fi
+
+if [ -e /etc/issue ] ; then
+  grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2008=1 ; fi
+fi
+
+if [ -e /etc/issue ] ; then
+  grep -e "Debian GNU/Linux 4.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_debian40=1 ; fi
+fi
+
+if [ $is_mandriva2007 == 1 ] || [ $is_mandriva2008 == 1 ] || [ $is_debian40 == 1 ] ; then
+where_xmu_include=/usr/include/X11
+else
+where_xmu_include=/usr/X11R6/include/X11
+fi
+
+flags="$flags --with-xmu-include=$where_xmu_include"
+
+if test `uname -m` = "x86_64" ; then
+    flags="$flags --with-xmu-library=/usr/lib64"
+else
+    flags="$flags --with-xmu-library=/usr/X11R6/lib"
+fi
+
+    flags="$flags LDFLAGS=-lpthread"
+glincdir="`where_gl_includes`"
+if [ $? -eq 0 ] ; then flags="$flags --with-gl-include=$glincdir"; fi
+gllibdir="`where_gl_libs`"
+if [ $? -eq 0 ] ; then flags="$flags --with-gl-library=$gllibdir"; fi
+tcldir="`where_tcl`"
+if [ $? -eq 0 ] ; then flags="$flags --with-tcl=$tcldir"; fi
+tkdir="`where_tk`"
+if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi
+dpsdir="`where_dps`"
+if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi
+flags="$flags --disable-wrappers --disable-wok --disable-debug --enable-production"
+
+export CASROOT=${PRODUCT_SRC_DIR}
+
+echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} $flags  >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+
+# make
+echo " +++++++++++ make"
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make -j4 install-strip
+
+# fix libGL dependencies
+echo " +++++++++++ fix libGL dependencies"
+
+cd ${PRODUCT_DIR}/lib
+
+gllibdir="`where_gl_libs`"
+if [ "$gllibdir" != "" ] ; then
+    if [ -f ${gllibdir}/libGL.la ] ; then
+       libdir=`grep "libdir=" ${gllibdir}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%"`
+       if [ "`ls $libdir/libGL.so* 2>/dev/null`" ] ; then
+           str_to_replace="${gllibdir}/libGL.la"
+       fi
+    fi
+    if [ "$str_to_replace" == "" ] ; then
+       str_to_replace="-L${gllibdir} -lGL"
+    fi
+
+    sed -e "s%-lGL%%g"                                                         \
+       -e "s%[^[:space:]]*libGL.la[[:space:]]%%g"                             \
+       -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \
+       libTKOpenGl.la > libTKOpenGl.la.new
+    mv -f libTKOpenGl.la.new libTKOpenGl.la
+fi
+
+#du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+is_mandriva2008=0
+
+if [ -e /etc/issue ] ; then
+  grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2008=1 ; fi
+fi
+
+# modify *.la files
+ldir=${PRODUCT_DIR}/lib
+if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/Linux/lib; fi
+if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/lin/lib; fi
+cd $ldir
+# 1. set libdir correctly, correct dependencies, set tcldir correctly
+tcldir=`printenv TCLHOME`
+for l in X `find . -name "*.la"`; do
+    if [ "$l" != "X" ] ; then
+       l=`basename $l`
+       libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+       sed -e "s%${libdir}%${ldir}%g" $l > _$l
+       mv -f _$l $l
+       if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then
+           sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}/lib%g" $l > _$l
+           mv -f _$l $l
+       fi
+       chmod a+x $l
+    fi
+done
+
+# 2. fix libGL dependencies
+
+#if test "$is_mandriva2008" = "1" && test `uname -m` = "x86_64" ; then
+
+#echo " +++++++++++ libGL dependencies are not updated"
+
+#else
+
+#cd $ldir
+#gllibdir="`where_gl_libs`"
+#if [ "$gllibdir" != "" ] ; then
+#    if [ -f ${gllibdir}/libGL.la ] ; then
+#      libdir=`grep "libdir=" ${gllibdir}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%"`
+#      if [ "`ls $libdir/libGL.so* 2>/dev/null`" ] ; then
+#          str_to_replace="${gllibdir}/libGL.la"
+#      fi
+#    fi
+#    if [ "$str_to_replace" == "" ] ; then
+#      str_to_replace="-L${gllibdir} -lGL"
+#    fi
+
+    if test `uname -m` = "x86_64" ; then
+    libGLpath=/usr/lib64/libGL.la
+    else
+    libGLpath=/usr/lib/libGL.la
+    fi
+       sed -e "s%$libGLpath%""%g" \
+       libTKOpenGl.la > libTKOpenGl.la.new
+    mv -f libTKOpenGl.la.new libTKOpenGl.la
+
+#    sed -e "s%-lGL%%g"                                                         \
+#      -e "s%[^[:space:]]*libGL.la[[:space:]]%%g"                             \
+#      -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \
+#      libTKOpenGl.la > libTKOpenGl.la.new
+#    mv -f libTKOpenGl.la.new libTKOpenGl.la
+#fi
+#fi
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="CAS-6.2.1sp3"
+export PRODUCT_DIR=${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE 
index 638b5f7be6e2f60bbcec25d2067c983152a8b331..e0a0569675b26cca7a93530126d4fddd4d9f3c4e 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${COMPONENT_ROOT_DIR}" ]; then
index fcdbf64c48d7e68434ba7b9eef671b7dd907929c..aa1bb914b033bce40d9a64faeaaec7e13b84b37a 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 # There is no possibility to check version number
index bccd3560ade34419833a047ae2e20eda7f6a9ff5..3878f44e7b034783e1886ddcfa8c6d710ca4b958 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${FILTER_ROOT_DIR}" ]; then
index c0c291cd94a0cf56f157b0d434a499af51028c0c..5fc11b5b6b460d868cc2531f4231e34b1cb620aa 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${GEOM_ROOT_DIR}" ]; then
index 65be4be5a311e7e149f255b20f8ae0212e660774..36459514f3eff84b02b6f477ba986d22f88cf499 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
index 626aaf5b12afcc7151ee81e6e0d48a59c54935e7..f735a63bc3a6e4b63bd347f7f5fd9e0cfbb18de1 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${GHS3DPRLPLUGIN_ROOT_DIR}" ]; then
index 772e7470ad98c69ef6eb06029eda5d020bb1a209..419a7b59be40c9abbff156f65d2f88dd6e35fe51 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${GUI_ROOT_DIR}" ]; then
index e91dab1794ec8c151f6d02c7a8d01da24b54597f..dd283fa394187e64c2e46186c8c8d59b05829d57 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${HELLO_ROOT_DIR}" ]; then
index c47657449280f3f522a0a30f11c5a708bec8e4f1..a6fa3ded70808fc9028fe713754271ac5f0dc264 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 # No way to check version!
index 0136316fca5fb85aa5ec935783e928b99c4fe177..bff2329d2b0904686a0ba8ddf54760a0b77c3bb0 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 # No way to check version!
index de7691188b7e58c109e7e4f055c6a5a9eed6df59..fad8937849e801e02138a79421c7823b29a20df8 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${HexoticPLUGIN_ROOT_DIR}" ]; then
index 86b554f993f78a917c3f13f221ac2f246cf8d8b8..e79099af87625db62cd053cab473f3f963d6f8ec 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${KERNEL_ROOT_DIR}" ]; then
index ec9bbdf7e93e31cf6331ce3f8a714754e0412272..50ef5714e9faf373e314e0541ff3e81b55ca8d36 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${LIGHT_ROOT_DIR}" ]; then
index 2ecb361d927727c5a406f9412e0d2082143e0d61..9258f4cb4cca4e9f02ab9ff4043720121c16119c 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${MED_ROOT_DIR}" ]; then
index 7d6a3ff2e67931809bd2c89944d773fb14458e3e..7ca3945de9135634b911f7208099573015c09b8d 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${MULTIPR_ROOT_DIR}" ]; then
index 3356584ae2f82148726b7b5e17f19908c213bb37..dd40ffd5babd9456f78ce6853073245e1990d2b4 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
index 8fbca87a510c1f053109e236b21a2dea0f6cf0bf..cc17d2f433e8cf3a32f9bab82afaa758072a547f 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
index dc9e2b06c912746b233ee89638715bfde8d8ec90..5c8dd08350c8e32975a317c9865219cc22dbd2c3 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${PYHELLO_ROOT_DIR}" ]; then
index 9a899bb772fb37fc2982146d049a7cc7c1395b10..50d0e86ec046a51e75a15fa32c18fa2dd109daa5 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
index 4cba131e71dd7ded6806bb48561017efe549e1a7..2f7169c3ada80d233a91c7b5ed54474fb56a7bfe 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 # There is no possibility to check version number
index 4768c74f8d9d221f060d21738b591acf3c1521c3..1d12efee919c4db96fa04b99932adba3896de484 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
index 670b1370f039682f9600e9053424726dc99feba8..7f8ec4912e80409089b5c0b99183a24f53dbbc46 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${SMESH_ROOT_DIR}" ]; then
index daf3a65e0ec9a21072caea3b4b8fbf727f95caf2..1e431b78e8500ef5c6af42d6c1e0d6978286d386 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${SUPERV_ROOT_DIR=}" ]; then
index 248fdc10dfb3d3ba77cdbb50a9ffc40df172f12f..6e3523560b636a14e141a3810793f049f6092096 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${VISU_ROOT_DIR}" ]; then
index 8276e91cf54d7ee3b540137150653b3a553097e8..f1fbcda270d4b8f9abb68b66b31575a15c6bbcb9 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="4.1.2"
+VERSION="4.1.3"
 
 check_version(){
 if [ -n "${YACS_ROOT_DIR}" ]; then
diff --git a/config_files/med-2.3.4.sh b/config_files/med-2.3.4.sh
new file mode 100755 (executable)
index 0000000..87570e4
--- /dev/null
@@ -0,0 +1,212 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : med-2.3.4.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version()
+{
+if [ -z "$MED2HOME" ]; then
+   #echo "MED2HOME doesn't set"
+   return 1
+fi
+check_lib_version libmed.so.1.1.2 ${MED2HOME}/lib
+if [ "$?" -eq "0" ]; then
+   #echo "The product ${PRODUCT} has been already installed on yours system"
+   return 0
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED2HOME=\${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${MED2HOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${MED2HOME}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+cd ${PRODUCT_SRC_DIR}
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
+is_mandriva2006=0
+is_mandriva2007=0
+is_mandriva2008=0
+is_debian40=0
+is_fedora4=0
+is_fedora6=0
+
+if [ -e /etc/issue ] ; then
+  grep -e "Mandriva Linux release 2006.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2006=1 ; fi
+  grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
+  grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2008=1 ; fi
+  grep -e "Debian GNU/Linux 4.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_debian40=1 ; fi
+  grep -e "Fedora Core release 4" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_fedora4=1 ; fi
+  grep -e "Fedora Core release 6" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_fedora6=1 ; fi
+fi
+if [ $is_mandriva2007 == 1 ] || [ $is_mandriva2008 == 1 ] || [ $is_fedora6 == 1 ] ; then
+chmod +w ./Makefile.am
+mv Makefile.am Makefile.am.orig
+sed -e 's/ include src tests tools doc / include src tools doc /g' Makefile.am.orig > Makefile.am
+fi
+if [ $is_mandriva2006 == 1 ] || [ $is_mandriva2007 == 1 ]  || [ $is_mandriva2008 == 1 ] || [ $is_fedora4 == 1 ] || [ $is_fedora6 == 1 ] || [ $is_debian40 == 1 ] ; then
+    if test `uname -m` = "x86_64" ; then
+    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+    else
+    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+    fi
+    if [ "$?" -ne "0" ] ; then
+      cat ${PRODUCT_DIR}/CONFIGURE.LOG
+      cat ${PRODUCT_SRC_DIR}/errlog >&2
+      cat ${PRODUCT_SRC_DIR}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
+      exit 1
+    fi
+else
+    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+fi
+
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+### modify libmed.la libmedC.la files to correct direct path to hdf5 library
+### also modify libmed.la and libmedC.la files to correct direct path to med libraries
+### no need to do this for sources installation because 'make install' does it!
+cd ${PRODUCT_DIR}/lib
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmed.la > libmed.la.new
+mv -f libmed.la.new libmed.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedC.la > libmedC.la.new
+mv -f libmedC.la.new libmedC.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
+tmp=""
+if [ -n "${HDF5HOME}" ]; then
+    tmp="-L${HDF5HOME}/lib"
+fi
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
+mv -f libmed.la.new libmed.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
+mv -f libmedC.la.new libmedC.la
+
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
+chmod 755 libmed.la
+chmod 755 libmedC.la
+chmod 755 libmedimport.la
+chmod 755 libmedimportcxx.la
+
+### modify scripts to correct installation path
+cd ${PRODUCT_DIR}/bin
+sed -e "s%set cmd \".*/bin/mdump\"%set cmd \"${PRODUCT_DIR}/bin/mdump\"%g" xmdump > _xmdump
+mv _xmdump xmdump
+chmod a+x xmdump
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+shift
+SINGLE_DIR=$9
+export PRODUCT="med-2.3.4"
+export PRODUCT_DIR=${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE