From 23e0970f4d235ebc5f8544c4124b880b2572caba Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 17 May 2006 09:02:27 +0000 Subject: [PATCH] Merge from SALOME_3_DS branch --- config_files/VTK-4.2.2.sh | 172 ++++++++++++++++++++++++++++++++ config_files/graphviz-1.9.sh | 105 ++++++++++++++++++++ config_files/omniORB-4.0.6.sh | 179 ++++++++++++++++++++++++++++++++++ config_files/qt-3.3.4.sh | 152 +++++++++++++++++++++++++++++ 4 files changed, 608 insertions(+) create mode 100755 config_files/VTK-4.2.2.sh create mode 100755 config_files/graphviz-1.9.sh create mode 100755 config_files/omniORB-4.0.6.sh create mode 100755 config_files/qt-3.3.4.sh diff --git a/config_files/VTK-4.2.2.sh b/config_files/VTK-4.2.2.sh new file mode 100755 index 0000000..1c1404d --- /dev/null +++ b/config_files/VTK-4.2.2.sh @@ -0,0 +1,172 @@ +#!/bin/sh + +check_version() +{ +if [ -z "$VTKHOME" ]; then + return 1 +fi +check_lib_version libvtkCommon.so ${VTKHOME}/lib/vtk +if [ "$?" -eq "0" ]; then + return 0 +fi +return 1 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKEcmake.LOG < ${PRODUCT_DIR}/CONFIGURE.LOG < ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +#du -sk ${INSTALL_WORK}/cmake-1.6.6 >> ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK} ${INSTALL_WORK}/cmake-1.6.6 + +# set correct symbolic links - bug of python wrappings installation +cd ${PRODUCT_DIR}/lib/python${python_version}/site-packages/vtk_python +ln -sf ../../../vtk/*Python*.so . + +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/VTK-4.2.2.tar.gz -C ${INSTALL_ROOT} + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="vtk" ; fi +export PRODUCT="VTK-4.2.2" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE diff --git a/config_files/graphviz-1.9.sh b/config_files/graphviz-1.9.sh new file mode 100755 index 0000000..a3dea55 --- /dev/null +++ b/config_files/graphviz-1.9.sh @@ -0,0 +1,105 @@ +#!/bin/sh + +check_version() +{ +isdot=`which dot 2>/dev/null` +if [ -n "$isdot" ]; then + ver=`dot -V 2>&1 | awk '{print $3}'` + if [ "$ver" == "1.9" ]; then + return 0 + fi +fi +return 1 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK} +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/graphviz-1.9.tar.gz -C ${INSTALL_ROOT} +cd ${PRODUCT_DIR}/lib/graphviz +for l in `ls *.la`; do + libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" $l > _$l + libdir=`dirname $libdir` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" _$l > $l + rm -f _$l + chmod a+x $l +done + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="graphviz" ; fi +export PRODUCT="graphviz-1.9" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE diff --git a/config_files/omniORB-4.0.6.sh b/config_files/omniORB-4.0.6.sh new file mode 100755 index 0000000..97df94d --- /dev/null +++ b/config_files/omniORB-4.0.6.sh @@ -0,0 +1,179 @@ +#!/bin/sh + +check_version() +{ +if [ -z "${OMNIORBDIR}" ]; then + #echo "OMNIORBDIR doesn't set" + return 1 +fi +python_version="`python -c 'import sys; print sys.version[:3]'`" +check_lib_version libomniORB4.so.0.6 ${OMNIORBDIR}/lib +if [ "$?" -ne "0" ]; then + return 1 +fi +check_lib_version _omnipymodule.so.2.6 ${OMNIORBDIR}/lib/python${python_version}/site-packages +if [ "$?" -ne "0" ]; then + return 1 +fi +return 0 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/.omniORB.cfg < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKE_OMNIORB.LOG <> ${PRODUCT_DIR}/MAKE_OMNIORBPY.LOG <> ${PRODUCT_DIR}/MAKE_OMNINOTIFY.LOG < _omniidl +mv -f _omniidl omniidl +chmod a+x omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py +mv -f _omniidlrun.py omniidlrun.py +chmod a+x omniidlrun.py + +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR} +rm -fr ${INSTALL_WORK}/omniORB-4.0.5 +rm -fr ${INSTALL_WORK}/omniORBpy-2.5 +rm -fr ${INSTALL_WORK}/omniNotify +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/omniORB-4.0.5.tar.gz -C ${INSTALL_ROOT} + +ln -sf ${PRODUCT_DIR} ${INSTALL_ROOT}/omni + +cd ${PRODUCT_DIR}/bin +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidl > _omniidl +mv -f _omniidl omniidl +chmod a+x omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py +mv -f _omniidlrun.py omniidlrun.py +chmod a+x omniidlrun.py + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="omni" ; fi +export PRODUCT="omniORB-4.0.5" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE diff --git a/config_files/qt-3.3.4.sh b/config_files/qt-3.3.4.sh new file mode 100755 index 0000000..dc281b8 --- /dev/null +++ b/config_files/qt-3.3.4.sh @@ -0,0 +1,152 @@ +#!/bin/sh + +check_version(){ +if [ -z "$QTDIR" ]; then + return 1 +fi +ver=`grep "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'` +if [ "$ver" == "3.3.4" ] ; then + return 0 +fi +return 1 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < configure +chmod +x configure + +export QTDIR=${PRODUCT_WORK} +export LD_LIBRARY_PATH=${QTDIR}/lib:$LD_LIBRARY_PATH + +# basic flags +QT_FLAGS="-release -thread -shared -qt-gif -platform linux-g++" +# use system graphics libraries +QT_FLAGS=$QT_FLAGS" -system-libjpeg -system-libpng -system-libmng -qt-imgfmt-jpeg -qt-imgfmt-png -qt-imgfmt-mng -lpng -lmng -ljpeg" +# prefix + +check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure $QT_FLAGS -prefix ${PRODUCT_DIR} + +sed -e "s%^all: symlinks src-qmake src-moc sub-src sub-tools sub-tutorial sub-examples%all: symlinks src-qmake src-moc sub-src sub-tools%g" Makefile > _Makefile +mv -f _Makefile Makefile + +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK} +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/qt-3.3.4.tar.gz -C ${INSTALL_ROOT} + +cd ${PRODUCT_DIR}/lib +sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libqt-mt.la > libqt-mt.la.new +mv -f libqt-mt.la.new libqt-mt.la +cd ${PRODUCT_DIR}/lib/pkgconfig +sed -e "s%^prefix=\(.*\)%prefix=${PRODUCT_DIR}%g" qt-mt.pc > qt-mt.pc.new +mv -f qt-mt.pc.new qt-mt.pc + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="qt" ; fi +export PRODUCT="qt-3.3.4" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE -- 2.39.2