]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Support Fedora Core 6
authorvsr <vsr@opencascade.com>
Tue, 20 May 2008 12:26:51 +0000 (12:26 +0000)
committervsr <vsr@opencascade.com>
Tue, 20 May 2008 12:26:51 +0000 (12:26 +0000)
config_FedoraCore_6.xml [new file with mode: 0755]
config_files/CAS-6.2sp3.sh
config_files/Python-2.4.3.sh [new file with mode: 0755]
config_files/VTK-4.2.6.sh
config_files/common.sh
config_files/med-2.2.3.sh
config_files/patches/vtk-4.2.6-gcc-4.1.patch [new file with mode: 0755]
config_files/qt-3.3.6.sh

diff --git a/config_FedoraCore_6.xml b/config_FedoraCore_6.xml
new file mode 100755 (executable)
index 0000000..d59974f
--- /dev/null
@@ -0,0 +1,666 @@
+<document>
+  <config version="3.2.10"
+         caption="SALOME v%1"
+          copyright="&lt;h5>Copyright (C) 2002-2008 OPEN CASCADE,&lt;br>EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&amp;D,&lt;br>LEG, PRINCIPIA R&amp;D, BUREAU VERITAS&lt;/h5>"
+          license="&lt;h5>GNU LGPL&lt;/h5>"
+         os="Fedora6"/>
+  <path targetdir="${HOME}/salome_3.2.10"
+        tempdir="/tmp"/>
+  <button label="Launch SALOME"
+          tooltip="Click this button to launch SALOME"
+          script="start_salome.sh"
+         disable="false"/>
+  <button label="Release Notes"
+          tooltip="Click this button to read release notes"
+          script="release_notes.sh"
+         disable="false"/>
+  <product name="gcc" 
+           version="4.1.1" 
+           description="GNU Compiler Collection"
+           install="use native"
+          supported="use native"
+          disable="false"
+          dependancies=""
+          installdiskspace="0"
+          temporarydiskspace="0"
+          script="gcc-4.1.1.sh"/>
+  <product name="tcltk" 
+           version="8.4.13" 
+           description="Tcl/Tk library"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc"
+          installdiskspace="22962"
+          temporarydiskspace="43342"
+          script="tcltk-8.4.13.sh"/>
+  <product name="Python" 
+           version="2.4.3" 
+           description="Python language interpreter"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc"
+          installdiskspace="39887"
+          temporarydiskspace="45743"
+          script="Python-2.4.3.sh"/>
+  <product name="Qt" 
+           version="3.3.6" 
+           description="Multiplatform C++ GUI application framework"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc"
+          installdiskspace="50715"
+          temporarydiskspace="133413"
+          script="qt-3.3.6.sh"/>
+  <product name="msg2qm"
+           version="" 
+           description="Qt's resources compiler"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Qt"
+          installdiskspace="15"
+          temporarydiskspace="30"
+          script="msg2qm.sh"/>
+  <product name="Sip"
+           version="4.2.1" 
+           description="C++ to Python bindings generation tool"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python,Qt"
+          installdiskspace="279"
+          temporarydiskspace="2057"
+          script="sip-4.2.1.sh"/>
+  <product name="PyQt"
+           version="3.14.1" 
+           description="Python bindings for Qt library"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python,Qt,Sip"
+          installdiskspace="9237"
+          temporarydiskspace="57196"
+          script="PyQt-3.14.1.sh"/>
+  <product name="boost"
+           version="1.32.0" 
+           description="Free peer-reviewed portable STL extension"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python"
+          installdiskspace="28778"
+          temporarydiskspace="92090"
+          script="BOOST-1.32.0.sh"/>
+  <product name="Swig" 
+           version="1.3.24" 
+           description="Simplified Wrapper and Interface Generator"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,Python,tcltk"
+          installdiskspace="3359"
+          temporarydiskspace="25500"
+          script="SWIG-1.3.24.sh"/>
+  <product name="OpenCascade" 
+           version="6.2sp3" 
+           description="Open CASCADE version 6.2sp3"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,tcltk"
+          installdiskspace="237087"
+          temporarydiskspace="980538"
+          script="CAS-6.2sp3.sh"/>
+  <product name="Qwt" 
+           version="4.2.0" 
+           description="2-D plotting extension for Qt library"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Qt"
+          installdiskspace="913"
+          temporarydiskspace="11948"
+          script="qwt-4.2.0.sh"/>
+  <product name="OmniORB"
+           version="4.0.7" 
+           description="Open source Object Request Broker (ORB) library that implements the 2.3 specification of the Common Object Request Broker Architecture (CORBA)"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python"
+          installdiskspace="30388"
+          temporarydiskspace="73360"
+          script="omniORB-4.0.7.sh"/>
+  <product name="Hdf" 
+           version="5-1.6.4" 
+           description="Hierarchical Data Format library"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc"
+          installdiskspace="3616"
+          temporarydiskspace="51085"
+          script="hdf5-1.6.4.sh"/>
+  <product name="Med"
+           version="2.2.3" 
+           description="MED format interface library"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Hdf"
+          installdiskspace="7422"
+          temporarydiskspace="15597"
+          script="med-2.2.3.sh"/>
+  <product name="Vtk"
+           version="4.2.6" 
+           description="Image processing, 3D graphics and visualization software system"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,tcltk,Python"
+          installdiskspace="35191"
+          temporarydiskspace="145300 "
+          script="VTK-4.2.6.sh"/>
+  <product name="Numeric"
+           version="23.7" 
+           description="Numerical extension to Python"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python"
+          installdiskspace="2403"
+          temporarydiskspace="7840"
+          script="Numeric-23.7.sh"/>
+  <product name="Graphviz"
+           version="2.2.1" 
+           description="Graph Drawing Programs set"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,tcltk"
+          installdiskspace="8741"
+          temporarydiskspace="44340"
+          script="graphviz-2.2.1.sh"/>
+  <product name="Doxygen"
+           version="1.4.7" 
+           description="Documentation system for C++, C, Java, IDL, etc."
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Qt,Graphviz"
+          installdiskspace="4475"
+          temporarydiskspace="32355"
+          script="doxygen-1.4.7.sh"/>
+  <product name="docutils"
+           version="0.3.7" 
+           description="Utilites for processing plaintext documentation"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python"
+          installdiskspace="1443"
+          temporarydiskspace="4147"
+          script="docutils-0.3.7.sh"/>
+  <product name="netgen" 
+           version="4.5"
+           description="Quadrangle meshing algorithmic tool"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,OpenCascade"
+          installdiskspace="5074"
+          temporarydiskspace="11936"
+          script="netgen-4.5.sh"/>
+  <product name="HXX2SALOME"
+           version="3.2.10" 
+           description="SALOME module generator"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Qt,HXX2SALOMEDOC"
+          installdiskspace="496"
+          temporarydiskspace="13328"
+          script="HXX2SALOME.sh"/>
+  <product name="HXX2SALOMEDOC"
+           version="3.2.10" 
+           description="SALOME module generator documentation"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies=""
+          installdiskspace="9621"
+          temporarydiskspace="9923"
+          script="HXX2SALOMEDOC.sh"/>
+  <product name="DOCUMENTATION"
+           version="3.2.10" 
+           description="SALOME documentation"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies=""
+          installdiskspace="205188"
+          temporarydiskspace="205188"
+          script="DOCUMENTATION.sh"/>
+  <product name="KERNELsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform KERNEL module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Numeric,Swig,Qt,Hdf,OmniORB,Doxygen,Graphviz,docutils"
+          installdiskspace="56800,11646"
+          temporarydiskspace="0"
+           pickupenv="true"
+          script="KERNEL_SRC.sh"/>
+  <product name="KERNELbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform KERNEL module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Numeric,Swig,Qt,Hdf,OmniORB,Doxygen,Graphviz,docutils"
+          installdiskspace="18741"
+          temporarydiskspace="0"
+           pickupenv="true"
+          script="KERNEL_BIN.sh"/>
+  <product name="GUIsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform GUI module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc"
+          installdiskspace="59831,10007"
+          temporarydiskspace="0"
+          script="GUI_SRC.sh"/>
+  <product name="GUIbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform GUI module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin"
+          installdiskspace="19761"
+          temporarydiskspace="0"
+          script="GUI_BIN.sh"/>
+  <product name="GEOMsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform GEOM modules sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc"
+          installdiskspace="143713,14729"
+          temporarydiskspace="0"
+          script="GEOM_SRC.sh"/>
+  <product name="GEOMbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform GEOM module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin"
+          installdiskspace="40373"
+          temporarydiskspace="0"
+          script="GEOM_BIN.sh"/>
+  <product name="MEDsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform MED module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc"
+          installdiskspace="244805,71792"
+          temporarydiskspace="0"
+          script="MED_SRC.sh"/>
+  <product name="MEDbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform MED module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin"
+          installdiskspace="104651"
+          temporarydiskspace="0"
+          script="MED_BIN.sh"/>
+  <product name="MEDWOGUIsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform MED module sources"
+           install="not install"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc"
+          installdiskspace="376032,71175"
+          temporarydiskspace="0"
+          script="MEDWOGUI_SRC.sh"/>
+  <product name="MEDWOGUIbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform MED module"
+           install="not install"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin"
+          installdiskspace="113068"
+          temporarydiskspace="0"
+          script="MEDWOGUI_BIN.sh"/>
+  <product name="SMESHsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform SMESH module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc,GEOMsrc,MEDsrc"
+          installdiskspace="176600,15785"
+          temporarydiskspace="0"
+          script="SMESH_SRC.sh"/>
+  <product name="SMESHbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform SMEHS module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin,GEOMbin,MEDbin"
+          installdiskspace="62712"
+          temporarydiskspace="0"
+          script="SMESH_BIN.sh"/>
+  <product name="VISUsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform VISU module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc,MEDsrc"
+          installdiskspace="78868,9956"
+          temporarydiskspace="0"
+          script="VISU_SRC.sh"/>
+  <product name="VISUbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform VISU module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin,MEDbin"
+          installdiskspace="28078"
+          temporarydiskspace="0"
+          script="VISU_BIN.sh"/>
+  <product name="SUPERVsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform SUPERV module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc"
+          installdiskspace="114754,6366"
+          temporarydiskspace="0"
+          script="SUPERV_SRC.sh"/>
+  <product name="SUPERVbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform SUPERV module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin"
+          installdiskspace="40268"
+          temporarydiskspace="0"
+          script="SUPERV_BIN.sh"/>
+  <product name="NETGENPLUGINsrc" 
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform NETGEN meshing algorithm plugin sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,netgen,KERNELsrc,GUIsrc,GEOMsrc,MEDsrc,SMESHsrc"
+          installdiskspace="26194,349"
+          temporarydiskspace="0"
+          script="NETGENPLUGIN_SRC.sh"/>
+  <product name="NETGENPLUGINbin" 
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform NETGEN meshing algorithm plugin"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,netgen,KERNELbin,GUIbin,GEOMbin,MEDbin,SMESHbin"
+          installdiskspace="9766"
+          temporarydiskspace="0"
+          script="NETGENPLUGIN_BIN.sh"/>
+  <product name="GHS3DPLUGINsrc" 
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform GHS3D meshing algorithm plugin sources. For use this plugin you should add the path to ghs3d to your PATH environment variable."
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,netgen,KERNELsrc,GUIsrc,GEOMsrc,MEDsrc,SMESHsrc"
+          installdiskspace="2750,1532"
+          temporarydiskspace="0"
+          script="GHS3DPLUGIN_SRC.sh"/>
+  <product name="GHS3DPLUGINbin" 
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform GHS3D meshing algorithm plugin. For use this plugin you should add the path to ghs3d to your PATH environment variable."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,netgen,KERNELbin,GUIbin,GEOMbin,MEDbin,SMESHbin"
+          installdiskspace="337"
+          temporarydiskspace="0"
+          script="GHS3DPLUGIN_BIN.sh"/>
+  <product name="COMPONENTsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform COMPONENT module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,MEDsrc"
+          installdiskspace="26242,2677"
+          temporarydiskspace="0"
+          script="COMPONENT_SRC.sh"/>
+  <product name="COMPONENTbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform COMPONENT module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,MEDbin"
+          installdiskspace="9471"
+          temporarydiskspace="0"
+          script="COMPONENT_BIN.sh"/>
+  <product name="PYCALCULATORsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform PYCALCULATOR module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,Python,OmniORB,Doxygen,Graphviz,KERNELsrc,MEDsrc"
+          installdiskspace="1550,1174"
+          temporarydiskspace="0"
+          script="PYCALCULATOR_SRC.sh"/>
+  <product name="PYCALCULATORbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform PYCALCULATOR module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,Python,OmniORB,Doxygen,Graphviz,KERNELbin,MEDbin"
+          installdiskspace="33"
+          temporarydiskspace="0"
+          script="PYCALCULATOR_BIN.sh"/>
+  <product name="CALCULATORsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME platform CALCULATOR module sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,OpenCascade,Python,Qt,Hdf,Med,OmniORB,Doxygen,Graphviz,KERNELsrc,MEDsrc"
+          installdiskspace="12149,1675"
+          temporarydiskspace="0"
+          script="CALCULATOR_SRC.sh"/>
+  <product name="CALCULATORbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME platform CALCULATOR module"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,OpenCascade,Python,Qt,Hdf,Med,OmniORB,Doxygen,Graphviz,KERNELbin,MEDbin"
+          installdiskspace="3865"
+          temporarydiskspace="0"
+          script="CALCULATOR_BIN.sh"/>
+  <product name="HELLOsrc" 
+           version="3.2.10" 
+           context="salome sources" 
+           description="Example SALOME C++ module (sources): Hello."
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELsrc,GUIsrc"
+          installdiskspace="8864,1444"
+          temporarydiskspace="0"
+          script="HELLO_SRC.sh"/>
+  <product name="HELLObin" 
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Example SALOME C++ module (binaries): Hello."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,boost,OpenCascade,Python,Swig,Qt,msg2qm,Qwt,Hdf,Med,Vtk,OmniORB,Sip,PyQt,Doxygen,Graphviz,KERNELbin,GUIbin"
+          installdiskspace="2583"
+          temporarydiskspace="0"
+          script="HELLO_BIN.sh"/>
+  <product name="PYHELLOsrc" 
+           version="3.2.10" 
+           context="salome sources" 
+           description="Example SALOME Python module (sources): Hello."
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,Python,msg2qm,OmniORB,KERNELsrc,GUIsrc"
+          installdiskspace="1445,1075"
+          temporarydiskspace="0"
+          script="PYHELLO_SRC.sh"/>
+  <product name="PYHELLObin" 
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Example SALOME Python module (binaries): Hello."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,Python,msg2qm,OmniORB,KERNELbin,GUIbin"
+          installdiskspace="34"
+          temporarydiskspace="0"
+          script="PYHELLO_BIN.sh"/>
+  <product name="LIGHTsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="LIGHT SALOME module example sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="gcc,Qt,msg2qm,Vtk,Doxygen,Graphviz,KERNELsrc,GUIsrc"
+          installdiskspace="2306,1612"
+          temporarydiskspace="0"
+          script="LIGHT_SRC.sh"/>
+  <product name="LIGHTbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled LIGHT SALOME platform module example"
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="gcc,Qt,msg2qm,Vtk,Doxygen,Graphviz,KERNELbin,GUIbin"
+          installdiskspace="154"
+          temporarydiskspace="0"
+          script="LIGHT_BIN.sh"/>
+  <product name="RANDOMIZERsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME-based module implement simple interface to calculate Sierpinsky fields sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="GUIsrc,VISUsrc,SUPERVsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="RANDOMIZER_SRC.sh"/>
+  <product name="RANDOMIZERbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME-based module implement simple interface to calculate Sierpinsky fields."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="GUIbin,VISUbin,SUPERVbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="RANDOMIZER_BIN.sh"/>
+  <product name="SIERPINSKYsrc"
+           version="3.2.10" 
+           context="salome sources" 
+           description="SALOME-based module implement simple interface to calculate Sierpinsky fields sources"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="GUIsrc,VISUsrc,SUPERVsrc,RANDOMIZERsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="SIERPINSKY_SRC.sh"/>
+  <product name="SIERPINSKYbin"
+           version="3.2.10" 
+           context="salome binaries" 
+           description="Precompiled SALOME-based module implement simple interface to calculate Sierpinsky fields."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="GUIbin,VISUbin,SUPERVbin,RANDOMIZERbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="SIERPINSKY_BIN.sh"/>
+  <product name="SAMPLES"
+           version="3.2.10"
+           context="salome sources,salome binaries" 
+           description="SALOME samples files"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies=""
+          installdiskspace="85147"
+          temporarydiskspace="0"
+          script="SAMPLES.sh"/>
+  <product name="xdata" 
+           version="0.5.53" 
+           description="Python module for types declaration in python classes"
+           install="install binaries"
+          supported="install sources,install binaries"
+          disable="false"
+          dependancies="gcc,Python,Qt,PyQt,OmniORB,Vtk,KERNELbin,GUIbin,MEDbin,GEOMbin"
+          installdiskspace="5615"
+          temporarydiskspace="11616"
+          script="xdata-0.5.53.sh"/>
+</document>
index 0b951cb280a8fdda317efb85e8bcd4bb139be95a..94bdbd3f8527276d06e7a1e1d1bb60e831abb1b1 100755 (executable)
@@ -99,37 +99,32 @@ cd ${PRODUCT_WORK}
 
 # configure
 
