]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for freetype (2.3.7)
authorinv <inv@opencascade.com>
Tue, 3 Apr 2012 16:49:27 +0000 (16:49 +0000)
committerinv <inv@opencascade.com>
Tue, 3 Apr 2012 16:49:27 +0000 (16:49 +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/freetype-2.3.7.sh [deleted file]
config_files/freetype.sh [new file with mode: 0755]

index 36f080256063e00e6fae0900521ab6f68f0838b2..55d5affb997c559683198000d4f80ab98449dec6 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index ae42fa622551eac7249389b1f90bc300c7b5002e..076be2979e44062158d3c62a4a311fcacb967ca3 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index 6a2904eba3f4de5f80efb87d1461912ed827877c..05f0c7d46a06d61d6e2d5dcf083f08e8030199c5 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index 21133f7ffa0fd53abaf03e01ab0d0a3bfc0fc6f7..455ebdbb805da0c5806ed25c0be2b7fca09986b5 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index be01137fc11932a0c3161259159abba261a88f46..2411c1b1540541e981aeebe7bca373555e8a415a 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index ffd5efa7d466bb68f2a8466e3c09d3c2cac9b317..f90277ff3f31e02823d1f4c71a0092f41d38f8ec 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index 73307612aff1abe8da491b6e19027b66c5b0df6c..88086573e1b6c27e2016e873fcf2fe7bd3475dcc 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index bf8db0d7c51f786a6954972dbaa6a4ceb7610448..73370416e6f2b32190e7a03eac4d51d9214cda56 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index fa3e77191346268a0fe2131a762bc1a4f03ed99c..101a5fd33b77fa5cee0902df13e8933f4f0f186f 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index e677ef0cf0dc5e78e196eae4784123316e0ef46b..9e177cf66d94dcc1235901260248bd2b98b867a3 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
index 8ccd440da4cf1755e2327cf5ae98baf08ba7a79d..fa08bb33ab64ddfd3b29123f54c15dd423157396 100755 (executable)
                     version="2.3.7" 
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="freetype-2.3.7.sh"/>
+                   script="freetype.sh"/>
     </product>
     <product name="ftgl"
             type="prerequisite"
diff --git a/config_files/freetype-2.3.7.sh b/config_files/freetype-2.3.7.sh
deleted file mode 100755 (executable)
index 9993c87..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : freetype-2.3.7.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.
-#
-####################################################################################
-
-FREETYPE_REF_VERSION="2.3.7"
-
-check_version()
-{
-# check existance of freetype and its version
-if [ -n ${FREETYPEDIR} ]; then
-  return 0
-fi
-ver=`${PRODUCT_SRC_DIR}/configure --version | grep "FreeType configure" | awk '{ print $3}'`
-if [ "$ver" == "${FREETYPE_REF_VERSION}" ] ; then
-    return 0
-fi
-return 1
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export FREETYPEDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export LD_LIBRARY_PATH=\${FREETYPEDIR}/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}
-FREETYPE_CONFIGURE_OPTIONS=""
-if test `uname -m` = "x86_64" ; then
-FREETYPE_CONFIGURE_OPTIONS="${FREETYPE_CONFIGURE_OPTIONS} CFLAGS='-m64 -fPIC' CPPFLAGS='-m64 -fPIC'"
-fi
-
-FREETYPE_CONFIGURE_OPTIONS="${FREETYPE_CONFIGURE_OPTIONS} --prefix=${PRODUCT_DIR}"
-
-#congigure
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure ${FREETYPE_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%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" libfreetype.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="freetype-${FREETYPE_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/freetype.sh b/config_files/freetype.sh
new file mode 100755 (executable)
index 0000000..b852bc5
--- /dev/null
@@ -0,0 +1,145 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : freetype.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.
+#
+####################################################################################
+
+#
+# freetype version
+#
+FREETYPE_VERSION=2.3.7
+
+check_version()
+{
+# check existance of freetype and its version
+if [ "${FREETYPEDIR}" != "" ] && [ -f ${FREETYPEDIR}/include/freetype2/freetype/freetype.h ] ; then
+    ver_major=`grep "#define FREETYPE_MAJOR" ${FREETYPEDIR}/include/freetype2/freetype/freetype.h | awk '{print $3}'`
+    ver_minor=`grep "#define FREETYPE_MINOR" ${FREETYPEDIR}/include/freetype2/freetype/freetype.h | awk '{print $3}'`
+    ver_maint=`grep "#define FREETYPE_PATCH" ${FREETYPEDIR}/include/freetype2/freetype/freetype.h | awk '{print $3}'`
+    ver="$ver_major.$ver_minor.$ver_maint"
+    if [ "$ver" == "${FREETYPE_VERSION}" ] ; then
+        return 0
+    fi
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export FREETYPEDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export LD_LIBRARY_PATH=\${FREETYPEDIR}/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}
+FREETYPE_CONFIGURE_OPTIONS=""
+if test `uname -m` = "x86_64" ; then
+FREETYPE_CONFIGURE_OPTIONS="${FREETYPE_CONFIGURE_OPTIONS} CFLAGS='-m64 -fPIC' CPPFLAGS='-m64 -fPIC'"
+fi
+
+FREETYPE_CONFIGURE_OPTIONS="${FREETYPE_CONFIGURE_OPTIONS} --prefix=${PRODUCT_DIR}"
+
+#congigure
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure ${FREETYPE_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%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" libfreetype.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="freetype-${FREETYPE_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