############################################################################## # # Configuration file for installing ILC Software release v01-13 # # This cfg file assumes the base-level tools from release_v01-13-base.cfg # are already installed and available in your system (base-level tools are the # tools which are set as 'ilcsoft.link' at the end of this file # # If you do not have this tools available on your system you can install them # with the configuration file release_v01-13-base.cfg or alternatively # install all software with release_v01-13-scratch.cfg (please check # release_v01-13-base.cfg for more details) # # Please do not forget to modify the directories in this cfg file # according to your system !! # # Author: F. Gaede, J. Engels, DESY # Date: Jun 30, 2010 # ############################################################################## import os, sys # read package versions from external file path_where_this_file_lives = os.path.dirname( config_file ) versions_file = os.path.join( path_where_this_file_lives, "release-versions.py" ) execfile( versions_file ) # installation directory if not 'ilcsoft_install_dir' in dir(): if not 'ilcsoft_install_prefix' in dir(): # default install prefix ilcsoft_install_prefix = "$HOME/ilcsoft" ilcsoft_install_dir = os.path.join( ilcsoft_install_prefix, ilcsoft_release ) ilcsoft = ILCSoft( ilcsoft_install_dir ) # python variable for referring the ILC Home directory # used to link or use already installed packages (SL4 or SL5) # --- set in release-versions.py --- #ilcPath = "/afs/desy.de/group/it/ilcsoft/" #ilcPath = '/afs/desy.de/project/ilcsoft/sw/i386_gcc34_sl4/' if not 'ilcPath' in dir(): "raise ilcPath not set" ilcPath = os.path.normpath( ilcPath ) + '/' # make sure there it ends with / # global options ilcsoft.env["MAKEOPTS"]="-j 16" ilcsoft.env["CXX"]="g++" ilcsoft.env["CC"]="gcc" ilcsoft.env["FC"]="gfortran" if( ilcsoft.os.isSL(4) ): ilcsoft.env["FC"]="g77" #--------- uncomment the following to build 32-bit mode on 64bit machines--- # default is now 64bit-native build # #ilcsoft.env["CXXFLAGS"]="-m32" #ilcsoft.env["CFLAGS"]="-m32" #ilcsoft.env["FFLAGS"]="-m32" #ilcsoft.env["LDFLAGS"]="-m32" #--------- set to 'OFF' to build 64-bit natively ------- #ilcsoft.envcmake["BUILD_32BIT_COMPATIBLE"]="OFF" #---------------------------------------------------------------- # ----- build and install documentation ------------- ilcsoft.envcmake["INSTALL_DOC"]="ON" ilcsoft.envcmake["FORTRAN_LIBRARY_SEARCH_PATH"]="/opt/gcc-4.6.2/lib64/" #ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "Debug" ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "RelWithDebInfo" ilcsoft.downloadType = "svn" # additional system pathes for FIND_LIBRARY, FIND_PATH #----------------------------------------------- #ilcsoft.env["CMAKE_LIBRARY_PATH"]="/usr/lib/gcc/i386-redhat-linux/3.4.3:/another/path/lib" #ilcsoft.env["CMAKE_INCLUDE_PATH"]="/usr/include/c++/3.4.3:/another/path/include" #----------------------------------------------- ########################################################### ilcsoft.install( LCCD( LCCD_version )) ilcsoft.install( Marlin( Marlin_version )) ilcsoft.module("Marlin").envcmake["MARLIN_GUI"]='ON' ilcsoft.install( MarlinUtil( MarlinUtil_version )) ilcsoft.install( Mokka( Mokka_version )) #ilcsoft.module("Mokka").env["MOKKA_DEBUG"]=1 #ilcsoft.module("Mokka").env["MOKKA_PACK_LIBS"]=1 # FIXME: CAUSES TOO MUCH LIB DEPENDENCIES .... TO BE SOLVED !! #---------- standard reco packages ilcsoft.install( MarlinReco( MarlinReco_version )) ilcsoft.install( PandoraAnalysis( PandoraAnalysis_version )) ilcsoft.install( PandoraPFANew( PandoraPFANew_version )) ilcsoft.module("PandoraPFANew").envcmake["PANDORA_MONITORING"]='ON' ilcsoft.install( MarlinPandora( MarlinPandora_version )) ilcsoft.install( LCFIVertex( LCFIVertex_version )) ilcsoft.install( CEDViewer( CEDViewer_version )) ilcsoft.install( Overlay( Overlay_version )) ilcsoft.install( FastJetClustering( FastJetClustering_version )) ilcsoft.install( MarlinPKG( "MarlinFastJet", MarlinFastJet_version )) ilcsoft.module("MarlinFastJet").download.root="marlinreco" ilcsoft.module("MarlinFastJet").addDependency( [ 'LCIO', 'Marlin', 'FastJet'] ) ilcsoft.install( MarlinPKG( "MarlinKinfit", MarlinKinfit_version )) ilcsoft.module("MarlinKinfit").download.root="marlinreco" ilcsoft.module("MarlinKinfit").addDependency( [ 'LCIO', 'GEAR', 'GSL', 'Marlin'] ) ilcsoft.install( MarlinTrk( MarlinTrk_version )) ilcsoft.install( MarlinPKG( "MarlinTrkProcessors", MarlinTrkProcessors_version )) ilcsoft.module("MarlinTrkProcessors").download.root="marlinreco" ilcsoft.module("MarlinTrkProcessors").addDependency( [ 'LCIO', 'ROOT', 'GSL', 'Marlin', 'MarlinUtil', 'KalTest', 'KalDet', 'MarlinTrk'] ) ilcsoft.install( MarlinPKG( "Clupatra", Clupatra_version )) ilcsoft.module("Clupatra").download.root="marlinreco" ilcsoft.module("Clupatra").addDependency( [ 'LCIO', 'ROOT', 'RAIDA', 'Marlin', 'MarlinUtil', 'KalTest', 'MarlinTrk' ] ) ilcsoft.install( MarlinPKG( "LCFIPlus", LCFIPlus_version )) ilcsoft.module("LCFIPlus").download.root="marlinreco" ilcsoft.module("LCFIPlus").addDependency( [ 'LCIO', 'GEAR', 'ROOT', 'Marlin', 'MarlinUtil', 'LCFIVertex'] ) ilcsoft.install( MarlinPKG( "ForwardTracking", ForwardTracking_version )) ilcsoft.module("ForwardTracking").download.root="marlinreco" ilcsoft.module("ForwardTracking").addDependency( [ 'LCIO', 'GEAR', 'ROOT', 'GSL', 'Marlin', 'MarlinUtil', 'MarlinTrk'] ) #---------test beam packages #ilcsoft.install( Eutelescope( Eutelescope_version )) #ilcsoft.module("Eutelescope").env['EUDAQ_VERSION']='trunk' #ilcsoft.module("Eutelescope").env['MILLEPEDEII_VERSION']='trunk' ilcsoft.install( MarlinTPC( MarlinTPC_version )) ilcsoft.install( Druid( Druid_version )) ilcsoft.install( Garlic( Garlic_version )) ilcsoft.install( RAIDA( RAIDA_version )) ilcsoft.install( KalTest( KalTest_version )) ilcsoft.install( KalDet( KalDet_version )) #################################################################### # # the following tools are installed in afs: # # - for SL4 (32bit) under: # # /afs/desy.de/project/ilcsoft/sw/i386_gcc34_sl4/ # # - for SL5 (32bit) under: # # /afs/desy.de/project/ilcsoft/sw/i386_gcc41_sl5/ # # - for SL5 (64bit) under: # # /afs/desy.de/project/ilcsoft/sw/x86_64_gcc41_sl5 # # they can be linked from there or need to be installed on your system # #################################################################### #----- configs ------------------------------------------------------ ilcsoft.link( ConfigPKG( "StandardConfig", ilcPath + "StandardConfig/" + StandardConfig_version ) ) stdconf = ilcsoft.module( "StandardConfig") stdconf.env["STANDARDCONFIG"]=stdconf.installPath ilcsoft.link( ConfigPKG( "MokkaDBConfig", ilcPath + "MokkaDBConfig/" + MokkaDBConfig_version ) ) mokkadbconf = ilcsoft.module( "MokkaDBConfig") mokkadbconf.download.root = "ilctools" mokkadbconf.envorder=["MOKKADBCONFIG"] mokkadbconf.env["MOKKADBCONFIG"]=mokkadbconf.installPath mokkadbconf.env["MOKKA_DUMP_FILE"]="$MOKKADBCONFIG/mokka-dbdump.sql.tgz" mokkadbconf.envpath["PATH"].append( "$MOKKADBCONFIG/scripts" ) ilcsoft.link( ConfigPKG( "LCFI_MokkaBasedNets", ilcPath + "LCFI_MokkaBasedNets/" + LCFI_MokkaBasedNets_version ) ) lcfinets=ilcsoft.module( "LCFI_MokkaBasedNets" ) lcfinets.download.root = "tagnet" lcfinets.env["LCFIMOKKABASEDNETS"]=lcfinets.installPath #-------------------------------------------------------------------- ilcsoft.link( CED( ilcPath + "CED/" + CED_version )) # ilcsoft.link( LCIO( ilcPath + "lcio/" + LCIO_version )) ilcsoft.install( LCIO( LCIO_version )) #----- this will build the optional ROOT dictionary for LCIO ----- #------ set to OFF if you don't want it ilcsoft.module("LCIO").envcmake['BUILD_ROOTDICT']='ON' #ilcsoft.module("LCIO").envcmake['ROOT_HOME']='${ROOTSYS}' #ilcsoft.module("LCIO").envcmake["BUILD_WITH_DCAP"]="ON" # it is recommended to use the LD_PRELOAD mechanism for opening lcio files in dCache #ilcsoft.link( dcap( ilcPath + "dcap/" + dcap_version )) #ilcsoft.link( GEAR( ilcPath + "gear/" + GEAR_version )) ilcsoft.install( GEAR( GEAR_version )) ilcsoft.module("GEAR").envcmake['GEAR_TGEO']='ON' ilcsoft.link( FastJet( ilcPath + "FastJet/" + FastJet_version )) ilcsoft.link( ROOT( ilcPath + "root/" + ROOT_version )) ilcsoft.link( CLHEP( ilcPath + "CLHEP/" + CLHEP_version )) ilcsoft.link( GSL( ilcPath + "gsl/" + GSL_version )) ilcsoft.link( QT( ilcPath + "QT/" + QT_version )) ilcsoft.link( CondDBMySQL( ilcPath + "CondDBMySQL/" + CondDBMySQL_version )) # cernlib if 'CERNLIB_path' in dir(): ilcsoft.link( CERNLIB( CERNLIB_path )) # geant4 if 'Geant4_path' in dir(): ilcsoft.use( Geant4 ( Geant4_path )) if 'G4ENV_INIT_path' in dir(): ilcsoft.module("Geant4").env["G4ENV_INIT"] = G4ENV_INIT_path # mysql if 'MySQL_path' in dir(): ilcsoft.link( MySQL( MySQL_path )) # Java if 'Java_path' in dir(): ilcsoft.link( Java( Java_path )) # cmake ilcsoft.use( CMake( ilcPath + "CMake/" + CMake_version )) ilcsoft.link( ILCUTIL( ilcPath + "ilcutil/" + ILCUTIL_version )) # end of configuration file