geant4 build-block added

This commit is contained in:
2019-01-10 16:22:45 +01:00
parent 3bff336a43
commit 98f00a965f
3 changed files with 39 additions and 0 deletions

25
Compiler/geant4/build Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env modbuild
pbuild::set_download_url "http://cern.ch/geant4-data/releases/$P.${V_PKG}.tar.gz"
pbuild::add_to_group 'Compiler'
#pbuild::install_docfiles 'ChangeLog'
#pbuild::install_docfiles 'compilers.txt'
#pbuild::install_docfiles 'COPYING'
#pbuild::install_docfiles 'COPYING.LESSER'
#pbuild::install_docfiles 'README.md'
pbuild::pre_configure() {
pbuild::add_configure_args "-DCMAKE_INSTALL_PREFIX=${PREFIX}"
pbuild::add_configure_args "-DGEANT4_USE_SYSTEM_CLHEP=ON"
pbuild::add_configure_args "-DPC_EXPAT_INCLUDE_DIRS=${LIBEXPAT_INCLUDE_DIR}"
if pbuild::use_flag 'multithreaded'; then
pbuild::add_configure_args "-DGEANT4_BUILD_MULTITHREADED=ON"
fi
}
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

View File

@@ -0,0 +1 @@
geant4/10.05 unstable gcc/7.3.0 clhep/2.4.1.0 b:libexpat/2.2.6 b:cmake/3.9.6

View File

@@ -0,0 +1,13 @@
#%Module1.0
module-whatis "class library for high energy physics"
module-url "https://proj-clhep.web.cern.ch/proj-clhep/"
module-license "GNU GPL, GNU GLPL"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
The CLHEP project was proposed by Leif Lönnblad at CHEP 92. It is intended
to be a set of HEP-specific foundation and utility classes such as random
generators, physics vectors, geometry and linear algebra. CLHEP is structured
in a set of packages independent of any external package (interdependencies
within CLHEP are allowed under certain conditions).
"