From: maintenance team Date: Tue, 13 Oct 2009 08:11:02 +0000 (+0000) Subject: Update for Salome 5.1.3 X-Git-Tag: V5_1_3~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e55bd39457194d17de735e1476f68e0d4cbdb541;p=tools%2Finstall.git Update for Salome 5.1.3 --- diff --git a/config_files/BOOST-1.34.1.sh b/config_files/BOOST-1.34.1.sh deleted file mode 100755 index 233144a..0000000 --- a/config_files/BOOST-1.34.1.sh +++ /dev/null @@ -1,178 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : BOOST-1.34.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. -# -#################################################################################### - -check_version(){ -if [ -n "${BOOSTDIR}" ] && [ -f ${BOOSTDIR}/include/boost/version.hpp ] ; then - ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/include/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` - if [ "$ver" = "103200" ]; then - return 0 - fi -fi -return 1; -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Jambase - -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/BUILD.LOG < ./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG" -./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG 2> $INSTALL_WORK/errlog - -if [ "$?" -ne "0" ] ; then - cat ${PRODUCT_DIR}/INSTALL.LOG - cat $INSTALL_WORK/errlog >&2 - cat $INSTALL_WORK/errlog >> ${PRODUCT_DIR}/INSTALL.LOG -fi - -# move includes -cd ${PRODUCT_DIR}/include -mv -f boost-1_34_1/boost boost -rm -rf boost-1_34_1 - -# create additional links for libraries -cd ${PRODUCT_DIR}/lib - -#gcc_root="`where_gcc $GCC_VERSION`" -#gcc_root=`cd ${gcc_root}/..; pwd` -#maj_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` -#min_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` -maj_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` -min_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` -gcc_ver=$maj_ver$min_ver - -for aLib in date_time filesystem prg_exec_monitor python regex signals test_exec_monitor thread unit_test_framework ; do - if [ -f libboost_${aLib}-gcc${gcc_ver}-mt-1_34_1.so ] ; then - ln -sf libboost_${aLib}-gcc${gcc_ver}-mt-1_34_1.so libboost_${aLib}-mt.so - fi -done - -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} - -# 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="boost-1.34.1" -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/BOOST-1.37.0.sh b/config_files/BOOST-1.37.0.sh new file mode 100755 index 0000000..4945874 --- /dev/null +++ b/config_files/BOOST-1.37.0.sh @@ -0,0 +1,196 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : BOOST-1.37.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. +# +#################################################################################### + +# +# boost version +# +BOOST_VERSION=1.37.0 +BOOST_XVERSION=`echo ${BOOST_VERSION} | awk -F. '{printf("%d",$1*100000+$2*100+$3)}'` +BOOST_VVERSION=`echo ${BOOST_VERSION} | awk -F. '{printf("%d_%d",$1,$2)}'` + +check_version(){ +if [ -n "${BOOSTDIR}" ] && [ -f ${BOOSTDIR}/include/boost/version.hpp ] ; then + ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/include/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` + if [ "$ver" = "${BOOST_XVERSION}" ]; then + return 0 + fi +fi +return 1; +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Jambase + +#Adding 2.6 version of python +chmod +w ./build.jam +mv build.jam build.jam.orig +sed -e 's/2\.5 2\.4/2\.6 2\.5 2\.4/g' build.jam.orig > build.jam + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/BUILD.LOG < ./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG" +./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG 2> $INSTALL_WORK/errlog + +if [ "$?" -ne "0" ] ; then + cat ${PRODUCT_DIR}/INSTALL.LOG + cat $INSTALL_WORK/errlog >&2 + cat $INSTALL_WORK/errlog >> ${PRODUCT_DIR}/INSTALL.LOG +fi + +# move includes +cd ${PRODUCT_DIR}/include +mv -f boost-1_37/boost boost +rm -rf boost-1_37 + +# create additional links for libraries +cd ${PRODUCT_DIR}/lib + +#gcc_root="`where_gcc $GCC_VERSION`" +#gcc_root=`cd ${gcc_root}/..; pwd` +#maj_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` +#min_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` +maj_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` +min_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` +gcc_ver=$maj_ver$min_ver + +listlib=`find . -name "libboost_*-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so" -exec basename {} ";" | sed -e "s%libboost_\(.*\)-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so%\1%g"` +###"date_time filesystem prg_exec_monitor python regex signals test_exec_monitor thread unit_test_framework" + +for aLib in XXX $listlib ; do + if [ "$aLib" == "XXX" ] ; then continue ; fi + aLibLink=libboost_${aLib}-mt.so + aLib=libboost_${aLib}-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so + if [ -f ${aLib} ] && [ ! -e ${aLibLink} ] ; then + echo "ln -sf ${aLib} ${aLibLink}" + fi +done + +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} + +# 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="boost-${BOOST_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/BOOST-1.40.0.sh b/config_files/BOOST-1.40.0.sh new file mode 100755 index 0000000..3afdf41 --- /dev/null +++ b/config_files/BOOST-1.40.0.sh @@ -0,0 +1,197 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : BOOST-1.40.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. +# +#################################################################################### + +# +# boost version +# +BOOST_VERSION=1.40.0 +BOOST_XVERSION=`echo ${BOOST_VERSION} | awk -F. '{printf("%d",$1*100000+$2*100+$3)}'` +BOOST_VVERSION=`echo ${BOOST_VERSION} | awk -F. '{printf("%d_%d",$1,$2)}'` + +check_version(){ +if [ -n "${BOOSTDIR}" ] && [ -f ${BOOSTDIR}/include/boost/version.hpp ] ; then + ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/include/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` + if [ "$ver" = "${BOOST_XVERSION}" ]; then + return 0 + fi +fi +return 1; +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Jambase + +#Adding 2.6 version of python +chmod +w ./build.jam +mv build.jam build.jam.orig +sed -e 's/2\.5 2\.4/2\.6 2\.5 2\.4/g' build.jam.orig > build.jam + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/BUILD.LOG < ./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG" +./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG 2> $INSTALL_WORK/errlog + +if [ "$?" -ne "0" ] ; then + cat ${PRODUCT_DIR}/INSTALL.LOG + cat $INSTALL_WORK/errlog >&2 + cat $INSTALL_WORK/errlog >> ${PRODUCT_DIR}/INSTALL.LOG +fi + +# move includes +#cd ${PRODUCT_DIR}/include +#mv -f boost-${BOOST_VVERSION}/boost boost +#rm -rf boost-${BOOST_VVERSION} + + +# create additional links for libraries +cd ${PRODUCT_DIR}/lib + +#gcc_root="`where_gcc $GCC_VERSION`" +#gcc_root=`cd ${gcc_root}/..; pwd` +#maj_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` +#min_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` +maj_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` +min_ver=`gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` +gcc_ver=$maj_ver$min_ver + +listlib=`find . -name "libboost_*-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so" -exec basename {} ";" | sed -e "s%libboost_\(.*\)-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so%\1%g"` +###"date_time filesystem prg_exec_monitor python regex signals test_exec_monitor thread unit_test_framework" + +for aLib in XXX $listlib ; do + if [ "$aLib" == "XXX" ] ; then continue ; fi + aLibLink=libboost_${aLib}-mt.so + aLib=libboost_${aLib}-gcc${gcc_ver}-mt-${BOOST_VVERSION}.so + if [ -f ${aLib} ] && [ ! -e ${aLibLink} ] ; then + echo "ln -sf ${aLib} ${aLibLink}" + fi +done + +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} + +# 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="boost-${BOOST_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/CAS-6.3sp6-patch.sh b/config_files/CAS-6.3sp6-patch.sh deleted file mode 100755 index 652645e..0000000 --- a/config_files/CAS-6.3sp6-patch.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : CAS-6.3sp6.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 "$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.3" ] ; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE-PATH.LOG < ${PRODUCT_DIR}/size.log -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${INST_ROOT}/${PRODUCT}-patch_SRC && rm -fr ${INST_ROOT}/${PRODUCT}-patch_SRC - 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 - -check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}-patch.tar.gz -C ${PRODUCT_DIR} - -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="CAS-6.3sp6" -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/CAS-6.3sp6.sh b/config_files/CAS-6.3sp6.sh deleted file mode 100755 index 6b112c8..0000000 --- a/config_files/CAS-6.3sp6.sh +++ /dev/null @@ -1,283 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : CAS-6.3sp6.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 "$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.3" ] ; then - 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_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 </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\b%%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 -echo "${INSTALL_PRODUCTS}" | grep -q "PatchForOpenCascade" -if [ $? -eq 1 ] && [ ${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} - -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 - - sed -e "s%-lGL\b%%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 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="CAS-6.3sp6" -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/CAS-6.3sp7-patch.sh b/config_files/CAS-6.3sp7-patch.sh new file mode 100755 index 0000000..94b2c6c --- /dev/null +++ b/config_files/CAS-6.3sp7-patch.sh @@ -0,0 +1,134 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : CAS-6.3sp7.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 "$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.3" ] ; then + return 0 +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE-PATH.LOG < ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; + +# remove sources and temporary files after building +if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then + test -d ${INST_ROOT}/${PRODUCT}-patch_SRC && rm -fr ${INST_ROOT}/${PRODUCT}-patch_SRC + 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 + +check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}-patch.tar.gz -C ${PRODUCT_DIR} + +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="CAS-6.3sp7" +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/CAS-6.3sp7.sh b/config_files/CAS-6.3sp7.sh new file mode 100755 index 0000000..b55edba --- /dev/null +++ b/config_files/CAS-6.3sp7.sh @@ -0,0 +1,283 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : CAS-6.3sp7.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 "$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.3" ] ; then + 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_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 </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\b%%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 +echo "${INSTALL_PRODUCTS}" | grep -q "PatchForOpenCascade" +if [ $? -eq 1 ] && [ ${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} + +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 + + sed -e "s%-lGL\b%%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 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="CAS-6.3sp7" +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/Numeric-24.2.sh b/config_files/Numeric-24.2.sh deleted file mode 100755 index 610bbd2..0000000 --- a/config_files/Numeric-24.2.sh +++ /dev/null @@ -1,166 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : Numeric-24.2.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() -{ -ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null` -if [ "$ver" == "24.2" ]; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _setup.py - mv _setup.py setup.py - fi - if [ "$f77blas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('f77blas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$cblas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('cblas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$atlas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('atlas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$g2c_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('g2c'\)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - sed -e "s%^use_dotblas = 1%use_dotblas = 0%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'blas_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'f2c_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'zlapack_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'dlapack_lite.c')\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - chmod a+x setup.py -fi - -check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${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 ${SOURCE_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="Numeric-24.2" -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/PyQt-4.4.3.sh b/config_files/PyQt-4.4.3.sh deleted file mode 100755 index 6ab5b23..0000000 --- a/config_files/PyQt-4.4.3.sh +++ /dev/null @@ -1,162 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : PyQt-4.4.3.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 [ -n "${PYQTDIR}" ] && [ -f ${PYQTDIR}/pyqtconfig.py ] ; then - ver=`cd ${PYQTDIR} && python -c "from pyqtconfig import Configuration; c=Configuration();print c.__getattr__('pyqt_version_str')" 2>/dev/null` - if [ -n "$ver" ] ; then - maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - let ver=$maj_ver*10000+$min_ver*100+$rel_ver - if [ $ver -eq 040403 ] ; then - return 0 - fi - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'` - qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'` - sed -e "s%\('pyqt_bin_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}',%g" \ - -e "s%\('pyqt_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}',%g" \ - -e "s%\('pyqt_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \ - -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ - -e "s%\('qt_data_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ - -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \ - -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ - -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ - -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ - -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ - -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \ - -e "s%\('pyqt_config_args':[[:space:]]*\).*%\1'${PYQT_CONFIGURE_OPTIONS}',%g" \ - pyqtconfig.py > pyqtconfig.py.1 - mv -f pyqtconfig.py.1 pyqtconfig.py - cd ${PRODUCT_DIR}/bin - sed -e "s%exec.*pyuic.py%exec ${PYTHONROOT}/bin/python ${PRODUCT_DIR}/PyQt4/uic/pyuic.py%g" pyuic4 > pyuic4.1 - mv -f pyuic4.1 pyuic4 && chmod a+x pyuic4 -fi - -# 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; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="PyQt-4.4.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/PyQt-4.5.4.sh b/config_files/PyQt-4.5.4.sh new file mode 100755 index 0000000..4b8a34f --- /dev/null +++ b/config_files/PyQt-4.5.4.sh @@ -0,0 +1,162 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : PyQt-4.5.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 [ -n "${PYQTDIR}" ] && [ -f ${PYQTDIR}/pyqtconfig.py ] ; then + ver=`cd ${PYQTDIR} && python -c "from pyqtconfig import Configuration; c=Configuration();print c.__getattr__('pyqt_version_str')" 2>/dev/null` + if [ -n "$ver" ] ; then + maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + let ver=$maj_ver*10000+$min_ver*100+$rel_ver + if [ $ver -eq 040403 ] ; then + return 0 + fi + fi +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'` + qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'` + sed -e "s%\('pyqt_bin_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}',%g" \ + -e "s%\('pyqt_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}',%g" \ + -e "s%\('pyqt_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \ + -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ + -e "s%\('qt_data_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ + -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \ + -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ + -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ + -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ + -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ + -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \ + -e "s%\('pyqt_config_args':[[:space:]]*\).*%\1'${PYQT_CONFIGURE_OPTIONS}',%g" \ + pyqtconfig.py > pyqtconfig.py.1 + mv -f pyqtconfig.py.1 pyqtconfig.py + cd ${PRODUCT_DIR}/bin + sed -e "s%exec.*pyuic.py%exec ${PYTHONROOT}/bin/python ${PRODUCT_DIR}/PyQt4/uic/pyuic.py%g" pyuic4 > pyuic4.1 + mv -f pyuic4.1 pyuic4 && chmod a+x pyuic4 +fi + +# 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; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="PyQt-4.5.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/Python-2.4.4.sh b/config_files/Python-2.4.4.sh deleted file mode 100755 index 7534b74..0000000 --- a/config_files/Python-2.4.4.sh +++ /dev/null @@ -1,186 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : Python-2.4.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 "$PYTHONHOME" ]; then - return 1 -fi -isPython=`which python 2>/dev/null` -if [ -n "$isPython" ]; then - # version number is calculated as: *10000+*100+ - # for Python 2.4.4 it is equal to 20404 - ver=`python -V 2>&1` - ver=`echo $ver | awk '{print $2}' | awk -F. '{v1=0;v2=0;v3=0;if(NF>0)v1=$1;if(NF>1)v2=$2;if(NF>2)v3=$3;print v1*10000+v2*100+v3}'` - if [ $ver -eq 20404 ] ; then - return 0 - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <& /dev/null ; \ -# autoconf >& /dev/null ; \ -# aclocal >& /dev/null ; \ -# autoconf >& /dev/null ) -# fi -#fi - -# 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} - -check_job ${PRODUCT_DIR}/CONFIGURE.LOG \ - ./configure --prefix=${PRODUCT_DIR} $PYTHON_CONFIGURE_OPTIONS - -# vsr: force linking to libstdc++.so -sed -e 's%\(^LIBS=.*\)%\1 -lstdc++%g' Makefile > _Makefile -mv -f _Makefile Makefile -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/MAKE.LOG < _"$sc" - mv -f _"$sc" "$sc" - chmod a+x "$sc" - fi -done - -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} - -(cd ${PRODUCT_DIR}/lib/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so) - -cd ${PRODUCT_DIR}/bin -for sc in idle pydoc smtpd.py ; do - if [ -e $sc ] ; then - sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc" - mv -f _"$sc" "$sc" - chmod a+x "$sc" - fi -done - -# 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="Python-2.4.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/Python-2.6.2.sh b/config_files/Python-2.6.2.sh new file mode 100755 index 0000000..32c156e --- /dev/null +++ b/config_files/Python-2.6.2.sh @@ -0,0 +1,186 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : Python-2.6.2.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 "$PYTHONHOME" ]; then + return 1 +fi +isPython=`which python 2>/dev/null` +if [ -n "$isPython" ]; then + # version number is calculated as: *10000+*100+ + # for Python 2.6.2 it is equal to 20404 + ver=`python -V 2>&1` + ver=`echo $ver | awk '{print $2}' | awk -F. '{v1=0;v2=0;v3=0;if(NF>0)v1=$1;if(NF>1)v2=$2;if(NF>2)v3=$3;print v1*10000+v2*100+v3}'` + if [ $ver -eq 20404 ] ; then + return 0 + fi +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <& /dev/null ; \ +# autoconf >& /dev/null ; \ +# aclocal >& /dev/null ; \ +# autoconf >& /dev/null ) +# fi +#fi + +# 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} + +check_job ${PRODUCT_DIR}/CONFIGURE.LOG \ + ./configure --prefix=${PRODUCT_DIR} $PYTHON_CONFIGURE_OPTIONS + +# vsr: force linking to libstdc++.so +sed -e 's%\(^LIBS=.*\)%\1 -lstdc++%g' Makefile > _Makefile +mv -f _Makefile Makefile +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < _"$sc" + mv -f _"$sc" "$sc" + chmod a+x "$sc" + fi +done + +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} + +(cd ${PRODUCT_DIR}/lib/python2.6/config; ln -fs ../../libpython2.6.so.1.0 libpython2.6.so) + +cd ${PRODUCT_DIR}/bin +for sc in idle pydoc smtpd.py ; do + if [ -e $sc ] ; then + sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc" + mv -f _"$sc" "$sc" + chmod a+x "$sc" + fi +done + +# 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="Python-2.6.2" +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/SWIG-1.3.31.sh b/config_files/SWIG-1.3.31.sh deleted file mode 100755 index 0aabff8..0000000 --- a/config_files/SWIG-1.3.31.sh +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : SWIG-1.3.31.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 [ -n "`which swig 2>/dev/null`" ]; then - ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` - if [ "$ver" == "1.3.31" ] ; then - return 0; - fi -fi -return 1; -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG </dev/null`" ]; then + ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` + if [ "$ver" == "1.3.40" ] ; then + return 0; + fi +fi +return 1; +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <GetFile()->tellg()%seekg(static_cast(self->GetFile()->tellg())%g" IO/vtkImageReader.cxx > IO/vtkImageReader.cxx.orig mv -f IO/vtkImageReader.cxx.orig IO/vtkImageReader.cxx +sed -e "s%char \*doc \=%const char \*doc \=%g" Common/vtkPythonUtil.cxx > Common/vtkPythonUtil.cxx.orig +mv -f Common/vtkPythonUtil.cxx.orig Common/vtkPythonUtil.cxx + + # get Python and tcl/tk version python_version="`python -c 'import sys; print sys.version[:3]'`" tcl_version="" diff --git a/config_files/cElementTree-1.0.5.sh b/config_files/cElementTree-1.0.5.sh deleted file mode 100755 index 11d2d70..0000000 --- a/config_files/cElementTree-1.0.5.sh +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : cElementTree-1.0.5.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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${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 ${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} - -# 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; -shift -REMOVE_SRC_TMP=$8; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="cElementTree-1.0.5" -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/common.sh b/config_files/common.sh index 0c82b35..3477d8f 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -19,7 +19,7 @@ export CSHRC="salome.csh" ##################################################### # !WARNING! This is current SALOME version number #################################################### -export SALOME_VERSION="5.1.2" +export SALOME_VERSION="5.1.3" # Name of the single directory for SALOME modules export SDIR_NAME="SALOME_${SALOME_VERSION}" @@ -806,7 +806,7 @@ if [ "$l" != "X" ] ; then # 15. process libxml dependencies libxmldir=`printenv LIBXML_DIR`/lib if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv LIBXML_DIR`/lib ; fi - sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2-[0-9]\.[0-9]\.[0-9][0-9]/lib% \1${libxmldir}%g" $l > $l"_" + sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2-[0-9]\.[0-9]\.[0-9]/lib% \1${libxmldir}%g" $l > $l"_" mv -f $l"_" $l sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2/lib% \1${libxmldir}%g" $l > $l"_" mv -f $l"_" $l diff --git a/config_files/docutils-0.4.0.sh b/config_files/docutils-0.4.0.sh deleted file mode 100755 index 2fc1d6f..0000000 --- a/config_files/docutils-0.4.0.sh +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : docutils-0.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(){ -# It is not necessary to check version! -return 0 -} - -print_env_bin(){ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _rst2latex.py -mv -f _rst2latex.py rst2latex.py -chmod a+x rst2latex.py -ln -sf rst2latex.py rst2latex - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py -mv -f _rst2html.py rst2html.py -chmod a+x rst2html.py -ln -sf rst2html.py rst2html - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2newlatex.py > _rst2newlatex.py -mv -f _rst2newlatex.py rst2newlatex.py -chmod a+x rst2newlatex.py -ln -sf rst2newlatex.py rst2newlatex - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2pseudoxml.py > _rst2pseudoxml.py -mv -f _rst2pseudoxml.py rst2pseudoxml.py -chmod a+x rst2pseudoxml.py -ln -sf rst2pseudoxml.py rst2pseudoxml - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2s5.py > _rst2s5.py -mv -f _rst2s5.py rst2s5.py -chmod a+x rst2s5.py -ln -sf rst2s5.py rst2s5 - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2xml.py > _rst2xml.py -mv -f _rst2xml.py rst2xml.py -chmod a+x rst2xml.py -ln -sf rst2xml.py rst2xml - -# 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} -cd ${PRODUCT_DIR}/bin; - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2latex.py > _rst2latex.py -mv -f _rst2latex.py rst2latex.py -chmod a+x rst2latex.py -ln -sf rst2latex.py rst2latex - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py -mv -f _rst2html.py rst2html.py -chmod a+x rst2html.py -ln -sf rst2html.py rst2html - -# 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; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="docutils-0.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/docutils-0.6.0.sh b/config_files/docutils-0.6.0.sh new file mode 100755 index 0000000..563af09 --- /dev/null +++ b/config_files/docutils-0.6.0.sh @@ -0,0 +1,175 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : docutils-0.6.0.sh +# Created : Mon Oct 12 11:20:00 2009 +# 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. +# +#################################################################################### + +# +# docutils version +# +DOCUTILS_VERSION=0.6.0 + +check_version(){ +# It is not necessary to check version! +return 0 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _rst2latex.py +mv -f _rst2latex.py rst2latex.py +chmod a+x rst2latex.py +ln -sf rst2latex.py rst2latex + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py +mv -f _rst2html.py rst2html.py +chmod a+x rst2html.py +ln -sf rst2html.py rst2html + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2newlatex.py > _rst2newlatex.py +mv -f _rst2newlatex.py rst2newlatex.py +chmod a+x rst2newlatex.py +ln -sf rst2newlatex.py rst2newlatex + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2pseudoxml.py > _rst2pseudoxml.py +mv -f _rst2pseudoxml.py rst2pseudoxml.py +chmod a+x rst2pseudoxml.py +ln -sf rst2pseudoxml.py rst2pseudoxml + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2s5.py > _rst2s5.py +mv -f _rst2s5.py rst2s5.py +chmod a+x rst2s5.py +ln -sf rst2s5.py rst2s5 + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2xml.py > _rst2xml.py +mv -f _rst2xml.py rst2xml.py +chmod a+x rst2xml.py +ln -sf rst2xml.py rst2xml + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2man.py > _rst2man.py +mv -f _rst2man.py rst2man.py +chmod a+x rst2man.py +ln -sf rst2man.py rst2man + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2odt_prepstyles.py > _rst2odt_prepstyles.py +mv -f _rst2odt_prepstyles.py rst2odt_prepstyles.py +chmod a+x rst2odt_prepstyles.py +ln -sf rst2odt_prepstyles.py rst2odt_prepstyles + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2odt.py > _rst2odt.py +mv -f _rst2odt.py rst2odt.py +chmod a+x rst2odt.py +ln -sf rst2odt.py rst2odt + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rstpep2html.py > _rstpep2html.py +mv -f _rstpep2html.py rstpep2html.py +chmod a+x rstpep2html.py +ln -sf rstpep2html.py rstpep2html + +# 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} +cd ${PRODUCT_DIR}/bin; + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2latex.py > _rst2latex.py +mv -f _rst2latex.py rst2latex.py +chmod a+x rst2latex.py +ln -sf rst2latex.py rst2latex + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py +mv -f _rst2html.py rst2html.py +chmod a+x rst2html.py +ln -sf rst2html.py rst2html + +# 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; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="docutils-${DOCUTILS_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/doxygen-1.5.6.sh b/config_files/doxygen-1.5.6.sh deleted file mode 100755 index e5869ca..0000000 --- a/config_files/doxygen-1.5.6.sh +++ /dev/null @@ -1,131 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : doxygen-1.5.6.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() -{ -check_lib_version doxygen $PATH -if [ "$?" -ne "0" ]; then - return 1 -fi -ver=`doxygen --version` -maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` -min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` -rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` -let ver=$maj_ver*10000+$min_ver*100+$rel_ver -if [ $ver -eq 10506 ] ; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` +min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` +rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` +let ver=$maj_ver*10000+$min_ver*100+$rel_ver +if [ $ver -eq 10506 ] ; then + return 0 +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${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 ${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} - -# 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; -shift -REMOVE_SRC_TMP=$8; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="elementtree-1.2.6" -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/expat-2.0.1.sh b/config_files/expat-2.0.1.sh new file mode 100755 index 0000000..452ecf0 --- /dev/null +++ b/config_files/expat-2.0.1.sh @@ -0,0 +1,119 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : expat-2.0.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. +# +#################################################################################### + +check_version(){ +# It is not necessary to check version! +return 0 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG </dev/null` -if [ -n "$isdot" ]; then - ver=`dot -V 2>&1 | awk '{print $5}'` - maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - let ver=$maj_ver*10000+$min_ver*100+$rel_ver - if [ $ver -eq 20203 ] ; then - return 0 - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < $l"_" - chmod -f --reference=$l $l"_" - mv -f $l"_" $l - - lpath=`dirname $l` - libdir=`grep -e "^libdir=.*" $l | sed -e "s/^libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` - sed -e "s%${libdir}%${lpath}%g" $l > $l"_" - chmod -f --reference=$l $l"_" ; mv -f $l"_" $l - fi -done - -cd ${PRODUCT_DIR}/lib/pkgconfig -for l in X `find . -name "*.pc"`; do - if [ "${l}" != "X" ] ; then - sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ - chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} - fi -done - -# 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="graphviz-2.16.1" -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/graphviz-2.24.0.sh b/config_files/graphviz-2.24.0.sh new file mode 100755 index 0000000..af266a3 --- /dev/null +++ b/config_files/graphviz-2.24.0.sh @@ -0,0 +1,166 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : graphviz-2.24.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() +{ +isdot=`which dot 2>/dev/null` +if [ -n "$isdot" ]; then + ver=`dot -V 2>&1 | awk '{print $5}'` + maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + let ver=$maj_ver*10000+$min_ver*100+$rel_ver + if [ $ver -eq 20204 ] ; then + return 0 + fi +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < $l"_" + chmod -f --reference=$l $l"_" + mv -f $l"_" $l + + lpath=`dirname $l` + libdir=`grep -e "^libdir=.*" $l | sed -e "s/^libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` + sed -e "s%${libdir}%${lpath}%g" $l > $l"_" + chmod -f --reference=$l $l"_" ; mv -f $l"_" $l + fi +done + +cd ${PRODUCT_DIR}/lib/pkgconfig +for l in X `find . -name "*.pc"`; do + if [ "${l}" != "X" ] ; then + sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ + chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} + fi +done + +# 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="graphviz-2.24.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/hdf5-1.6.4.sh b/config_files/hdf5-1.6.4.sh deleted file mode 100755 index 7a7a19b..0000000 --- a/config_files/hdf5-1.6.4.sh +++ /dev/null @@ -1,149 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : hdf5-1.6.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 "$HDF5HOME" ]; then - return 1 -fi -check_lib_version libhdf5.so.0.0.0 ${HDF5HOME}/lib -if [ "$?" -ne "0" ]; then - return 1 -fi -check_lib_version libhdf5.settings ${HDF5HOME}/lib -if [ "$?" -eq "0" ]; then - ver=`grep "HDF5 Version:" ${HDF5HOME}/lib/libhdf5.settings | awk '{print $3}'` - if [ "$ver" == "1.6.4" ]; then - return 0 - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < libhdf5.la.new -mv -f libhdf5.la.new libhdf5.la -if [ -e libhdf5_hl.la ] ; then - sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libhdf5_hl.la > libhdf5_hl.la.new - mv -f libhdf5_hl.la.new libhdf5_hl.la -fi - -# 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; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="hdf5-1.6.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/hdf5-1.6.9.sh b/config_files/hdf5-1.6.9.sh new file mode 100755 index 0000000..c5c535c --- /dev/null +++ b/config_files/hdf5-1.6.9.sh @@ -0,0 +1,154 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : hdf5-1.6.9.sh +# Created : Mon Oct 12 11:07:00 2009 +# 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. +# +#################################################################################### + +# +# HDF5 version +# +HDF5_VERSION=1.6.9 + +check_version() +{ +if [ -z "$HDF5HOME" ]; then + return 1 +fi +check_lib_version libhdf5.so.0.0.0 ${HDF5HOME}/lib +if [ "$?" -ne "0" ]; then + return 1 +fi +check_lib_version libhdf5.settings ${HDF5HOME}/lib +if [ "$?" -eq "0" ]; then + ver=`grep "HDF5 Version:" ${HDF5HOME}/lib/libhdf5.settings | awk '{print $3}'` + if [ "$ver" == "${HDF5_VERSION}" ]; then + return 0 + fi +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < libhdf5.la.new +mv -f libhdf5.la.new libhdf5.la +if [ -e libhdf5_hl.la ] ; then + sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libhdf5_hl.la > libhdf5_hl.la.new + mv -f libhdf5_hl.la.new libhdf5_hl.la +fi + +# 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; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="hdf5-${HDF5_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/libxml2-2.6.27.sh b/config_files/libxml2-2.6.27.sh deleted file mode 100755 index f909062..0000000 --- a/config_files/libxml2-2.6.27.sh +++ /dev/null @@ -1,139 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : libxml2-2.6.27.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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < $l$lnew -mv $l$lnew $l -chmod 755 $l -done - -cd ${PRODUCT_DIR}/lib/pkgconfig -for l in X `find . -name "*.pc"`; do - if [ "${l}" != "X" ] ; then - sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ - chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} - fi -done - -# 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; -shift -REMOVE_SRC_TMP=$8; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="libxml2-2.6.27" -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/libxml2-2.7.3.sh b/config_files/libxml2-2.7.3.sh new file mode 100755 index 0000000..f052480 --- /dev/null +++ b/config_files/libxml2-2.7.3.sh @@ -0,0 +1,139 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : libxml2-2.7.3.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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < $l$lnew +mv $l$lnew $l +chmod 755 $l +done + +cd ${PRODUCT_DIR}/lib/pkgconfig +for l in X `find . -name "*.pc"`; do + if [ "${l}" != "X" ] ; then + sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ + chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} + fi +done + +# 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; +shift +REMOVE_SRC_TMP=$8; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="libxml2-2.7.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-2.3.5.sh b/config_files/med-2.3.5.sh deleted file mode 100755 index f0a8108..0000000 --- a/config_files/med-2.3.5.sh +++ /dev/null @@ -1,242 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : med-2.3.5.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} FFLAGS='-g -O2 -ffixed-line-length-none -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" - ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none -fPIC" 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' 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 - fi - 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 < 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" libmedimportcxx.la > libmedimportcxx.la.new -mv -f libmedimportcxx.la.new libmedimportcxx.la - -chmod 755 libmedimport.la -chmod 755 libmedimportcxx.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 -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 - -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:]].*/med-[0-9]\.[0-9]\.[0-9]/lib/libmed.la[[:space:]]\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libmed.la \3%g" libmedimportcxx.la > libmedimportcxx.la.new -mv -f libmedimportcxx.la.new libmedimportcxx.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 -sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \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 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-2.3.5" -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-2.3.6.sh b/config_files/med-2.3.6.sh new file mode 100755 index 0000000..e2bd0e0 --- /dev/null +++ b/config_files/med-2.3.6.sh @@ -0,0 +1,242 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : med-2.3.6.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} FFLAGS='-g -O2 -ffixed-line-length-none -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG" + ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none -fPIC" 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' 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 + fi + 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 < 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" libmedimportcxx.la > libmedimportcxx.la.new +mv -f libmedimportcxx.la.new libmedimportcxx.la + +chmod 755 libmedimport.la +chmod 755 libmedimportcxx.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 +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 + +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:]].*/med-[0-9]\.[0-9]\.[0-9]/lib/libmed.la[[:space:]]\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libmed.la \3%g" libmedimportcxx.la > libmedimportcxx.la.new +mv -f libmedimportcxx.la.new libmedimportcxx.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 +sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \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 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-2.3.6" +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/numpy-1.3.0.sh b/config_files/numpy-1.3.0.sh new file mode 100755 index 0000000..624a3e7 --- /dev/null +++ b/config_files/numpy-1.3.0.sh @@ -0,0 +1,143 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : numpy-1.3.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(){ +# It is not necessary to check version! +return 0 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /dev/null + if [ $? == 0 ] ; then is_debian31=1 ; fi +fi + +if [ $is_debian31 == 1 ] ; then +export LAPACKSUFF="3.1.1" +else +export LAPACKSUFF="3.2" +fi + +export LD_LIBRARY_PATH=${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC:${LD_LIBRARY_PATH} + +check_jb tar xfz ${SOURCE_DIR}/lapack-${LAPACKSUFF}.tar.gz -C ${PRODUCT_SRC_DIR} + + +check_jb tar xfz ${SOURCE_DIR}/numpy-1.3.0.tar.gz -C ${PRODUCT_SRC_DIR} + +# 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} + +# install +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/.omniORB.cfg < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE_OMNIORB.LOG <> ${PRODUCT_DIR}/MAKE_OMNIORBPY.LOG <> ${PRODUCT_DIR}/MAKE_OMNINOTIFY.LOG < _omniidl -mv -f _omniidl omniidl -chmod a+x omniidl -sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py -mv -f _omniidlrun.py omniidlrun.py -chmod a+x omniidlrun.py - -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} - -ln -sf ${PRODUCT_DIR} ${INST_ROOT}/omni - -cd ${PRODUCT_DIR}/bin -for l in omniidl omniidlrun.py ; do - sed -e "s%#\!.*python%#\!/usr/bin/env python%" \ - -e "s%\"[^[:space:]]*${PRODUCT}\([^[:space:]]*\)\"%\"${PRODUCT_DIR}\1\"%" \ - ${l} > _${l} - mv -f _${l} ${l} - chmod a+x ${l} -done - -cd ${PRODUCT_DIR}/lib -for l in X `find . -name "*_idl.py"`; do - if [ "${l}" != "X" ] ; then - lname=`basename ${l} | sed -e "s%_idl.py$%%g"`".idl" - sed -e "s%\(omniORB.openModule(.*,[[:space:]]*r\"\)[^[:space:]]*${PRODUCT}\([^[:space:]]*/${lname}\"\)%\1${PRODUCT_DIR}\2%g" ${l} > ${l}_ - chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} - fi -done - -cd ${PRODUCT_DIR}/lib/pkgconfig -for l in X `find . -name "*.pc"`; do - if [ "${l}" != "X" ] ; then - sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ - chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} - fi -done - -# 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; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="omniORB-4.1.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/omniORB-4.1.4.sh b/config_files/omniORB-4.1.4.sh new file mode 100755 index 0000000..0423a08 --- /dev/null +++ b/config_files/omniORB-4.1.4.sh @@ -0,0 +1,236 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : omniORB-4.1.4.sh +# Created : Mon Feb 09 16:21:00 2009 +# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +# Project : SALOME +# Module : Installation Wizard +# Copyright : 2002-2009 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +check_version() +{ +if [ -z "${OMNIORBDIR}" ]; then + #echo "OMNIORBDIR doesn't set" + return 1 +fi +python_version="`python -c 'import sys; print sys.version[:3]'`" +check_lib_version libomniORB4.so.1.4 ${OMNIORBDIR}/lib +if [ "$?" -ne "0" ]; then + return 1 +fi +check_lib_version _omnipymodule.so.3.4 ${OMNIORBDIR}/lib/python${python_version}/site-packages +if [ "$?" -ne "0" ]; then + return 1 +fi +check_lib_version libCOSNotify4.so.0.1 ${OMNIORBDIR}/lib +if [ "$?" -ne "0" ]; then + return 1 +fi +check_lib_version notifd ${OMNIORBDIR}/bin +if [ "$?" -ne "0" ]; then + return 1 +fi +return 0 +} + +print_env_bin() +{ + +if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then + OMNI_LIB_PREFIX=64 +elif [ -d ${PRODUCT_DIR}/lib ] ; then + OMNI_LIB_PREFIX="" +else + OMNI_LIB_PREFIX=64 +fi + +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/.omniORB.cfg < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE_OMNIORB.LOG <> ${PRODUCT_DIR}/MAKE_OMNIORBPY.LOG <> ${PRODUCT_DIR}/MAKE_OMNINOTIFY.LOG < _omniidl +mv -f _omniidl omniidl +chmod a+x omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py +mv -f _omniidlrun.py omniidlrun.py +chmod a+x omniidlrun.py + +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} + +ln -sf ${PRODUCT_DIR} ${INST_ROOT}/omni + +cd ${PRODUCT_DIR}/bin +for l in omniidl omniidlrun.py ; do + sed -e "s%#\!.*python%#\!/usr/bin/env python%" \ + -e "s%\"[^[:space:]]*${PRODUCT}\([^[:space:]]*\)\"%\"${PRODUCT_DIR}\1\"%" \ + ${l} > _${l} + mv -f _${l} ${l} + chmod a+x ${l} +done + +cd ${PRODUCT_DIR}/lib +for l in X `find . -name "*_idl.py"`; do + if [ "${l}" != "X" ] ; then + lname=`basename ${l} | sed -e "s%_idl.py$%%g"`".idl" + sed -e "s%\(omniORB.openModule(.*,[[:space:]]*r\"\)[^[:space:]]*${PRODUCT}\([^[:space:]]*/${lname}\"\)%\1${PRODUCT_DIR}\2%g" ${l} > ${l}_ + chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} + fi +done + +cd ${PRODUCT_DIR}/lib/pkgconfig +for l in X `find . -name "*.pc"`; do + if [ "${l}" != "X" ] ; then + sed -e "s%prefix=.*%prefix=${PRODUCT_DIR}%g" ${l} > ${l}_ + chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} + fi +done + +# 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; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="omniORB-4.1.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/qscintilla-2.3.sh b/config_files/qscintilla-2.3.sh deleted file mode 100755 index 1e3ce30..0000000 --- a/config_files/qscintilla-2.3.sh +++ /dev/null @@ -1,140 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : qscintilla-2.3.sh -# Created : Thu Oct 23 11:50:00 2008 -# 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 "${QSCINTILLA_DIR}" ]; then - return 1 -fi -ver=`grep "QSCINTILLA_VERSION_STR" ${QSCINTILLA_DIR}/include/Qsci/qsciglobal.h | sed -e 's%^#define QSCINTILLA_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'` -if [ "$ver" == "2.3" ] ; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qscintilla.pro.new -mv -f qscintilla.pro.new qscintilla.pro - -qmake -o Makefile qscintilla.pro -check_job ${PRODUCT_DIR}/MAKE.LOG make -check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install - -if [ "${INSTALL_ROOT_PREV}" != "" ] ; then - export INSTALL_ROOT=$INSTALL_ROOT_PREV -fi - -#rm -rf ${PRODUCT_DIR}/doc -#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 ${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} - -# 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="QScintilla-2.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/qscintilla-2.4.sh b/config_files/qscintilla-2.4.sh new file mode 100755 index 0000000..aab750b --- /dev/null +++ b/config_files/qscintilla-2.4.sh @@ -0,0 +1,140 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : qscintilla-2.4.sh +# Created : Thu Oct 23 11:50:00 2008 +# 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 "${QSCINTILLA_DIR}" ]; then + return 1 +fi +ver=`grep "QSCINTILLA_VERSION_STR" ${QSCINTILLA_DIR}/include/Qsci/qsciglobal.h | sed -e 's%^#define QSCINTILLA_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'` +if [ "$ver" == "2.4" ] ; then + return 0 +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qscintilla.pro.new +mv -f qscintilla.pro.new qscintilla.pro + +qmake -o Makefile qscintilla.pro +check_job ${PRODUCT_DIR}/MAKE.LOG make +check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install + +if [ "${INSTALL_ROOT_PREV}" != "" ] ; then + export INSTALL_ROOT=$INSTALL_ROOT_PREV +fi + +#rm -rf ${PRODUCT_DIR}/doc +#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 ${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} + +# 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="QScintilla-2.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/qt-4.4.3.sh b/config_files/qt-4.4.3.sh deleted file mode 100755 index b1ce675..0000000 --- a/config_files/qt-4.4.3.sh +++ /dev/null @@ -1,176 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : qt-4.4.3.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. -# -#################################################################################### - -QT_REF_VERSION="4.4.3" - -check_version(){ -if [ -z "$QTDIR" ]; then - return 1 -fi -ver=`grep "QT_VERSION_STR" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'` -if [ "$ver" == "${QT_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 <> ${PRODUCT_DIR}/MAKE.LOG < $l"_" -chmod -f --reference=$l $l"_" ; mv -f $l"_" $l -sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" $l > $l"_" -chmod -f --reference=$l $l"_" ; mv -f $l"_" $l -sed -e "s%^dependency_libs='\(-L\)\?[^[:space:]]*${PRODUCT}%dependency_libs=\'\1${PRODUCT_DIR}%g" $l > $l"_" -chmod -f --reference=$l $l"_" ; mv -f $l"_" $l - -done - -# modify libGL.so flags -has_gl_dep=`grep -E "^dependency_libs=.*-lGL.*" libQtOpenGL.la` -gllibdir="`where_gl_libs`" -if [ "$has_gl_dep" != "" ] && [ "$gllibdir" != "" ] ; then - sed -e "s%-lGL\b%%g" \ - -e "s%^dependency_libs='\(.*\)%dependency_libs='-L$gllibdir -lGL \1%g" \ - libQtOpenGL.la > libQtOpenGL.la.new - mv -f libQtOpenGL.la.new libQtOpenGL.la -fi - -# modify qt package config -cd ${PRODUCT_DIR}/lib/pkgconfig -for l in X `find . -name "*.pc"`; do - if [ "${l}" != "X" ] ; then - sed -e "s%^prefix=\(.*\)%prefix=${PRODUCT_DIR}%g" \ - -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qt-${QT_REF_VERSION}% \1${PRODUCT_DIR}%g" \ - -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qt-x11-opensource-src-${QT_REF_VERSION}% \1${PRODUCT_DIR}%g" \ - -e "s%moc_location=.*%moc_location=${PRODUCT_DIR}/bin/moc%g" \ - -e "s%uic_location=.*%uic_location=${PRODUCT_DIR}/bin/uic%g" \ - ${l} > ${l}_ - chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} - fi -done - -# generate qt.conf file -cat > ${PRODUCT_DIR}/bin/qt.conf < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <\2%g" \ + examples/xmlpatterns/trafficinfo/mainwindow.cpp > examples/xmlpatterns/trafficinfo/mainwindow.cpp.1 + mv -f examples/xmlpatterns/trafficinfo/mainwindow.cpp.1 examples/xmlpatterns/trafficinfo/mainwindow.cpp + +# configure +check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure -prefix ${PRODUCT_DIR} -no-separate-debug-info -release -opensource -confirm-license + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < $l"_" +chmod -f --reference=$l $l"_" ; mv -f $l"_" $l +sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" $l > $l"_" +chmod -f --reference=$l $l"_" ; mv -f $l"_" $l +sed -e "s%^dependency_libs='\(-L\)\?[^[:space:]]*${PRODUCT}%dependency_libs=\'\1${PRODUCT_DIR}%g" $l > $l"_" +chmod -f --reference=$l $l"_" ; mv -f $l"_" $l + +done + +# modify libGL.so flags +has_gl_dep=`grep -E "^dependency_libs=.*-lGL.*" libQtOpenGL.la` +gllibdir="`where_gl_libs`" +if [ "$has_gl_dep" != "" ] && [ "$gllibdir" != "" ] ; then + sed -e "s%-lGL\b%%g" \ + -e "s%^dependency_libs='\(.*\)%dependency_libs='-L$gllibdir -lGL \1%g" \ + libQtOpenGL.la > libQtOpenGL.la.new + mv -f libQtOpenGL.la.new libQtOpenGL.la +fi + +# modify qt package config +cd ${PRODUCT_DIR}/lib/pkgconfig +for l in X `find . -name "*.pc"`; do + if [ "${l}" != "X" ] ; then + sed -e "s%^prefix=\(.*\)%prefix=${PRODUCT_DIR}%g" \ + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qt-${QT_REF_VERSION}% \1${PRODUCT_DIR}%g" \ + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qt-x11-opensource-src-${QT_REF_VERSION}% \1${PRODUCT_DIR}%g" \ + -e "s%moc_location=.*%moc_location=${PRODUCT_DIR}/bin/moc%g" \ + -e "s%uic_location=.*%uic_location=${PRODUCT_DIR}/bin/uic%g" \ + ${l} > ${l}_ + chmod -f --reference=${l} ${l}_ ; mv -f ${l}_ ${l} + fi +done + +# generate qt.conf file +cat > ${PRODUCT_DIR}/bin/qt.conf < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qwtconfig.pri.new -mv qwtconfig.pri.new qwtconfig.pri - -sed -e "s%\(target\.path[[:space:]]*\)=\([[:space:]]*\).*%\1=\2\$\$INSTALLBASE/plugins/designer%g" \ - designer/designer.pro > designer/designer.pro.new -mv designer/designer.pro.new designer/designer.pro - -INSTALL_ROOT_PREV=$INSTALL_ROOT -unset INSTALL_ROOT - -qmake - -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/MAKE.LOG < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qwtconfig.pri.new +mv qwtconfig.pri.new qwtconfig.pri + +sed -e "s%\(target\.path[[:space:]]*\)=\([[:space:]]*\).*%\1=\2\$\$INSTALLBASE/plugins/designer%g" \ + designer/designer.pro > designer/designer.pro.new +mv designer/designer.pro.new designer/designer.pro + +INSTALL_ROOT_PREV=$INSTALL_ROOT +unset INSTALL_ROOT + +qmake + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG <0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - let ver=$maj_ver*10000+$min_ver*100+$rel_ver - if [ $ver -eq 40502 ] ; then - return 0 - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'` - qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'` - sed -e "s%\('default_bin_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/bin',%g" \ - -e "s%\('default_mod_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/site-packages',%g" \ - -e "s%\('default_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \ - -e "s%\('sip_bin':[[:space:]]*\).*%\1'${PRODUCT_DIR}/bin/sip',%g" \ - -e "s%\('sip_inc_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/include/python${PYTHON_VERSION}',%g" \ - -e "s%\('sip_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages',%g" \ - -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ - -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \ - -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ - -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ - -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ - -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ - -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \ - -e "s%\('py_version':[[:space:]]*\).*%\1${python_version},%g" \ - -e "s%\('sip_config_args':[[:space:]]*\).*%\1'${SIP_CONFIGURE_OPTIONS}',%g" \ - -e "s%\('py_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" \ - -e "s%\('py_lib_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/config',%g" \ - -e "s%\('py_conf_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" sipconfig.py > sipconfig.py.1 - mv -f sipconfig.py.1 sipconfig.py -fi - -# 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="sip-4.7.7" -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/sip-4.8.2.sh b/config_files/sip-4.8.2.sh new file mode 100755 index 0000000..8060756 --- /dev/null +++ b/config_files/sip-4.8.2.sh @@ -0,0 +1,168 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : sip-4.8.2.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 [ -n "${SIPDIR}" ]; then + ver=`${SIPDIR}/bin/sip -V | awk '{print $1}'` + maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` + let ver=$maj_ver*10000+$min_ver*100+$rel_ver + if [ $ver -eq 40502 ] ; then + return 0 + fi +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG <&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'` + qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'` + sed -e "s%\('default_bin_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/bin',%g" \ + -e "s%\('default_mod_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/site-packages',%g" \ + -e "s%\('default_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \ + -e "s%\('sip_bin':[[:space:]]*\).*%\1'${PRODUCT_DIR}/bin/sip',%g" \ + -e "s%\('sip_inc_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/include/python${PYTHON_VERSION}',%g" \ + -e "s%\('sip_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages',%g" \ + -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \ + -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \ + -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ + -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ + -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \ + -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \ + -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \ + -e "s%\('py_version':[[:space:]]*\).*%\1${python_version},%g" \ + -e "s%\('sip_config_args':[[:space:]]*\).*%\1'${SIP_CONFIGURE_OPTIONS}',%g" \ + -e "s%\('py_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" \ + -e "s%\('py_lib_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/config',%g" \ + -e "s%\('py_conf_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" sipconfig.py > sipconfig.py.1 + mv -f sipconfig.py.1 sipconfig.py +fi + +# 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="sip-4.8.2" +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/sphinx-0.5.sh b/config_files/sphinx-0.5.sh deleted file mode 100755 index e2ac532..0000000 --- a/config_files/sphinx-0.5.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : sphinx-0.5.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(){ -# It is not necessary to check version! -return 0 -} - -print_env_bin(){ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _easy_install -mv -f _easy_install easy_install -chmod a+x easy_install - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-2.4 > _easy_install-2.4 -mv -f _easy_install-2.4 easy_install-2.4 -chmod a+x easy_install-2.4 - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize -mv -f _pygmentize pygmentize -chmod a+x pygmentize - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build -mv -f _sphinx-build sphinx-build -chmod a+x sphinx-build - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart -mv -f _sphinx-quickstart sphinx-quickstart -chmod a+x sphinx-quickstart - -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} - -cd ${PRODUCT_DIR}/bin; - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install > _easy_install -mv -f _easy_install easy_install -chmod a+x easy_install - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-2.4 > _easy_install-2.4 -mv -f _easy_install-2.4 easy_install-2.4 -chmod a+x easy_install-2.4 - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize -mv -f _pygmentize pygmentize -chmod a+x pygmentize - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build -mv -f _sphinx-build sphinx-build -chmod a+x sphinx-build - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart -mv -f _sphinx-quickstart sphinx-quickstart -chmod a+x sphinx-quickstart - -# 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; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="sphinx-0.5" -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/sphinx-0.6.3.sh b/config_files/sphinx-0.6.3.sh new file mode 100755 index 0000000..76c415f --- /dev/null +++ b/config_files/sphinx-0.6.3.sh @@ -0,0 +1,187 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : sphinx-0.6.3.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. +# +#################################################################################### + +# +# Sphinx version +# +SPHINX_VERSION=0.6.3 + +check_version(){ +# It is not necessary to check version! +return 0 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < _easy_install +mv -f _easy_install easy_install +chmod a+x easy_install + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-${PYTHON_VERSION} > _easy_install-${PYTHON_VERSION} +mv -f _easy_install-${PYTHON_VERSION} easy_install-${PYTHON_VERSION} +chmod a+x easy_install-${PYTHON_VERSION} + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize +mv -f _pygmentize pygmentize +chmod a+x pygmentize + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build +mv -f _sphinx-build sphinx-build +chmod a+x sphinx-build + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart +mv -f _sphinx-quickstart sphinx-quickstart +chmod a+x sphinx-quickstart + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-autogen > _sphinx-autogen +mv -f _sphinx-autogen sphinx-autogen +chmod a+x sphinx-autogen + +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} + +cd ${PRODUCT_DIR}/bin; + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install > _easy_install +mv -f _easy_install easy_install +chmod a+x easy_install + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-2.4 > _easy_install-2.4 +mv -f _easy_install-2.4 easy_install-2.4 +chmod a+x easy_install-2.4 + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize +mv -f _pygmentize pygmentize +chmod a+x pygmentize + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build +mv -f _sphinx-build sphinx-build +chmod a+x sphinx-build + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart +mv -f _sphinx-quickstart sphinx-quickstart +chmod a+x sphinx-quickstart + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-autogen > _sphinx-autogen +mv -f _sphinx-autogen sphinx-autogen +chmod a+x sphinx-autogen + +# 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; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="sphinx-${SPHINX_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/tcltk-8.4.14.sh b/config_files/tcltk-8.4.14.sh index 386ff36..4d285ba 100755 --- a/config_files/tcltk-8.4.14.sh +++ b/config_files/tcltk-8.4.14.sh @@ -59,7 +59,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < _tkConfig.sh mv -f _tkConfig.sh tkConfig.sh + if test `uname -m` = "x86_64" ; then + cd ${PRODUCT_DIR} ; ln -s lib lib64 + fi + # to generate environment scripts try_preinstalled }