From db3cb70c9ea1bbceadce9f0ead749d1fee9941eb Mon Sep 17 00:00:00 2001 From: inv Date: Wed, 4 Apr 2012 07:28:31 +0000 Subject: [PATCH 1/1] SALOME 6.5.0 preparation: update script for ftgl (2.1.2) --- config_CentOS_5.5_64bit.xml | 2 +- config_Debian_4.0.xml | 2 +- config_Debian_4.0_64bit.xml | 2 +- config_Debian_5.0_64bit.xml | 2 +- config_Debian_6.0_64bit.xml | 2 +- config_Mandriva_2008.0.xml | 2 +- config_Mandriva_2008.0_64bit.xml | 2 +- config_Mandriva_2010.0.xml | 2 +- config_Mandriva_2010.0_64bit.xml | 2 +- config_Red_Hat_Enterprise_WS_4_64bit.xml | 2 +- config_Scientific_SL_5.1_64bit.xml | 2 +- config_files/{ftgl-2.1.2.sh => ftgl.sh} | 35 ++++++++++-------------- 12 files changed, 25 insertions(+), 32 deletions(-) rename config_files/{ftgl-2.1.2.sh => ftgl.sh} (80%) 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"/> libftgl.la.new -mv -f libftgl.la.new libftgl.la +sed -i "s%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype\3%g;s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" 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 +sed -i "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libftgl.la # to generate environment script for sources try_preinstalled @@ -148,7 +141,7 @@ export INSTALL_PRODUCTS=$7; shift REMOVE_SRC_TMP=$8; test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="ftgl-${FTGL_REF_VERSION}" +export PRODUCT="ftgl-${FTGL_VERSION}" export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC -- 2.39.2