From: inv Date: Wed, 9 Nov 2011 07:19:05 +0000 (+0000) Subject: Update for salome 6.4.0 X-Git-Tag: V6_4_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1469c8b2cb6141448201bd744569a102ed80dd74;p=tools%2Finstall.git Update for salome 6.4.0 --- diff --git a/config_Mandriva_2008.0.xml b/config_Mandriva_2008.0.xml index d247e66..fa542fc 100755 --- a/config_Mandriva_2008.0.xml +++ b/config_Mandriva_2008.0.xml @@ -369,10 +369,10 @@ type="prerequisite" description="Tcl/Tk library"> + script="tcltk-8.5.8.sh"/> - + + + + + + + description="Library for supporting different graphical formats PNG, BMP, JPEG, TIFF and others"> + + + + script="cmake-2.8.4.sh"/> - + description="Library for printing an OpenGL output to PostScript (and PDF, and SVG...)."> + version="1.3.5" + disable="false" + installdiskspace="86460,273932,478152" + script="gl2ps-1.3.5.sh"/> + + + + + + + + + @@ -509,15 +563,6 @@ installdiskspace="4296,5644,14388" script="scotch-5.1.11.sh"/> - - - @@ -1061,7 +1106,18 @@ Python tcltk + + freetype + + + cmake + + tbb + gl2ps + freeimage + ftgl + freetype tcltk @@ -1076,6 +1132,9 @@ Hdf + + Hdf + Python tcltk diff --git a/config_files/DISTENE.sh b/config_files/DISTENE.sh index c019507..12a5af4 100755 --- a/config_files/DISTENE.sh +++ b/config_files/DISTENE.sh @@ -106,4 +106,4 @@ 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 +$PROCEDURE diff --git a/config_files/OCCT-6.5.2.sh b/config_files/OCCT-6.5.2.sh index c6310a8..3c352d8 100755 --- a/config_files/OCCT-6.5.2.sh +++ b/config_files/OCCT-6.5.2.sh @@ -141,6 +141,8 @@ else where_xmu_include=/usr/X11R6/include fi +flags="" + flags="$flags --with-xmu-include=$where_xmu_include" if test `uname -m` = "x86_64" ; then @@ -161,9 +163,9 @@ if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi flags="$flags --with-tbb-include=${TBBHOME}/include" if test `uname -m` = "x86_64" ; then - flags="$flags --with-tbb-library=${TBBHOME}/intel64/cc4.1.0_libc2.4_kernel2.6.16.21" + flags="$flags --with-tbb-library=${TBBHOME}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21" else - flags="$flags --with-tbb-library=${TBBHOME}/ia32/cc4.1.0_libc2.4_kernel2.6.16.21" + flags="$flags --with-tbb-library=${TBBHOME}/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21" fi flags="$flags --with-freetype=${FREETYPEDIR}" @@ -175,8 +177,10 @@ flags="$flags --disable-debug --enable-production" export CASROOT=${PRODUCT_SRC_DIR} +./build_configure + echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG" -./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog +check_job ./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog # make echo " +++++++++++ make" diff --git a/config_files/freeimage-3.14.1.sh b/config_files/freeimage-3.14.1.sh new file mode 100755 index 0000000..b2ee2e7 --- /dev/null +++ b/config_files/freeimage-3.14.1.sh @@ -0,0 +1,153 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : freeimage-3.14.1.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. +# +#################################################################################### + +FREEIMAGE_REF_VERSION="3.14.1" + +check_version() +{ +# check existance of freeimage and its version +if [ -n ${FREEIMAGEDIR} ]; then + return 0 +fi +ver_major=`cat ${PRODUCT_SRC_DIR}/FreeImage.rc | grep PRODUCTVERSION | sed -e "s%[A-Z0 ]%%g" | sed -e "s%[,]% %g" | awk '{ print $1}'` +ver_minor=`cat ${PRODUCT_SRC_DIR}/FreeImage.rc | grep PRODUCTVERSION | sed -e "s%[A-Z0 ]%%g" | sed -e "s%[,]% %g" | awk '{ print $2}'` +ver_maint=`cat ${PRODUCT_SRC_DIR}/FreeImage.rc | grep PRODUCTVERSION | sed -e "s%[A-Z0 ]%%g" | sed -e "s%[,]% %g" | awk '{ print $3}'` +ver="$ver_major.$ver_minor.$ver_maint" +if [ "$ver" == "${FREEIMAGE_REF_VERSION}" ] ; then + return 0 +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /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_mandriva2006 == 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 -chmod +w ./Makefile.in -mv Makefile.in Makefile.in.orig -sed -e 's/include src tests tools doc/include src tools doc/g' Makefile.in.orig > Makefile.in -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 - if [ $is_mandriva2006 == 1 ] ; then - echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2 -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" - ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2 -fPIC" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog - else - echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" - ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog - fi - else - echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2' >> ${PRODUCT_DIR}/CONFIGURE.LOG" - ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2" >> ${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} --disable-mesgerr -fi - -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/MAKE.LOG < libmedimport.la.new -mv -f libmedimport.la.new libmedimport.la - -chmod 755 libmedimport.la - -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 ${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 - -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:]].*/med-[0-9]\.[0-9]\.[0-9]/lib/libmed.la[[:space:]]\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libmed.la \3%g" libmedimport.la > libmedimport.la.new -mv -f libmedimport.la.new libmedimport.la - -sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimport.la > libmedimport.la.new -mv -f libmedimport.la.new libmedimport.la - -chmod 755 libmed.la -chmod 755 libmedC.la -chmod 755 libmedimport.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 INST_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-3.0.3" -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/med-3.0.4.sh b/config_files/med-3.0.4.sh new file mode 100755 index 0000000..46faff0 --- /dev/null +++ b/config_files/med-3.0.4.sh @@ -0,0 +1,230 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : med-3.0.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-2008 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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /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_mandriva2006 == 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 +chmod +w ./Makefile.in +mv Makefile.in Makefile.in.orig +sed -e 's/include src tests tools doc/include src tools doc/g' Makefile.in.orig > Makefile.in +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 + if [ $is_mandriva2006 == 1 ] ; then + echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2 -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" + ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2 -fPIC" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog + else + echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" + ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog + fi + else + echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2' >> ${PRODUCT_DIR}/CONFIGURE.LOG" + ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2" >> ${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} --disable-mesgerr +fi + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < libmedimport.la.new +mv -f libmedimport.la.new libmedimport.la + +chmod 755 libmedimport.la + +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 ${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 + +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:]].*/med-[0-9]\.[0-9]\.[0-9]/lib/libmed.la[[:space:]]\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libmed.la \3%g" libmedimport.la > libmedimport.la.new +mv -f libmedimport.la.new libmedimport.la + +sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimport.la > libmedimport.la.new +mv -f libmedimport.la.new libmedimport.la + +chmod 755 libmed.la +chmod 755 libmedC.la +chmod 755 libmedimport.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 INST_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-3.0.4" +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/tbb30_018oss.sh b/config_files/tbb30_018oss.sh new file mode 100755 index 0000000..57b4004 --- /dev/null +++ b/config_files/tbb30_018oss.sh @@ -0,0 +1,101 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : tbb30_018oss.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. +# +#################################################################################### + + +TBBKERNEL='cc4.1.0_libc2.4_kernel2.6.16.21' + +if test `uname -m` = "x86_64" ; then + export TBBMODE="intel64/$TBBKERNEL" +else + export TBBMODE="ia32/$TBBKERNEL" +fi + +check_version(){ +# No way to check version! +return 0 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Common.mk.in -cd ${PRODUCT_SRC_DIR}/tclx8.3.5_SRC/tcl/unix -mv tclxConfig.sh.in tclxConfig.sh.in.orig -sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tclxConfig.sh.in.orig > tclxConfig.sh.in -cd ${PRODUCT_SRC_DIR}/tclx8.3.5_SRC/tk/unix -mv tkxConfig.sh.in tkxConfig.sh.in.orig -sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tkxConfig.sh.in.orig > tkxConfig.sh.in - -cd ${PRODUCT_SRC_DIR}/tclx8.3.5_SRC/unix +#vsr: patch tclx 8.4.0 to make it compiliable on Mandriva 2006.0 +#mv Common.mk.in Common.mk.in.orig +#sed -e 's/@DEFS@/-DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void/g' Common.mk.in.orig > Common.mk.in +#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/tcl/unix +#mv tclxConfig.sh.in tclxConfig.sh.in.orig +#sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tclxConfig.sh.in.orig > tclxConfig.sh.in +#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/tk/unix +#mv tkxConfig.sh.in tkxConfig.sh.in.orig +#sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tkxConfig.sh.in.orig > tkxConfig.sh.in + +#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/unix #VRV - bug in a tclx configure -chmod +w ./configure -echo -e '/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1\ns/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 0\nwq' | ed - configure +#chmod +w ./configure +#echo -e '/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1\ns/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 0\nwq' | ed - configure #INV - bug in a tclx configure -cp configure configure.orig && sed "s/relid'/relid/" configure.orig > configure -chmod 755 ./configure +#cp configure configure.orig && sed "s/relid'/relid/" configure.orig > configure +#chmod 755 ./configure #VRV - bug in a tclx configure +cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC + cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG <