From: vsr Date: Tue, 16 Apr 2013 15:07:35 +0000 (+0000) Subject: Minor changes X-Git-Tag: V7_2_0rc1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d20cfb771c03216319c54e38992ca8925b0870c6;p=tools%2Finstall.git Minor changes --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index 29293b9..700b277 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -170,7 +170,7 @@ description="SALOME platform PYCALCULATOR module"> @@ -489,7 +489,7 @@ version="30_018oss" disable="false" installdiskspace="86460,273932,478152" - script="tbb30_018oss.sh"/> + script="tbb.sh"/> @@ -489,7 +489,7 @@ version="30_018oss" disable="false" installdiskspace="86460,273932,478152" - script="tbb30_018oss.sh"/> + script="tbb.sh"/> @@ -489,7 +489,7 @@ version="30_018oss" disable="false" installdiskspace="86460,273932,478152" - script="tbb30_018oss.sh"/> + script="tbb.sh"/> @@ -489,7 +489,7 @@ version="30_018oss" disable="false" installdiskspace="86460,273932,478152" - script="tbb30_018oss.sh"/> + script="tbb.sh"/> & /dev/null && \ - sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.fip >& /dev/null + cd ${PRODUCT_SRC_DIR} + sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.gnu + sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.fip fi # [-] local patch_gcc47_compat=1 if [ "${patch_gcc47_compat}" = "1" ] ; then - echo -n ".. Patching freeimage sources: gcc 4.7 compatibility..." && \ - cd ${PRODUCT_SRC_DIR} && \ - sed -i 's%\(#include "OpenEXRConfig.h"\)%\1\n#include %g' Source/OpenEXR/IlmImf/ImfAutoArray.h >& /dev/null + cd ${PRODUCT_SRC_DIR} + sed -i 's%\(#include "OpenEXRConfig.h"\)%\1\n#include %g' Source/OpenEXR/IlmImf/ImfAutoArray.h fi cd ${PRODUCT_SRC_DIR} @@ -110,8 +108,8 @@ check_job ${PRODUCT_DIR}/MAKE.LOG make -f Makefile.gnu # install check_job ${PRODUCT_DIR}/INSTALL.LOG make -f Makefile.gnu DESTDIR=${PRODUCT_DIR} install -# clean temporary files. -make -f Makefile.fip clean +# clean temporary files +make -f Makefile.gnu clean ## building FreeImagePlus library @@ -121,7 +119,7 @@ check_job ${PRODUCT_DIR}/MAKEPLUS.LOG make -f Makefile.fip # install check_job ${PRODUCT_DIR}/INSTALLPLUS.LOG make -f Makefile.fip DESTDIR=${PRODUCT_DIR} install -# clean temporary files. +# clean temporary files make -f Makefile.fip clean cd ${PRODUCT_DIR}; diff --git a/config_files/tbb.sh b/config_files/tbb.sh new file mode 100755 index 0000000..cd048ea --- /dev/null +++ b/config_files/tbb.sh @@ -0,0 +1,101 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : tbb.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-2013 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +TBB_VERSION=30_018oss +TBBKERNEL='cc4.1.0_libc2.4_kernel2.6.16.21' + +if test `uname -m` = "x86_64" ; then + export TBBMODE="intel64/$TBBKERNEL" +else + export TBBMODE="ia32/$TBBKERNEL" +fi + +check_version(){ +# No way to check version! +return 0 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <