X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2Fmetis-4.0.sh;h=8c5dccb3359578d797364c060db4e722556b3df9;hb=260bf6b42efe9e30501c4e6e99b013da3fe34f77;hp=a38638258f3eee9417f604e550fcea1433c2c15a;hpb=b2036a2d0e2c0ea62a25791c479629b0a6e20c37;p=tools%2Finstall.git diff --git a/config_files/metis-4.0.sh b/config_files/metis-4.0.sh index a386382..8c5dccb 100755 --- a/config_files/metis-4.0.sh +++ b/config_files/metis-4.0.sh @@ -6,7 +6,7 @@ # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) # Project : SALOME # Module : Installation Wizard -# Copyright : 2002-2007 CEA +# Copyright : 2002-2008 CEA # # This script is the part of the SALOME installation procedure. # @@ -61,13 +61,32 @@ 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 -# install binary -install_binary +# to generate environment scripts +try_preinstalled } install_binary()