]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: scotch 5.1.11 -> 5.1.12, for metis add support of metis...
authorinv <inv@opencascade.com>
Tue, 3 Apr 2012 11:59:04 +0000 (11:59 +0000)
committerinv <inv@opencascade.com>
Tue, 3 Apr 2012 11:59:04 +0000 (11:59 +0000)
15 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/metis-4.0.sh [deleted file]
config_files/metis.sh [new file with mode: 0755]
config_files/scotch-5.1.11.sh [deleted file]
config_files/scotch.sh [new file with mode: 0755]

index ecfc5e6420aa5f587a32679a4db4162449893179..25a3debaee760c1fc55f5d63e6356b166201bc9d 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="CentOS 5.5 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 1b926d5162f24e1c8fb0dead253e65a54e75ce21..e10f37635e25338cb9650fe188fc4563dcd4f90d 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Debian 4.0"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 340c3334f48cccee876effe8aaa800830d40119b..9fde85662406474bb3179386ccd1c45b02683ad9 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Debian 4.0 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index b99dba8013e54ab85d2c2862dfa406417e088cda..f9c3067fb2db603b4bcb5e3d6fcde5a4fbecae9d 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Debian 5.0 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 2dde834bc17cf6f46057b68876ea81d0d8de7022..288308010792ff34eb471fe597b24ba1fa1ae69c 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Debian 6.0 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 580e9b1f9bd69dbb0331c93dfc7d1a9c3d43a9a1..a0f7514a3f3d8b084d3546e5e102edd28521d64a 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Mandriva 2008.0"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index f8a663eb3d1745677d5eaace741b51ebd4478cb8..a7cd5b13ece6c3b8475180352ce220df7376739b 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Mandriva 2008.0 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 81a830ec1a9fd4f29b43c5c31f0d5459b70d59de..83d2120565962ba177e64a0519135ae883e0a485 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Mandriva 2010.0"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 0fe944df72cbe267dc25d2321c311e8ceaf91d03..733ac9deb95c628b2ec7636ada4f99566a06deb4 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Mandriva 2010.0 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 7f20f4bd8a545296f70ffc9a3aa78f02ed95a92e..0c04e0efda975683f35a8709e95ff5305ca8ebe7 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Red Hat Enterprise WS 4 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
index 6a33736e5f1b43f344862120af63b62b3dcfdeaa..af81ec7529f74b7b0616e2d337f3c8faa5213312 100755 (executable)
                     version="4.0" 
                    disable="false"
                    installdiskspace="2856,2184,7064"
-                   script="metis-4.0.sh"/>
+                   script="metis.sh"/>
     </product>
     <product name="Scotch"
             type="prerequisite"
             description="Software package and library devoted to static mapping, partitioning and sparce matrix block ordering og graph and meshes">
       <installation os="Scientific SL 5.1 64bit"
-                    version="5.1.11
+                    version="5.1.12b
                    disable="false"
                    installdiskspace="4296,5644,14388"
-                   script="scotch-5.1.11.sh"/>
+                   script="scotch.sh"/>
     </product>
     <product name="ParaView"
             type="prerequisite"
