]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Implementation of CASCADE version 6.1.2a2
authormaintenance team <salome-mnt@opencascade.com>
Wed, 8 Nov 2006 10:19:38 +0000 (10:19 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 8 Nov 2006 10:19:38 +0000 (10:19 +0000)
12 files changed:
config.xml
config_Debian_3.1.xml
config_Mandrake_10.1.xml
config_Mandriva_2006.0.xml
config_Mandriva_2006.0_64.xml
config_RedHatEnterprise_4.xml
config_RedHat_8.0.xml
config_RedHat_9.xml
config_Scientific_4.2.xml
config_Scientific_4.3.xml
config_files/CAS-6.1.2a.sh [deleted file]
config_files/CAS-6.1.2a2.sh [new file with mode: 0755]

index 36ef0b6d9ea4bdcc0c727415468369836ec657f5..091589a7d1029376f76454f36eb60b0a567fd770 100644 (file)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index 16dfd5c283eda250f4822ea8e7d32607c3ddd08b..6606a53b6a567f130906c69ed926b10666f1c38e 100755 (executable)
           temporarydiskspace="27724"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index 34ebe3a7934ee27ed87c3f1d404f7a484bb553ef..7bd773c2437e98e25e7ac4fac3dc1d47152d4b17 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index d0a0aaa3fa6ea660f026dae8a5a8ce188aae2a21..a534547cbf5341bbf2d2c13cb011ab3f322e1e7b 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index e37c0fdf3edf16392ef9938be0aae56bfe8c13cb..9780abc394e48e2b061702090e0942d61345d3b3 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="239924"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index 1f5676f1db9bbb221167eb031f4c61b38cf3c06c..df5538b315aba79f13c5ad0c504d94af67d1b77c 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index af53d5681ccdf2dd70ca3e85ec4c6c548c2759ce..e293052ffaf6d773bee04cb9f9908834eb74e5bd 100755 (executable)
           temporarydiskspace="27512"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="207372"
           temporarydiskspace="844120"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="0.4.1" 
            description="2-D plotting extension for Qt library"
index 0ce5e626fd02843f7595846cd87ce3658604f902..f53441dc7294e96122823ee788c087af244842c0 100755 (executable)
           temporarydiskspace="27512"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="207372"
           temporarydiskspace="844120"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="0.4.1" 
            description="2-D plotting extension for Qt library"
index 68dcd421cab4b823e7fe38c143b144cec0545d1b..4a39a1c7ac7065f50155f9d2a0d26af31e4894f4 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
index 69624680562b2876b7c76ab42d8cb85b65384bad..96c4a9b91c38adab705f7e29d9d171073ecc3a89 100755 (executable)
           temporarydiskspace="25500"
           script="SWIG-1.3.24.sh"/>
   <product name="OpenCascade" 
-           version="6.1.2a" 
-           description="Open CASCADE version 6.1.2a"
+           version="6.1.2a2
+           description="Open CASCADE version 6.1.2a2"
            install="install binaries"
           supported="install sources,install binaries"
           disable="false"
           dependancies="gcc,tcltk"
           installdiskspace="217388"
           temporarydiskspace="980538"
-          script="CAS-6.1.2a.sh"/>
+          script="CAS-6.1.2a2.sh"/>
   <product name="Qwt" 
            version="4.2.0" 
            description="2-D plotting extension for Qt library"
diff --git a/config_files/CAS-6.1.2a.sh b/config_files/CAS-6.1.2a.sh
deleted file mode 100755 (executable)
index 831310d..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-#!/bin/sh
-
-####################################################################################
-#  File      : CAS-6.1.2a.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-2006 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version()
-{
-if [ -z "$CASROOT" ]; then
-    return 1
-fi
-check_lib_version ${CASROOT}/inc/Standard_Version.hxx
-if [ "$?" -ne "0" ] ; then
-    return 1
-fi
-ver_major=`grep "#define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
-ver_minor=`grep "#define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
-ver_maint=`grep "#define OCC_VERSION_MAINTENANCE" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
-ver="$ver_major.$ver_minor.$ver_maint"
-if [ "$ver" == "6.1.1" ] ; then
-    return 0
-fi
-return 1
-}
-
-print_env()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export CASROOT=\${INSTALL_ROOT}/${PRODUCT}
-export PATH=\${CASROOT}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${CASROOT}/lib:\${CASROOT}/lin/lib:\${LD_LIBRARY_PATH}
-# Variable for Foundation Classes : 
-export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-export CSF_SHMessageStd=\${CASROOT}/src/SHMessageStd
-export CSF_XSMessage=\${CASROOT}/src/XSMessage 
-# Variable for Font : 
-export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT 
-export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures 
-# Activation of OCCT Kernel multithreading :
-export MMGT_REENTRANT=1
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if [ $? -eq 0 ] ; then
-    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export CASROOT=${CASROOT}
-export PATH=\${CASROOT}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${CASROOT}/lib:\${CASROOT}/lin/lib:\${LD_LIBRARY_PATH}
-# Variable for Foundation Classes : 
-export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-export CSF_SHMessageStd=\${CASROOT}/src/SHMessageStd
-export CSF_XSMessage=\${CASROOT}/src/XSMessage 
-# Variable for Font : 
-export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT 
-export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures 
-##
-EOF
-    make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-    return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-# unpack
-check_jb tar xfz ${SOURCE_DIR}/CAS-6.1.2a.tar.gz -C ${INSTALL_WORK}
-cd ${PRODUCT_WORK}
-
-# configure
-  if test `uname -m` = "x86_64" ; then
-flags="CFLAGS=-m64 CXXFLAGS=-m64"
-flags="$flags --with-gl-include=/usr/include --with-gl-library=/usr/X11R6/lib64"
-flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
-flags="$flags --with-xmu-library=/usr/X11R6/lib64"
-else
-flags="--with-gl-include=/usr/include --with-gl-library=/usr/lib"
-flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
-flags="$flags --with-xmu-library=/usr/X11R6/lib"
-  fi
-tcldir="`where_tcl`"
-if [ $? -eq 0 ] ; then flags="$flags --with-tcl=$tcldir"; fi
-tkdir="`where_tk`"
-if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi
-dpsdir="`where_dps`"
-if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi
-flags="$flags --disable-debug --enable-production"
-
-export CASROOT=${PRODUCT_WORK}
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure $flags --prefix=${PRODUCT_DIR}
-
-# make
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make -j4 install-strip
-
-# copy includes
-cp -fr inc ${PRODUCT_DIR}
-cp -f config.h ${PRODUCT_DIR}
-(cd ${PRODUCT_DIR}/inc; ln -fs ../config.h config.h)
-# copy resources
-makedir ${PRODUCT_DIR}/src
-cp -rp src/UnitsAPI ${PRODUCT_DIR}/src
-cp -rp src/SHMessage ${PRODUCT_DIR}/src
-cp -rp src/FontMFT ${PRODUCT_DIR}/src
-cp -rp src/Textures ${PRODUCT_DIR}/src
-cp -rp src/XSMessage ${PRODUCT_DIR}/src
-cp -rp src/DrawResources ${PRODUCT_DIR}/src
-(cd ${PRODUCT_DIR}; mkdir -p Linux; cd Linux; ln -fs ../lib lib; ln -fs ../bin bin)
-(cd ${PRODUCT_DIR}; mkdir -p lin;   cd lin;   ln -fs ../lib lib; ln -fs ../bin bin)
-
-#du -sk ${PRODUCT_WORK} > ${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}/CAS-6.1.2a.tar.gz -C ${INSTALL_ROOT}
-ldir=${PRODUCT_DIR}/lib
-if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/Linux/lib; fi
-if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/lin/lib; fi
-cd $ldir
-tcldir=`printenv TCLHOME`
-for l in X `find . -name "*.la"`; do
-    if [ "$l" != "X" ] ; then
-       l=`basename $l`
-       libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
-       sed -e "s%${libdir}%${ldir}%g" $l > _$l
-       mv -f _$l $l
-       if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then
-           sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}/lib%g" $l > _$l
-           mv -f _$l $l
-       fi
-       chmod a+x $l
-    fi
-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="cas" ; fi
-export PRODUCT="CAS-6.1.2a"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/CAS-6.1.2a2.sh b/config_files/CAS-6.1.2a2.sh
new file mode 100755 (executable)
index 0000000..4871532
--- /dev/null
@@ -0,0 +1,187 @@
+#!/bin/sh
+
+####################################################################################
+#  File      : CAS-6.1.2a2.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-2006 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version()
+{
+if [ -z "$CASROOT" ]; then
+    return 1
+fi
+check_lib_version ${CASROOT}/inc/Standard_Version.hxx
+if [ "$?" -ne "0" ] ; then
+    return 1
+fi
+ver_major=`grep "#define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver_minor=`grep "#define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver_maint=`grep "#define OCC_VERSION_MAINTENANCE" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
+ver="$ver_major.$ver_minor.$ver_maint"
+if [ "$ver" == "6.1.1" ] ; then
+    return 0
+fi
+return 1
+}
+
+print_env()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CASROOT=\${INSTALL_ROOT}/${PRODUCT}
+export PATH=\${CASROOT}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${CASROOT}/lib:\${CASROOT}/lin/lib:\${LD_LIBRARY_PATH}
+# Variable for Foundation Classes : 
+export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
+export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat 
+# Variable for DataExchange : 
+export CSF_SHMessageStd=\${CASROOT}/src/SHMessageStd
+export CSF_XSMessage=\${CASROOT}/src/XSMessage 
+# Variable for Font : 
+export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT 
+export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures 
+# Activation of OCCT Kernel multithreading :
+export MMGT_REENTRANT=1
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+}
+
+# looks for the native product and collects it's environment (used by make_env())
+try_native(){
+check_version
+if [ $? -eq 0 ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CASROOT=${CASROOT}
+export PATH=\${CASROOT}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${CASROOT}/lib:\${CASROOT}/lin/lib:\${LD_LIBRARY_PATH}
+# Variable for Foundation Classes : 
+export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
+export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat 
+# Variable for DataExchange : 
+export CSF_SHMessageStd=\${CASROOT}/src/SHMessageStd
+export CSF_XSMessage=\${CASROOT}/src/XSMessage 
+# Variable for Font : 
+export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT 
+export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures 
+##
+EOF
+    make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+    return 0
+fi
+return 1;
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+makedir ${PRODUCT_DIR}
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/CAS-6.1.2a2.tar.gz -C ${INSTALL_WORK}
+cd ${PRODUCT_WORK}
+
+# configure
+  if test `uname -m` = "x86_64" ; then
+flags="CFLAGS=-m64 CXXFLAGS=-m64"
+flags="$flags --with-gl-include=/usr/include --with-gl-library=/usr/X11R6/lib64"
+flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
+flags="$flags --with-xmu-library=/usr/X11R6/lib64"
+else
+flags="--with-gl-include=/usr/include --with-gl-library=/usr/lib"
+flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
+flags="$flags --with-xmu-library=/usr/X11R6/lib"
+  fi
+tcldir="`where_tcl`"
+if [ $? -eq 0 ] ; then flags="$flags --with-tcl=$tcldir"; fi
+tkdir="`where_tk`"
+if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi
+dpsdir="`where_dps`"
+if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi
+flags="$flags --disable-debug --enable-production"
+
+export CASROOT=${PRODUCT_WORK}
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure $flags --prefix=${PRODUCT_DIR}
+
+# make
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make -j4 install-strip
+
+# copy includes
+cp -fr inc ${PRODUCT_DIR}
+cp -f config.h ${PRODUCT_DIR}
+(cd ${PRODUCT_DIR}/inc; ln -fs ../config.h config.h)
+# copy resources
+makedir ${PRODUCT_DIR}/src
+cp -rp src/UnitsAPI ${PRODUCT_DIR}/src
+cp -rp src/SHMessage ${PRODUCT_DIR}/src
+cp -rp src/FontMFT ${PRODUCT_DIR}/src
+cp -rp src/Textures ${PRODUCT_DIR}/src
+cp -rp src/XSMessage ${PRODUCT_DIR}/src
+cp -rp src/DrawResources ${PRODUCT_DIR}/src
+(cd ${PRODUCT_DIR}; mkdir -p Linux; cd Linux; ln -fs ../lib lib; ln -fs ../bin bin)
+(cd ${PRODUCT_DIR}; mkdir -p lin;   cd lin;   ln -fs ../lib lib; ln -fs ../bin bin)
+
+#du -sk ${PRODUCT_WORK} > ${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}/CAS-6.1.2a2.tar.gz -C ${INSTALL_ROOT}
+ldir=${PRODUCT_DIR}/lib
+if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/Linux/lib; fi
+if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/lin/lib; fi
+cd $ldir
+tcldir=`printenv TCLHOME`
+for l in X `find . -name "*.la"`; do
+    if [ "$l" != "X" ] ; then
+       l=`basename $l`
+       libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+       sed -e "s%${libdir}%${ldir}%g" $l > _$l
+       mv -f _$l $l
+       if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then
+           sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}/lib%g" $l > _$l
+           mv -f _$l $l
+       fi
+       chmod a+x $l
+    fi
+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="cas" ; fi
+export PRODUCT="CAS-6.1.2a2"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+$PROCEDURE