-is_mandriva2007=0
+# -- general flags: additional libs
+flags="$flags LDFLAGS=-lpthread"
 
-if [ -e /etc/issue ] ; then
-  grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
-fi
+# -- Xmu flags
+xmuincdir="`where_xmu_includes`"
+if [ $? -eq 0 ] ; then flags="$flags --with-xmu-include=$xmuincdir"; fi
+xmulibdir="`where_xmu_libs`"
+if [ $? -eq 0 ] ; then flags="$flags --with-xmu-library=$xmulibdir"; fi
 
-if [ $is_mandriva2007 == 1 ] ; then
-where_xmu_include=/usr/include/X11
-else
-where_xmu_include=/usr/X11R6/include/X11
-fi
-
-if test `uname -m` = "x86_64" ; then
-    flags="$flags --with-xmu-include=$where_xmu_include"
-    flags="$flags --with-xmu-library=/usr/X11R6/lib64"
-else
-    flags="$flags --with-xmu-include=$where_xmu_include"
-    flags="$flags --with-xmu-library=/usr/X11R6/lib"
-fi
-    flags="$flags LDFLAGS=-lpthread"
+# -- OpenGL flags
 glincdir="`where_gl_includes`"
 if [ $? -eq 0 ] ; then flags="$flags --with-gl-include=$glincdir"; fi
 gllibdir="`where_gl_libs`"
 if [ $? -eq 0 ] ; then flags="$flags --with-gl-library=$gllibdir"; fi