diff --git a/config_files/metis-4.0.sh b/config_files/metis-4.0.sh
deleted file mode 100755 (executable)
index 8c5dccb..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : metis-4.0.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-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-# No way to check version!
-return 0
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM 
-export METISDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_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 ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INST_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}
-
-# patch for 64bit platforms
-if test `uname -m` = "x86_64" ; then
-  sed -e "s%COPTIONS[[:space:]]*=[[:space:]]*\(.*\)%COPTIONS = -fPIC \1%g" Makefile.in > Makefile.in.new
-  mv Makefile.in.new Makefile.in
-fi
-
-# make
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-
-# install
-cp -rf Doc Graphs libmetis.a pmetis kmetis oemetis onmetis partdmesh partnmesh mesh2dual mesh2nodal graphchk ${PRODUCT_DIR}
-( mkdir -p ${PRODUCT_DIR}/Lib && cp Lib/*.h ${PRODUCT_DIR}/Lib )
-
-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 ${INST_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 ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-SRC_DIR=$8;
-REMOVE_SRC_TMP=$9;
-shift
-BIN_DIR=$9;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="metis-4.0"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE
diff --git a/config_files/metis.sh b/config_files/metis.sh
new file mode 100755 (executable)
index 0000000..4b0a302
--- /dev/null
@@ -0,0 +1,142 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : metis.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-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+#
+# metis version
+#
+METIS_VERSION=4.0
+# 5.0.2
+METIS_MAJOR_VERSION=`echo ${METIS_VERSION} | awk -F. '{print $1}'`
+
+check_version(){
+# No way to check version!
+return 0
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM 
+export METISDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_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 ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_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}
+
+if [ "${METIS_MAJOR_VERSION}" == "5" ] ; then
+    # for version 5
+
+    # make config
+    check_job ${PRODUCT_DIR}/MAKE_CONFIG.LOG make config shared=1 prefix=${PRODUCT_DIR}
+
+    # make
+    check_job ${PRODUCT_DIR}/MAKE.LOG make
+
+    # make install
+    check_job ${PRODUCT_DIR}/MAKE_INSTALL.LOG make install
+else
+    # for version 4
+
+    # patch for 64bit platforms
+    if test `uname -m` = "x86_64" ; then
+        sed -i "s%COPTIONS[[:space:]]*=[[:space:]]*\(.*\)%COPTIONS = -fPIC \1%g" Makefile.in
+    fi
+
+    # make
+    check_job ${PRODUCT_DIR}/MAKE.LOG make
+
+    # install
+    cp -rf Doc Graphs libmetis.a pmetis kmetis oemetis onmetis partdmesh partnmesh mesh2dual mesh2nodal graphchk ${PRODUCT_DIR}
+    ( mkdir -p ${PRODUCT_DIR}/Lib && cp Lib/*.h ${PRODUCT_DIR}/Lib )
+fi
+
+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 ${INST_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 ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_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="metis-${METIS_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE
diff --git a/config_files/scotch-5.1.11.sh b/config_files/scotch-5.1.11.sh
deleted file mode 100755 (executable)
index a3b9c7f..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : scotch-5.1.11.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-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-# No way to check version!
-return 0
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM 
-export SCOTCHDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_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 ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INST_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}
-
-cd src
-
-# create Makefile for Linux 64bit platforms
-if test `uname -m` = "x86_64" ; then
-  sed -e "s%CFLAGS\([[:space:]]*\)=\([[:space:]]*\)\(.*\)%CFLAGS\1=\2-fPIC \3%g" \
-         Make.inc/Makefile.inc.i686_pc_linux2.prof > Make.inc/Makefile.inc.x86_64_pc_linux2.prof
-  ln -sf Make.inc/Makefile.inc.x86_64_pc_linux2.prof Makefile.inc
-else
-  ln -sf Make.inc/Makefile.inc.i686_pc_linux2.prof Makefile.inc
-fi
-
-sed -e "s%gmake%make%" Makefile.inc > _Makefile.inc
-mv -f _Makefile.inc Makefile.inc
-chmod a+x Makefile.inc
-
-chmod +w ./Makefile
-sed -i 's/\/usr\/local/\$\(PRODUCT_DIR\)/g' ./Makefile
-
-# make
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-
-# make install
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install
-
-# install
-#cd ${PRODUCT_SRC_DIR}
-#cp -rf bin doc grf tgt ${PRODUCT_DIR}
-
-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 ${INST_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 ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-SRC_DIR=$8;
-REMOVE_SRC_TMP=$9;
-shift
-BIN_DIR=$9;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="scotch-5.1.11"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE
diff --git a/config_files/scotch.sh b/config_files/scotch.sh
new file mode 100755 (executable)
index 0000000..31be940
--- /dev/null
@@ -0,0 +1,130 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : scotch.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-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+#
+# scotch version
+#
+SCOTCH_VERSION=5.1.12
+
+check_version(){
+# No way to check version!
+return 0
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM 
+export SCOTCHDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_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 ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_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}
+
+cd src
+
+if test `uname -m` = "x86_64" ; then
+    # create Makefile for Linux 64bit platforms
+    sed -e "s%CFLAGS\([[:space:]]*\)=\([[:space:]]*\)\(.*\)%CFLAGS\1=\2-fPIC -pg \3%g" \
+        Make.inc/Makefile.inc.x86-64_pc_linux2 > Make.inc/Makefile.inc.x86-64_pc_linux2.prof
+    ln -sf Make.inc/Makefile.inc.x86-64_pc_linux2.prof Makefile.inc
+else
+    ln -sf Make.inc/Makefile.inc.i686_pc_linux2.prof Makefile.inc
+fi
+
+# make
+check_job ${PRODUCT_DIR}/MAKE.LOG make prefix=${PRODUCT_DIR}
+
+# make install
+check_job ${PRODUCT_DIR}/INSTALL.LOG make prefix=${PRODUCT_DIR} 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 ${INST_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 ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_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="scotch-${SCOTCH_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE