]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for ftgl (2.1.2)
authorinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:28:31 +0000 (07:28 +0000)
committerinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:28:31 +0000 (07:28 +0000)
13 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/ftgl-2.1.2.sh [deleted file]
config_files/ftgl.sh [new file with mode: 0755]

index 36626e8317b309783059c22ad0456c234a667ff3..2855fe874c21e5e8a89cba80f1a2148265f6328d 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index f51ac0ebbc0eef2721c16fc2b35bff032fe36734..e648eadc6fe4b1d0eb094c916e12e7dde48cf172 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index d728cc3163d6fd60ee1456fc2ca2c873642212ec..8f8a99c50b7ff275a43e7a7b20d0a8f523b34e9a 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index ac49a92f82a6bd4ad11953dbe079aefe08e0e28f..74ba246f4d1fa33f912385b5443c078897e55432 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index 199967549ffff27ffbbbab392fc55a08185af8c2..9fed88daa9ceb65568fd45f8382ac1bb6666232f 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index 81702fcb1e1afc58e53bc8335e55cf5769158344..d5f81e0ddb529ba2d381d26446ee9ba1efa4feca 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index dc65fc44cd3db13ee7fdf46936ca339dd597d429..28935a63b7f00e6dd148114adaed54262412b7df 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index 4000527ca8c7d8d4092527000ed832087cdf4746..9136be04013f321d8fd8633e7f6bfa851389eb3d 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index 795fc26192458b10e4ece9ad3a59f501a7289dcd..08ac83bc6fbb55a52cd41c05787b2f7b050c3aaa 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index ba884ba28a82489a978b9535bc57b22bf9e1a11a..3cc6cfa5081016d964719df42f8b7dd2adb57c5f 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
index 0e7f149bf0d67981e2cc8fd930008085789373b6..4367064241081aee8c698e5c0d33d66e56b3514a 100755 (executable)
                     version="2.1.2" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="ftgl-2.1.2.sh"/>
+                   script="ftgl.sh"/>
     </product>
     <product name="freeimage"
             type="prerequisite"
diff --git a/config_files/ftgl-2.1.2.sh b/config_files/ftgl-2.1.2.sh
deleted file mode 100755 (executable)
index 093c5c4..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : ftgl-2.1.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.
-#
-####################################################################################
-
-FTGL_REF_VERSION="2.1.2"
-
-check_version()
-{
-# check existance of FTGL and its version
-if [ -n ${FTGLDIR} ]; then
-  return 0
-fi
-ver=`${PRODUCT_SRC_DIR}/configure --version | grep "FTGL configure" | awk '{ print $3}'`
-if [ "$ver" == "${FTGL_REF_VERSION}" ] ; then
-    return 0
-fi
-return 1
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export FTGLDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${FTGLDIR}/bin:\$PATH 
-export LD_LIBRARY_PATH=\${FTGLDIR}/lib:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-#$DELIM ${PRODUCT_TYPE}_src $DELIM
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-# unpack
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# 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}/unix
-
-FTGL_CONFIGURE_OPTIONS=""
-
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --enable-shared=yes --prefix=${PRODUCT_DIR}"
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-freetype-prefix=${FREETYPEDIR}"
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-inc=/usr/include"
-
-if test `uname -m` = "x86_64" ; then
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-lib=/usr/lib64"
-else
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-lib=/usr/lib"
-fi
-
-#congigure
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure ${FTGL_CONFIGURE_OPTIONS}
-
-# compile
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-
-# install
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install 
-
-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}
-
-### modifing la files
-cd ${PRODUCT_DIR}/lib
-sed -e 's%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype\3%g' \
-    -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libftgl.la > 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 (executable)
index 0000000..fe32a74
--- /dev/null
@@ -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 <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export FTGLDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${FTGLDIR}/bin:\$PATH 
+export LD_LIBRARY_PATH=\${FTGLDIR}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# 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}/unix
+
+FTGL_CONFIGURE_OPTIONS=""
+
+FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --enable-shared=yes --prefix=${PRODUCT_DIR}"
+FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-freetype-prefix=${FREETYPEDIR}"
+FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-inc=/usr/include"
+
+if test `uname -m` = "x86_64" ; then
+    FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-lib=/usr/lib64"
+else
+    FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-lib=/usr/lib"
+fi
+
+# congigure
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure ${FTGL_CONFIGURE_OPTIONS}
+
+# compile
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+
+# install
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install 
+
+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}
+
+### modifing la files
+cd ${PRODUCT_DIR}/lib
+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 -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
+}
+
+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_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