From: inv Date: Wed, 4 Apr 2012 07:28:31 +0000 (+0000) Subject: SALOME 6.5.0 preparation: update script for ftgl (2.1.2) X-Git-Tag: V6_5_0b1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db3cb70c9ea1bbceadce9f0ead749d1fee9941eb;p=tools%2Finstall.git SALOME 6.5.0 preparation: update script for ftgl (2.1.2) --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index 36626e8..2855fe8 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -453,7 +453,7 @@ version="2.1.2" disable="false" installdiskspace="86460,273932,478152" - script="ftgl-2.1.2.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> + script="ftgl.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < libftgl.la.new -mv -f libftgl.la.new libftgl.la - -tmp="" -if [ -n "${FREETYPEDIR}" ]; then - tmp="-L${FREETYPEDIR}/lib" -fi -sed -e "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libftgl.la > libftgl.la.new -mv -f libftgl.la.new libftgl.la - -# 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="ftgl-${FTGL_REF_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/ftgl.sh b/config_files/ftgl.sh new file mode 100755 index 0000000..fe32a74 --- /dev/null +++ b/config_files/ftgl.sh @@ -0,0 +1,149 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : ftgl.sh +# Created : Thu Dec 18 12:01:00 2002 +# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +# Project : SALOME +# Module : Installation Wizard +# Copyright : 2002-2012 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +# +# ftgl version +# +FTGL_VERSION=2.1.2 + +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 <