+
+# -- tcl/tk flags
 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
+
+# -- dps flags
 dpsdir="`where_dps`"
 if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi
+
+# -- other flags
 flags="$flags --disable-jcas --disable-debug --enable-production"
 
 export CASROOT=${PRODUCT_WORK}
diff --git a/config_files/Python-2.4.3.sh b/config_files/Python-2.4.3.sh
new file mode 100755 (executable)
index 0000000..87f244e
--- /dev/null
@@ -0,0 +1,201 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : Python-2.4.3.sh
+#  Created   : Wed Apr 11 16:10:00 2007
+#  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.
+#
+####################################################################################
+
+check_version()
+{
+if [ -z "$PYTHONHOME"  ]; then
+   return 1
+fi
+isPython=`which python 2>/dev/null`
+if [ -n "$isPython" ]; then
+  # version number is calculated as: <major>*10000+<minor>*100+<release>
+  # for Python 2.4.3 it is equal to 20403
+  ver=`python -V 2>&1`
+  ver=`echo $ver | awk '{print $2}' | awk -F. '{v1=0;v2=0;v3=0;if(NF>0)v1=$1;if(NF>1)v2=$2;if(NF>2)v3=$3;print v1*10000+v2*100+v3}'`
+  if [ $ver -eq 20403 ] ;  then 
+    return 0
+  fi
+fi
+return 1 
+}
+
+print_env()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYTHONHOME=\${INSTALL_ROOT}/${PRODUCT}
+export PATH=\${PYTHONHOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${PYTHONHOME}/lib:\${LD_LIBRARY_PATH}
+export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
+export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
+export PYTHONPATH=\${PYTHONHOME}/lib/python\${PYTHON_VERSION}:\${PYTHONPATH}
+##
+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(){
+pythonhome="`find_in_path python ${PATH}`"
+if [ -z "${pythonhome}" ] ; then
+    pythonhome="`find_in_path python /usr/bin`"
+fi
+if [ -n "${pythonhome}" ] ; then
+    pythonhome=`cd ${pythonhome}/..; pwd`
+    # get version number: <major>, <minor> and <release>
+    # <major> and <minor> numbers are checked strickly, but <release> number can be larger than required one
+    # version number is calculated as: <major>*10000+<minor>*100+<release>
+    # for Python 2.4.3 it is equal to 20403
+    ver=`python -V 2>&1`
+    maj_ver=`echo $ver | awk '{print $2}' | awk -F. '{if(NF>0) print $1; else print 0}'`
+    min_ver=`echo $ver | awk '{print $2}' | awk -F. '{if(NF>1) print $2; else print 0}'`
+    rel_ver=`echo $ver | awk '{print $2}' | awk -F. '{if(NF>2) print $3; else print 0}'`
+    let ver=$maj_ver*10000+$min_ver*100+$rel_ver
+    if [ $ver -ge 20403 ] ;  then 
+       tmp="\${PYTHONHOME}/bin ${pythonhome}/bin \${PATH} ${PATH}";  
+       path=`sort_path ${tmp}`
+       tmp="\${PYTHONHOME}/lib/python\${PYTHON_VERSION} ${pythonhome}/lib/python${maj_ver}.${min_ver} \${PYTHONPATH} ${PYTHONPATH}";  
+       pythonpath=`sort_path ${tmp}`
+       tmp="\${PYTHONHOME}/lib ${pythonhome}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";  
+       ld_library_path=`sort_path ${tmp}`
+       cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYTHONHOME=${pythonhome}
+export PATH=${path}
+export LD_LIBRARY_PATH=${ld_library_path}
+export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
+export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
+export PYTHONPATH=${pythonpath}
+##
+EOF
+       make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+#######       THIS COULD BE USED FOR STRICT COMPARISON  ##############################
+#      if [ $maj_ver -eq 2 ] && [ $min_ver -eq 4 ] && [ $rel_ver -eq 3 ] ;  then 
+######################################################################################
+       if [ $maj_ver -eq 2 ] && [ $min_ver -eq 4 ] && [ $rel_ver -ge 3 ] ;  then 
+           return 0
+       else
+           return 2
+       fi
+    fi
+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}
+
+if test `uname -m` = "x86_64" ; then
+    export PYTHON_ARCHIVE_PREFIX="-lib64"
+    export PYTHON_LIB_PREFIX="64"
+    export CFLAGS=-m64
+    export CXXFLAGS=-m64
+    PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared CFLAGS=-m64 CXXFLAGS=-m64"
+else
+    export PYTHON_ARCHIVE_PREFIX=""
+    PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared"
+fi
+
+check_jb tar xfz ${SOURCE_DIR}/Python-2.4.3${PYTHON_ARCHIVE_PREFIX}.tar.gz -C ${INSTALL_WORK}
+
+# apply patch for 64-bit platforms
+if test `uname -m` = "x86_64" ; then
+    if [ -f patches/Python-2.4.1-lib64.patch ] ; then
+       cp patches/Python-2.4.1-lib64.patch ${PRODUCT_WORK} 
+       ( cd ${PRODUCT_WORK} ;                   \
+         patch -p1 < Python-2.4.1-lib64.patch ; \
+         rm -rf aclocal.m4 ;                    \
+         aclocal >& /dev/null ;                 \
+         autoconf >& /dev/null ;                \
+         aclocal >& /dev/null ;                 \
+         autoconf >& /dev/null )
+    fi
+fi
+
+cd ${PRODUCT_WORK}
+
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
+    ./configure --prefix=${PRODUCT_DIR} $PYTHON_CONFIGURE_OPTIONS
+
+# vsr: force linking to libstdc++.so
+sed -e 's%\(^LIBS=.*\)%\1 -lstdc++%g' Makefile > _Makefile
+mv -f _Makefile Makefile
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make 
+check_job ${PRODUCT_DIR}/MAKINSTALL.LOG make install
+(cd ${PRODUCT_DIR}/lib${PYTHON_LIB_PREFIX}/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so)
+
+cd ${PRODUCT_DIR}/bin
+for sc in idle pydoc smtpd.py ; do
+    if [ -e $sc ] ; then
+       sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc"
+       mv -f _"$sc" "$sc"
+       chmod a+x "$sc"
+    fi
+done
+
+if test `uname -m` = "x86_64" ; then
+    ( cd ${PRODUCT_DIR}; ln -sf lib64 lib )
+fi
+
+#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}/Python-2.4.3.tar.gz -C ${INSTALL_ROOT}
+
+(cd ${PRODUCT_DIR}/lib/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so)
+
+cd ${PRODUCT_DIR}/bin
+for sc in idle pydoc smtpd.py ; do
+    if [ -e $sc ] ; then
+       sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc"
+       mv -f _"$sc" "$sc"
+       chmod a+x "$sc"
+    fi
+done
+
+print_env
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# -gt 5 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="python" ; fi
+export PRODUCT="Python-2.4.3"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+${PROCEDURE}
index a4c1bd5f559edd162b9043459fcbe5f4fcfe405b..c4a59e4e1023565a944093bedfedee97ff6f38c2 100755 (executable)
@@ -97,6 +97,18 @@ if [ -f patches/vtk-4.2.6-patented.patch ] ; then
     ( cd ${PRODUCT_WORK} ; patch -p1 < vtk-4.2.6-patented.patch )
 fi
 
+# apply a small patch for VTK (needed for gcc-3.4 and newer)
+if [ -f patches/vtk-4.2.6-gcc-4.1.patch ] ; then
+    cp patches/vtk-4.2.6-gcc-4.1.patch ${PRODUCT_WORK}
+    ( cd ${PRODUCT_WORK} ; patch -p1 < vtk-4.2.6-gcc-4.1.patch )
+else
+    cd ${PRODUCT_WORK}
+    sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkBMPReader.cxx > IO/vtkBMPReader.cxx.orig
+    mv -f IO/vtkBMPReader.cxx.orig IO/vtkBMPReader.cxx
+    sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkImageReader.cxx > IO/vtkImageReader.cxx.orig
+    mv -f IO/vtkImageReader.cxx.orig IO/vtkImageReader.cxx
+fi
+
 cd ${INSTALL_WORK}/cmake-1.6.6 
 
 check_job ${PRODUCT_DIR}/CONFIGUREcmake.LOG ./configure
@@ -107,12 +119,6 @@ check_job ${PRODUCT_DIR}/MAKEcmake.LOG make
 
 cd ${PRODUCT_WORK}
 
-# apply a small patch for VTK (needed for gcc-3.4)
-sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkBMPReader.cxx > IO/vtkBMPReader.cxx.orig
-mv -f IO/vtkBMPReader.cxx.orig IO/vtkBMPReader.cxx
-sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkImageReader.cxx > IO/vtkImageReader.cxx.orig
-mv -f IO/vtkImageReader.cxx.orig IO/vtkImageReader.cxx
-
 # get Python and tcl/tk version
 python_version="`python -c 'import sys; print sys.version[:3]'`"
 tcl_version=""
@@ -123,7 +129,7 @@ if [ $? -eq 0 ] && [ -e ${tcldir}/tclConfig.sh ] ; then
     tcl_version=`grep -e "TCL_VERSION=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_VERSION=[\'|\"]\(.*\)[\'|\"]%\1%g"`
     tcl_includes=`grep -e "TCL_INCLUDE_SPEC=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_INCLUDE_SPEC=[\'|\"]-I\(.*\)[\'|\"]%\1%g"`
     if [ -z "$tcl_includes" ] ; then tcl_includes=/usr/include ; fi
-    tcl_libs=`grep -e "TCL_PACKAGE_PATH=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_PACKAGE_PATH=[\'|\"]\(.*\)[\'|\"]%\1%g"`
+    tcl_libs=`grep -e "TCL_PACKAGE_PATH=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_PACKAGE_PATH=[\'|\"]\(.*\)[\'|\"]%\1%g" | awk '{print $1}'`
 fi
     
 VTK_CMAKE_OPTIONS=""
index 60f352b674dfb21c1818997189f97b3cab9df826..41821f7eb2be854ab1a81b6646f30a786f38229e 100755 (executable)
@@ -607,6 +607,30 @@ echo ""
 return 1
 }
 
