LHAPDF 5.5.1 and 5.9.1
authoragrigora <alina.grigoras@cern.ch>
Fri, 14 Nov 2014 14:24:20 +0000 (15:24 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:55 +0000 (13:51 +0100)
LHAPDF/CMakeLists.txt
LHAPDF/CMakeliblhapdf.pkg [deleted file]
LHAPDF/CMakeliblhapdf5_9_1.pkg [deleted file]
LHAPDF/lhapdf-5.9.1/CMakeLists.txt [new file with mode: 0644]
LHAPDF/lhapdf-5.9.1/lhapdfLinkDef.h [new file with mode: 0644]
LHAPDF/lhapdf5.5.1/CMakeLists.txt [new file with mode: 0644]
LHAPDF/lhapdf5.5.1/lhapdfLinkDef.h [new file with mode: 0644]

index 5eb8346..7871b02 100644 (file)
 # * provided "as is" without express or implied warranty.                  *
 # **************************************************************************
 
-# Module
-set(MODULE lhapdf)
+# liblhapdf.so
+add_subdirectory(lhapdf5.5.1)
+# liblhapdf-5.9.1
+add_subdirectory(lhapdf-5.9.1)
 
-# Module include folder
-include_directories(${AliRoot_SOURCE_DIR}/LHAPDF)
-
-# Additional include folders in alphabetical order except ROOT
-include_directories(${ROOT_INCLUDE_DIRS}
-                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1
-                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1/include
-                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1/src
-                   )
-
-# Sources in alphabetical order
-set(SRCS
-    AliStructFuncType.cxx 
-    lhapdf5.5.1/src/version.cxx  
-    lhapdf5.5.1/src/getdatapath.cxx
-   )
-
-# Headers
-set(HDRS
-    AliStructFuncType.h
-   )
-
-# C sources
-set(CSRCS
-    lhapdf5.5.1/src/binreloc.c
-   )
-
-# Fortran sources
-set(FSRCS
-    lhapdf5.5.1/src/alphas.f
-    lhapdf5.5.1/src/commoninit.f
-    lhapdf5.5.1/src/description.f
-    lhapdf5.5.1/src/eks98.f
-    lhapdf5.5.1/src/eksarp.f
-    lhapdf5.5.1/src/eps08.f
-    lhapdf5.5.1/src/eps09.f
-    lhapdf5.5.1/src/EVLCTEQ.f
-    lhapdf5.5.1/src/evolution.f
-    lhapdf5.5.1/src/inputPDF.f
-    lhapdf5.5.1/src/LHpdflib.F
-    lhapdf5.5.1/src/parameter.f
-    lhapdf5.5.1/src/QCDNUM.f
-    lhapdf5.5.1/src/QCDparams.f
-    lhapdf5.5.1/src/Sqcdnum.f
-    lhapdf5.5.1/src/wrapa02.f
-    lhapdf5.5.1/src/wrapa02m.f
-    lhapdf5.5.1/src/wrapabfkwpi.f
-    lhapdf5.5.1/src/wrapacfgpg.f
-    lhapdf5.5.1/src/wrapcteq5.f
-    lhapdf5.5.1/src/wrapcteq6.f
-    lhapdf5.5.1/src/wrapcteq6lg.f
-    lhapdf5.5.1/src/wrapdgg.f
-    lhapdf5.5.1/src/wrapdog.f
-    lhapdf5.5.1/src/wrapEVLCTEQ.f
-    lhapdf5.5.1/src/wrapevolve.f
-    lhapdf5.5.1/src/wrapgrv.f
-    lhapdf5.5.1/src/wrapgrvg.f
-    lhapdf5.5.1/src/wrapgrvpi.f
-    lhapdf5.5.1/src/wrapgsg96.f
-    lhapdf5.5.1/src/wrapgsg.f
-    lhapdf5.5.1/src/wraph1.f
-    lhapdf5.5.1/src/wraplacg.f
-    lhapdf5.5.1/src/wrapowpi.f
-    lhapdf5.5.1/src/wrapmrst.f
-    lhapdf5.5.1/src/wrapQCDNUM3.f
-    lhapdf5.5.1/src/wrapQCDNUM4.f
-    lhapdf5.5.1/src/wrapQCDNUM.f
-    lhapdf5.5.1/src/wrapsasg.f
-    lhapdf5.5.1/src/wrapsmrspi.f
-    lhapdf5.5.1/src/wrapwhitg.f
-    lhapdf5.5.1/src/wrapzeus.f
-    lhapdf5.5.1/src/lhaglue.f
-    lhapdf5.5.1/src/wrapUSER.f
-   )
-
-# Generate the dictionary
-# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
-get_directory_property(incdirs INCLUDE_DIRECTORIES)
-generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
-
-# Generate the ROOT map
-# Dependecies
-set(LIBDEPS Core)
-generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
-
-# Add a library to the project using the specified source files
-add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx ${CSRCS} ${FSRCS})
-
-# Additional compilation flags
-set(CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} -ansi")
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g" Fortran_FORMAT FREE )
-add_definitions(-DDEFAULTPREFIXPATH="NONE"  -DDEFAULTLHAPATH="${AliRoot_SOURCE_DIR}/LHAPDF/PDFsets")
-
-# System dependent: Modify the way the library is build
-if(${CMAKE_SYSTEM} MATCHES Darwin)
-    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
-endif(${CMAKE_SYSTEM} MATCHES Darwin)
-
-# Installation
-install(TARGETS ${MODULE}
-        ARCHIVE DESTINATION lib
-        LIBRARY DESTINATION lib)
-install(FILES ${HDRS} DESTINATION include)
 install(DIRECTORY PDFsets DESTINATION LHAPDF)