+where_xmu_includes(){
+# search Xmu.h
+for d in /usr/X11R6/include/X11 /usr/include/X11 ; do
+    if [ -d ${d}/Xmu ] && [ -f ${d}/Xmu/Xmu.h ] ; then
+       echo "$d"
+       return 0
+    fi
+done
+echo ""
+return 1
+}
+
+where_xmu_libs(){
+# search libXmu.so
+for d in /usr/X11R6/lib64 /usr/lib64 /usr/X11R6/lib /usr/lib ; do
+    if [ "`ls ${d}/libXmu.so* 2>/dev/null`" ] ; then
+       echo "$d"
+       return 0
+    fi
+done
+echo ""
+return 1
+}
+
 modif_la_files(){
 ldir=$1
 if [ -z "$ldir" ] || [ ! -d "$ldir" ]; then return 1; fi
index 542c0607c1bf2b4adad02ebab4caa0f368870ca7..fd60025381c12b066c6fa7964a9ee565d834bba1 100755 (executable)
@@ -75,30 +75,25 @@ check_jb tar xfz ${SOURCE_DIR}/med_fichier2.2.3.src.tar.gz -C ${INSTALL_WORK}
 cd ${PRODUCT_WORK}
 makedir ${PRODUCT_DIR}
 
-#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
-is_mandriva=0
-is_fedora=0
-is_mandriva2007=0
-if [ -e /etc/redhat-release ] ; then
-  grep -e "Mandriva Linux release 2006.0" /etc/redhat-release > /dev/null
-  if [ $? == 0 ] ; then is_mandriva=1 ; fi
-  grep -e "Mandriva Linux release 2007.0" /etc/redhat-release > /dev/null
-  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
-  grep -e "Fedora Core release 4" /etc/redhat-release > /dev/null
-  if [ $? == 0 ] ; then is_fedora=1 ; fi
-fi
-if [ $is_mandriva2007 == 1 ] ; then
-chmod +w ./Makefile.am
-mv Makefile.am Makefile.am.orig
-sed -e 's/ include src tests tools doc / include src tools doc /g' Makefile.am.orig > Makefile.am
-fi
-if [ $is_mandriva == 1 ] || [ $is_mandriva2007 == 1 ] || [ $is_fedora == 1 ] ; then
+# check if -ffixed-line-length-none option is supported
+is_fixed_length=0
+cat > ${PRODUCT_WORK}/__test.f <<EOF
+       program test
+       print *,'TEST'
+       end
+EOF
+
+gcc -c -ffixed-line-length-none ${PRODUCT_WORK}/__test.f >/dev/null 2>&1
+if [ $? == 0 ] ; then is_fixed_length=1 ; fi
+rm -f ${PRODUCT_WORK}/__test.*
+
+if [ $is_fixed_length == 1 ] ; then
     if test `uname -m` = "x86_64" ; then
-    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
-    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+        echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+        ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
     else
-    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
-    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+        echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+        ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
     fi
     if [ "$?" -ne "0" ] ; then
       cat ${PRODUCT_DIR}/CONFIGURE.LOG
@@ -107,7 +102,19 @@ if [ $is_mandriva == 1 ] || [ $is_mandriva2007 == 1 ] || [ $is_fedora == 1 ] ; t
       exit 1
     fi
 else
-    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+    if test `uname -m` = "x86_64" ; then
+        echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+        ./configure --prefix=${PRODUCT_DIR} CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+    else
+        echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+        ./configure --prefix=${PRODUCT_DIR} >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+    fi
+    if [ "$?" -ne "0" ] ; then
+      cat ${PRODUCT_DIR}/CONFIGURE.LOG
+      cat ${INSTALL_WORK}/errlog >&2
+      cat ${INSTALL_WORK}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
+      exit 1
+    fi
 fi
 
 GCC=`which gcc`
diff --git a/config_files/patches/vtk-4.2.6-gcc-4.1.patch b/config_files/patches/vtk-4.2.6-gcc-4.1.patch
new file mode 100755 (executable)
index 0000000..79e36fb
--- /dev/null
@@ -0,0 +1,81 @@
+diff -Naur --exclude=CVS VTK-4.2.6/IO/vtkBMPReader.cxx VTK-4.2.6-patched/IO/vtkBMPReader.cxx
+--- VTK-4.2.6/IO/vtkBMPReader.cxx      2003-02-25 19:59:24.000000000 +0300
++++ VTK-4.2.6-patched/IO/vtkBMPReader.cxx      2007-04-11 18:59:41.000000000 +0400
+@@ -504,11 +504,11 @@
+         outPtr0 += outIncr[0];
+         }
+       // move to the next row in the file and data
+-      self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
++      self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip0, ios::beg);
+       outPtr1 += outIncr[1];
+       }
+     // move to the next image in the file and data
+-    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1, ios::beg);
++    self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip1, ios::beg);
+     outPtr2 += outIncr[2];
+     }
+diff -Naur --exclude=CVS VTK-4.2.6/IO/vtkImageReader.cxx VTK-4.2.6-patched/IO/vtkImageReader.cxx
+--- VTK-4.2.6/IO/vtkImageReader.cxx    2002-12-26 21:18:50.000000000 +0300
++++ VTK-4.2.6-patched/IO/vtkImageReader.cxx    2007-04-11 18:59:56.000000000 +0400
+@@ -366,7 +366,7 @@
+       // if that happens, store the value in correction and apply later
+       if (filePos + streamSkip0 >= 0)
+         {
+-        self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
++        self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip0, ios::beg);
+         correction = 0;
+         }
+       else
+@@ -376,7 +376,7 @@
+       outPtr1 += outIncr[1];
+       }
+     // move to the next image in the file and data
+-    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1 + correction, 
++    self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip1 + correction, 
+                       ios::beg);
+     outPtr2 += outIncr[2];
+     }
+diff -Naur --exclude=CVS VTK-4.2.6/Rendering/vtkVolumeRayCastMapper.cxx VTK-4.2.6-patched/Rendering/vtkVolumeRayCastMapper.cxx
+--- VTK-4.2.6/Rendering/vtkVolumeRayCastMapper.cxx     2002-12-26 21:20:41.000000000 +0300
++++ VTK-4.2.6-patched/Rendering/vtkVolumeRayCastMapper.cxx     2007-04-11 19:38:35.000000000 +0400
+@@ -65,6 +65,8 @@
+   B[1] = A[0]*M[1]  + A[1]*M[5]  + A[2]*M[9]; \
+   B[2] = A[0]*M[2]  + A[1]*M[6]  + A[2]*M[10]
++VTK_THREAD_RETURN_TYPE VolumeRayCastMapper_CastRays( void *arg );
++
+ vtkVolumeRayCastMapper* vtkVolumeRayCastMapper::New()
+ {
+   // First try to create the object from the vtkObjectFactory
+diff -Naur --exclude=CVS VTK-4.2.6/Rendering/vtkXRenderWindowInteractor.cxx VTK-4.2.6-patched/Rendering/vtkXRenderWindowInteractor.cxx
+--- VTK-4.2.6/Rendering/vtkXRenderWindowInteractor.cxx 2002-11-22 19:25:58.000000000 +0300
++++ VTK-4.2.6-patched/Rendering/vtkXRenderWindowInteractor.cxx 2007-04-12 10:01:02.000000000 +0400
+@@ -33,6 +33,11 @@
+ vtkCxxRevisionMacro(vtkXRenderWindowInteractor, "$Revision$");
+ vtkStandardNewMacro(vtkXRenderWindowInteractor);
++void vtkXRenderWindowInteractorCallback(Widget vtkNotUsed(w),
++                                        XtPointer client_data,
++                                        XEvent *event,
++                                        Boolean *vtkNotUsed(ctd));
++
+ typedef struct
+ {
+   Visual        *visual;
+diff -Naur --exclude=CVS VTK-4.2.6/Rendering/vtkXRenderWindowTclInteractor.cxx VTK-4.2.6-patched/Rendering/vtkXRenderWindowTclInteractor.cxx
+--- VTK-4.2.6/Rendering/vtkXRenderWindowTclInteractor.cxx      2002-07-17 19:36:18.000000000 +0400
++++ VTK-4.2.6-patched/Rendering/vtkXRenderWindowTclInteractor.cxx      2007-04-12 10:15:48.000000000 +0400
+@@ -34,6 +34,12 @@
+ vtkCxxRevisionMacro(vtkXRenderWindowTclInteractor, "$Revision$");
+ vtkStandardNewMacro(vtkXRenderWindowTclInteractor);
++void vtkXRenderWindowTclInteractorCallback(Widget vtkNotUsed(w),
++                                         XtPointer client_data,
++                                           XEvent *event,
++                                           Boolean *vtkNotUsed(ctd));
++void vtkXRenderWindowTclInteractorTimer(XtPointer,XtIntervalId *);
++                                        
+ // steal the first three elements of the TkMainInfo stuct
+ // we don't care about the rest of the elements.
+ struct TkMainInfo
index 1c88a3de194b860a22eb665f95ca30694f8bad31..2c45b880b1691fd20c05219187426ab62024add8 100755 (executable)
@@ -112,11 +112,8 @@ export LD_LIBRARY_PATH=${QTDIR}/lib:$LD_LIBRARY_PATH
   fi
 # 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"
-
-# add -dlopen-opengl flag (ONLY if the corresponding patch was applied)
-if [ "$patched_for_gl" == "yes" ] ; then
-    QT_FLAGS=$QT_FLAGS" -dlopen-opengl"
-fi
+# dlopen GL library instead of direct linking
+QT_FLAGS=$QT_FLAGS" -dlopen-opengl"
 
 # plugins
 if [ -e /etc/mandriva-release ] ; then