+
+message(STATUS "LHAPDF enabled. Default liblhapdf.so -> 5.5.1. liblhapdf-5.9.1.so available.")
\ No newline at end of file
diff --git a/LHAPDF/CMakeliblhapdf.pkg b/LHAPDF/CMakeliblhapdf.pkg
deleted file mode 100644 (file)
index b951624..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-# -*- mode: cmake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for lhapdf                                                        #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS AliStructFuncType.cxx lhapdf5.5.1/src/version.cxx  lhapdf5.5.1/src/getdatapath.cxx)
-
-set ( HDRS  AliStructFuncType.h)
-
-set ( DHDR lhapdfLinkDef.h)
-
-set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "")
-set ( EINCLUDE  LHAPDF/lhapdf5.5.1 LHAPDF/lhapdf5.5.1/include LHAPDF/lhapdf5.5.1/src)
-
-set ( CSRCS  lhapdf5.5.1/src/binreloc.c )
-
-set ( FSRCS  lhapdf5.5.1/src/alphas.f lhapdf5.5.1/src/commoninit.f lhapdf5.5.1/src/description.f lhapdf5.5.1/src/eks98.f lhapdf5.5.1/src/eksarp.f lhapdf5.5.1/src/eps08.f  lhapdf5.5.1/src/eps09.f lhapdf5.5.1/src/EVLCTEQ.f lhapdf5.5.1/src/evolution.f lhapdf5.5.1/src/inputPDF.f lhapdf5.5.1/src/LHpdflib.F lhapdf5.5.1/src/parameter.f lhapdf5.5.1/src/QCDNUM.f lhapdf5.5.1/src/QCDparams.f lhapdf5.5.1/src/Sqcdnum.f lhapdf5.5.1/src/wrapa02.f lhapdf5.5.1/src/wrapa02m.f lhapdf5.5.1/src/wrapabfkwpi.f lhapdf5.5.1/src/wrapacfgpg.f lhapdf5.5.1/src/wrapcteq5.f lhapdf5.5.1/src/wrapcteq6.f lhapdf5.5.1/src/wrapcteq6lg.f lhapdf5.5.1/src/wrapdgg.f lhapdf5.5.1/src/wrapdog.f lhapdf5.5.1/src/wrapEVLCTEQ.f lhapdf5.5.1/src/wrapevolve.f lhapdf5.5.1/src/wrapgrv.f lhapdf5.5.1/src/wrapgrvg.f lhapdf5.5.1/src/wrapgrvpi.f lhapdf5.5.1/src/wrapgsg96.f lhapdf5.5.1/src/wrapgsg.f lhapdf5.5.1/src/wraph1.f lhapdf5.5.1/src/wraplacg.f lhapdf5.5.1/src/wrapowpi.f lhapdf5.5.1/src/wrapmrst.f lhapdf5.5.1/src/wrapQCDNUM3.f lhapdf5.5.1/src/wrapQCDNUM4.f lhapdf5.5.1/src/wrapQCDNUM.f lhapdf5.5.1/src/wrapsasg.f lhapdf5.5.1/src/wrapsmrspi.f lhapdf5.5.1/src/wrapwhitg.f lhapdf5.5.1/src/wrapzeus.f lhapdf5.5.1/src/lhaglue.f lhapdf5.5.1/src/wrapUSER.f)
-
-if( ALICE_TARGET STREQUAL "solarisCC5")
-         set ( PACKFFLAGS "${FFLAGS} -free")
-elseif( ALICE_TARGET STREQUAL "linuxx8664icc")
-               set ( PACKFFLAGS "${FFLAGS} -nofixed" )
-else()
-               set ( PACKFFLAGS "${FFLAGS} -ffree-form")
-endif( ALICE_TARGET STREQUAL "solarisCC5")
-
-set( PACKCXXFLAGS "${CXXFLAGS} -DDEFAULTPREFIXPATH=\\\"NONE\\\" -DDEFAULTLHAPATH=\\\"${ALICE_ROOT}/LHAPDF/PDFsets\\\"" )
-
-
-set ( EXPORT AliStructFuncType.h)
-
-#--------------------------------------------------------------------------------#
-# install PDF data 
-install ( DIRECTORY PDFsets
-  DESTINATION LHAPDF
-  PATTERN ".svn" EXCLUDE
-  PATTERN ".d"  EXCLUDE 
-  PATTERN ".so" EXCLUDE)
-
diff --git a/LHAPDF/CMakeliblhapdf5_9_1.pkg b/LHAPDF/CMakeliblhapdf5_9_1.pkg
deleted file mode 100644 (file)
index 8cdb548..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-# -*- mode: cmake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for lhapdf                                                        #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS AliStructFuncType.cxx lhapdf-5.9.1/src/version.cxx  lhapdf-5.9.1/src/getdatapath.cxx)
-
-set ( HDRS  AliStructFuncType.h)
-
-set ( DHDR lhapdfLinkDef.h)
-
-
-set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "")
-set ( EINCLUDE  LHAPDF/lhapdf-5.9.1 LHAPDF/lhapdf-5.9.1/include  LHAPDF/lhapdf-5.9.1/src)
-
-set ( CSRCS  lhapdf-5.9.1/src/binreloc.c )
-
-set ( FSRCS  
- lhapdf-5.9.1/src/alphas.f 
- lhapdf-5.9.1/src/commoninit.f 
- lhapdf-5.9.1/src/description.f 
- lhapdf-5.9.1/src/eks98.f 
- lhapdf-5.9.1/src/eksarp.f 
- lhapdf-5.9.1/src/eps08.f  
- lhapdf-5.9.1/src/eps09.f 
- lhapdf-5.9.1/src/EVLCTEQ.f 
- lhapdf-5.9.1/src/EVLNNPDF.f 
- lhapdf-5.9.1/src/evolution.f 
- lhapdf-5.9.1/src/inputPDF.F 
- lhapdf-5.9.1/src/LHpdflib.F 
- lhapdf-5.9.1/src/parameter.F
- lhapdf-5.9.1/src/QCDNUM.F
- lhapdf-5.9.1/src/QCDparams.f
- lhapdf-5.9.1/src/Smrst.f 
- lhapdf-5.9.1/src/Sqcdnum.f
- lhapdf-5.9.1/src/Szeus.f
- lhapdf-5.9.1/src/uncertainties.f
- lhapdf-5.9.1/src/wrapNNPDF.f
- lhapdf-5.9.1/src/wrapNNPDF20grid.f
- lhapdf-5.9.1/src/wrapNNPDF20qedgrid.f
- lhapdf-5.9.1/src/wrapNNPDFgrid.f
- lhapdf-5.9.1/src/wrapa02m.f 
- lhapdf-5.9.1/src/wrapabfkwpi.f
- lhapdf-5.9.1/src/wrapabkm09.f
- lhapdf-5.9.1/src/wrapabm11.f
- lhapdf-5.9.1/src/wrapacfgpg.f
- lhapdf-5.9.1/src/wrapct12.f
- lhapdf-5.9.1/src/wrapcteq5.f 
- lhapdf-5.9.1/src/wrapcteq6.f 
- lhapdf-5.9.1/src/wrapcteq65.f 
- lhapdf-5.9.1/src/wrapcteq6lg.f 
- lhapdf-5.9.1/src/wrapdgg.f
- lhapdf-5.9.1/src/wrapdog.f
- lhapdf-5.9.1/src/wrapEVLCTEQ.f 
- lhapdf-5.9.1/src/wrapevolve.F
- lhapdf-5.9.1/src/wrapgjr.f  
- lhapdf-5.9.1/src/wrapgrv.f 
- lhapdf-5.9.1/src/wrapgrvg.f 
- lhapdf-5.9.1/src/wrapgrvpi.f
- lhapdf-5.9.1/src/wrapgsg96.f
- lhapdf-5.9.1/src/wrapgsg.f 
- lhapdf-5.9.1/src/wraph1.f 
- lhapdf-5.9.1/src/wraphera.f 
- lhapdf-5.9.1/src/wrapheragrid.f
- lhapdf-5.9.1/src/wraphkn.f 
- lhapdf-5.9.1/src/wraplacg.f
- lhapdf-5.9.1/src/wrapowpi.f
- lhapdf-5.9.1/src/wrapmrst.f 
- lhapdf-5.9.1/src/wrapmrst2006.f 
- lhapdf-5.9.1/src/wrapmrst98.f 
- lhapdf-5.9.1/src/wrapmrstqed.f 
- lhapdf-5.9.1/src/wrapQCDNUM3.f 
- lhapdf-5.9.1/src/wrapQCDNUM4.f 
- lhapdf-5.9.1/src/wrapQCDNUM.F 
- lhapdf-5.9.1/src/wrapsasg.f 
- lhapdf-5.9.1/src/wrapmstw.f 
- lhapdf-5.9.1/src/wrapsmrspi.f 
- lhapdf-5.9.1/src/wrapwhitg.f 
- lhapdf-5.9.1/src/wrapzeus.f 
- lhapdf-5.9.1/src/lhaglue.f 
- lhapdf-5.9.1/src/wrapUSER.f
- lhapdf-5.9.1/src/wrapusergrid.f
- lhapdf-5.9.1/src/wrapXNN.f
-)
-
-if( ALICE_TARGET STREQUAL "solarisCC5")
-         set ( PACKFFLAGS "${FFLAGS} -free")
-elseif( ALICE_TARGET STREQUAL "linuxx8664icc")
-               set ( PACKFFLAGS "${FFLAGS}  -nofixed" )
-else()
-               set ( PACKFFLAGS "${FFLAGS} -ffree-form")
-endif( ALICE_TARGET STREQUAL "solarisCC5")
-
-set ( PACKFFLAGS "${PACKFFLAGS} -DCTEQ")
-
-set( PACKCXXFLAGS "${CXXFLAGS} -DDEFAULTPREFIXPATH=\\\"NONE\\\" -DDEFAULTLHAPATH=\\\"${ALICE_ROOT}/LHAPDF/PDFsets\\\"" )
-
-
-set ( EXPORT AliStructFuncType.h)
-
-#--------------------------------------------------------------------------------#
-# install PDF data 
-install ( DIRECTORY PDFsets
-  DESTINATION LHAPDF
-  PATTERN ".svn" EXCLUDE
-  PATTERN ".d"  EXCLUDE 
-  PATTERN ".so" EXCLUDE)
-
diff --git a/LHAPDF/lhapdf-5.9.1/CMakeLists.txt b/LHAPDF/lhapdf-5.9.1/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0836c0d
--- /dev/null
@@ -0,0 +1,151 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+# Module
+set(MODULE lhapdf-5.9.1)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf-5.9.1
+                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf-5.9.1/include
+                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf-5.9.1/src
+                   )
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    ${AliRoot_SOURCE_DIR}/LHAPDF/AliStructFuncType.cxx 
+    src/version.cxx  
+    src/getdatapath.cxx
+   )
+
+# Headers
+set(HDRS
+    ${AliRoot_SOURCE_DIR}/LHAPDF/AliStructFuncType.h
+   )
+
+# C sources
+set(CSRCS
+    src/binreloc.c
+   )
+
+# Fortran sources
+set(FSRCS
+    src/alphas.f
+    src/commoninit.f
+    src/description.f
+    src/eks98.f
+    src/eksarp.f
+    src/eps08.f
+    src/eps09.f
+    src/EVLCTEQ.f
+    src/EVLNNPDF.f
+    src/evolution.f
+    src/inputPDF.f
+    src/lhaglue.f
+    src/LHpdflib.f
+    src/parameter.F
+    src/QCDNUM.F
+    src/QCDparams.f
+    src/Smrst.f
+    src/Sqcdnum.f
+    src/Szeus.f
+    src/uncertainties.f
+    src/wrapa02m.f
+    src/wrapabfkwpi.f
+    src/wrapabkm09.f
+    src/wrapabm11.f
+    src/wrapacfgpg.f
+    src/wrapct12.f
+    src/wrapcteq5.f
+    src/wrapcteq65.f
+    src/wrapcteq6.f
+    src/wrapcteq6lg.f
+    src/wrapdgg.f
+    src/wrapdog.f
+    src/wrapEVLCTEQ.f
+    src/wrapevolve.F
+    src/wrapgjr.f
+    src/wrapgrv.f
+    src/wrapgrvg.f
+    src/wrapgrvpi.f
+    src/wrapgsg96.f
+    src/wrapgsg.f
+    src/wraph1.f
+    src/wraphera.f
+    src/wrapheragrid.f
+    src/wraphkn.f
+    src/wraplacg.f
+    src/wrapmrst2006.f
+    src/wrapmrst98.f
+    src/wrapmrst.f
+    src/wrapmrstqed.f
+    src/wrapmstw.f
+    src/wrapNNPDF20grid.f
+    src/wrapNNPDF20qedgrid.f
+    src/wrapNNPDF.f
+    src/wrapNNPDFgrid.f
+    src/wrapowpi.f
+    src/wrapQCDNUM3.f
+    src/wrapQCDNUM4.f
+    src/wrapQCDNUM.f
+    src/wrapsasg.f
+    src/wrapsmrspi.f
+    src/wrapUSER.f
+    src/wrapusergrid.f
+    src/wrapwhitg.f
+    src/wrapXNN.f
+    src/wrapzeus.f
+   )
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "lhapdfLinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS Core)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx ${CSRCS} ${FSRCS})
+
+# Definitions
+add_definitions(-DDEFAULTPREFIXPATH="NONE"  -DDEFAULTLHAPATH="${AliRoot_SOURCE_DIR}/LHAPDF/PDFsets")
+
+# Additional compilation and linking flags
+set(CMAKE_C_FLAGS "-ansi ${CMAKE_C_FLAGS}")
+set(CMAKE_Fortran_FLAGS "-cpp")
+set(MODULE_COMPILE_FLAGS "-O -g")
+set(MODULE_LINK_FLAGS)
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set(MODULE_LINK_FLAGS "-undefined dynamic_lookup ${MODULE_LINK_FLAGS}")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Target properties
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}")
+set_target_properties(${MODULE} PROPERTIES Fortran_FORMAT FREE)
+set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+install(FILES ${HDRS} DESTINATION include)
diff --git a/LHAPDF/lhapdf-5.9.1/lhapdfLinkDef.h b/LHAPDF/lhapdf-5.9.1/lhapdfLinkDef.h
new file mode 100644 (file)
index 0000000..1250010
--- /dev/null
@@ -0,0 +1,13 @@
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+#pragma link C++ enum  StrucFunc_t;
+#pragma link C++ class  AliStructFuncType+;
+#endif
+
diff --git a/LHAPDF/lhapdf5.5.1/CMakeLists.txt b/LHAPDF/lhapdf5.5.1/CMakeLists.txt
new file mode 100644 (file)
index 0000000..05e9290
--- /dev/null
@@ -0,0 +1,129 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+# Module
+set(MODULE lhapdf)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1
+                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1/include
+                    ${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf5.5.1/src
+                   )
+
+# Additional include folders in alphabetical order
+include_directories(
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    ${AliRoot_SOURCE_DIR}/LHAPDF/AliStructFuncType.cxx 
+    src/version.cxx  
+    src/getdatapath.cxx
+   )
+
+# Headers
+set(HDRS
+    ${AliRoot_SOURCE_DIR}/LHAPDF/AliStructFuncType.h
+   )
+
+# C sources
+set(CSRCS
+    src/binreloc.c
+   )
+
+# Fortran sources
+set(FSRCS
+    src/alphas.f
+    src/commoninit.f
+    src/description.f
+    src/eks98.f
+    src/eksarp.f
+    src/eps08.f
+    src/eps09.f
+    src/EVLCTEQ.f
+    src/evolution.f
+    src/inputPDF.f
+    src/LHpdflib.F
+    src/parameter.f
+    src/QCDNUM.f
+    src/QCDparams.f
+    src/Sqcdnum.f
+    src/wrapa02.f
+    src/wrapa02m.f
+    src/wrapabfkwpi.f
+    src/wrapacfgpg.f
+    src/wrapcteq5.f
+    src/wrapcteq6.f
+    src/wrapcteq6lg.f
+    src/wrapdgg.f
+    src/wrapdog.f
+    src/wrapEVLCTEQ.f
+    src/wrapevolve.f
+    src/wrapgrv.f
+    src/wrapgrvg.f
+    src/wrapgrvpi.f
+    src/wrapgsg96.f
+    src/wrapgsg.f
+    src/wraph1.f
+    src/wraplacg.f
+    src/wrapowpi.f
+    src/wrapmrst.f
+    src/wrapQCDNUM3.f
+    src/wrapQCDNUM4.f
+    src/wrapQCDNUM.f
+    src/wrapsasg.f
+    src/wrapsmrspi.f
+    src/wrapwhitg.f
+    src/wrapzeus.f
+    src/lhaglue.f
+    src/wrapUSER.f
+   )
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS Core)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx ${CSRCS} ${FSRCS})
+add_definitions(-DDEFAULTPREFIXPATH="NONE"  -DDEFAULTLHAPATH="${AliRoot_SOURCE_DIR}/LHAPDF/PDFsets")
+
+# Additional compilation and linking flags
+set(CMAKE_C_FLAGS "-ansi ${CMAKE_C_FLAGS}")
+set(CMAKE_Fortran_FLAGS "-cpp")
+set(MODULE_COMPILE_FLAGS "-O -g")
+set(MODULE_LINK_FLAGS)
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set(MODULE_LINK_FLAGS "-undefined dynamic_lookup ${MODULE_LINK_FLAGS}")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Target properties
+set_target_properties(${MODULE} PROPERTIES FORTRAN_FLAGS "")
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}")
+set_target_properties(${MODULE} PROPERTIES Fortran_FORMAT FREE)
+set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+install(FILES ${HDRS} DESTINATION include)
diff --git a/LHAPDF/lhapdf5.5.1/lhapdfLinkDef.h b/LHAPDF/lhapdf5.5.1/lhapdfLinkDef.h
new file mode 100644 (file)
index 0000000..1250010
--- /dev/null
@@ -0,0 +1,13 @@
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+#pragma link C++ enum  StrucFunc_t;
+#pragma link C++ class  AliStructFuncType+;
+#endif
+