1 | PortSystem 1.0 |
---|
2 | PortGroup cmake 1.0 |
---|
3 | |
---|
4 | name geant4.10.0 |
---|
5 | # TODO: how to recognize whether a version is newer? Do we need an extra string/number? I'm not sure about b01/p02 |
---|
6 | version 4.10.00.b01 |
---|
7 | categories science |
---|
8 | maintainers nomaintainer |
---|
9 | license Geant4 |
---|
10 | description Geant4 is a toolkit for the simulation of the passage of particles through matter. |
---|
11 | long_description Geant4 is a toolkit for the simulation of the passage of particles through matter. \ |
---|
12 | Its areas of application include high energy, nuclear and accelerator physics, as well as studies in medical and space science. \ |
---|
13 | The two main reference papers for Geant4 are published in Nuclear Instruments and Methods in Physics Research A 506 (2003) 250-303, \ |
---|
14 | and IEEE Transactions on Nuclear Science 53 No. 1 (2006) 270-278. |
---|
15 | homepage http://geant4.web.cern.ch/ |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | # list of files from cmake/Modules/Geant4DatasetDefinitions.cmake |
---|
19 | |
---|
20 | # G4NDL 4.3 G4NDL tar.gz G4NEUTRONHPDATA 55493e74cba90e6cb167a5008e138cd7 |
---|
21 | # G4EMLOW 6.33 G4EMLOW tar.gz G4LEDATA 0002a1c16c9b1fb5e8d49dfbce12a576 |
---|
22 | # PhotonEvaporation 2.3 G4PhotonEvaporation tar.gz G4LEVELGAMMADATA 08848ebdd536280a0629d802040b70be |
---|
23 | # RadioactiveDecay 3.7 G4RadioactiveDecay tar.gz G4RADIOACTIVEDATA 039e5f64b0e451eb5c095bf81552cb42 |
---|
24 | # G4NEUTRONXS 1.3 G4NEUTRONXS tar.gz G4NEUTRONXSDATA ede7c4b3e99cbe1773b672a7404fe0f6 |
---|
25 | # G4PII 1.3 G4PII tar.gz G4PIIDATA 05f2471dbcdf1a2b17cbff84e8e83b37 |
---|
26 | # RealSurface 1.0 RealSurface tar.gz G4REALSURFACEDATA 0dde95e00fcd3bcd745804f870bb6884 |
---|
27 | # G4SAIDDATA 1.1 G4SAIDDATA tar.gz G4SAIDXSDATA d88a31218fdf28455e5c5a3609f7216f |
---|
28 | |
---|
29 | # Data files versions |
---|
30 | set v_G4NDL 4.3 |
---|
31 | set v_G4EMLOW 6.33 |
---|
32 | set v_PhotonEvaporation 2.3 |
---|
33 | set v_RadioactiveDecay 3.7 |
---|
34 | set v_G4NEUTRONXS 1.3 |
---|
35 | set v_G4PII 1.3 |
---|
36 | set v_RealSurface 1.0 |
---|
37 | set v_G4SAIDDATA 1.1 |
---|
38 | |
---|
39 | set md5_G4NDL 55493e74cba90e6cb167a5008e138cd7 |
---|
40 | set md5_G4EMLOW 0002a1c16c9b1fb5e8d49dfbce12a576 |
---|
41 | set md5_PhotonEvaporation 08848ebdd536280a0629d802040b70be |
---|
42 | set md5_RadioactiveDecay 039e5f64b0e451eb5c095bf81552cb42 |
---|
43 | set md5_G4NEUTRONXS ede7c4b3e99cbe1773b672a7404fe0f6 |
---|
44 | set md5_G4PII 05f2471dbcdf1a2b17cbff84e8e83b37 |
---|
45 | set md5_RealSurface 0dde95e00fcd3bcd745804f870bb6884 |
---|
46 | set md5_G4SAIDDATA d88a31218fdf28455e5c5a3609f7216f |
---|
47 | |
---|
48 | distfiles geant${version}.tar.gz:cern \ |
---|
49 | G4NDL.${v_G4NDL}.tar.gz:cern \ |
---|
50 | G4EMLOW.${v_G4EMLOW}.tar.gz:cern \ |
---|
51 | G4PhotonEvaporation.${v_PhotonEvaporation}.tar.gz:cern \ |
---|
52 | G4RadioactiveDecay.${v_RadioactiveDecay}.tar.gz:cern \ |
---|
53 | G4NEUTRONXS.${v_G4NEUTRONXS}.tar.gz:cern \ |
---|
54 | G4PII.${v_G4PII}.tar.gz:cern \ |
---|
55 | RealSurface.${v_RealSurface}.tar.gz:cern \ |
---|
56 | G4SAIDDATA.${v_G4SAIDDATA}.tar.gz:cern |
---|
57 | |
---|
58 | master_sites http://geant4.cern.ch/support/source/:cern |
---|
59 | |
---|
60 | checksums geant${version}.tar.gz \ |
---|
61 | rmd160 14820eca2893ffa7a27cd44f51c6c9b4b125b491 \ |
---|
62 | sha256 0fa7c9b0e1b09fd11b682523b839b4c6c67f4c3cd5bc9a9357512c37ea4a9e1e \ |
---|
63 | G4NDL.${v_G4NDL}.tar.gz md5 ${md5_G4NDL} \ |
---|
64 | G4EMLOW.${v_G4EMLOW}.tar.gz md5 ${md5_G4EMLOW} \ |
---|
65 | G4PhotonEvaporation.${v_PhotonEvaporation}.tar.gz md5 ${md5_PhotonEvaporation} \ |
---|
66 | G4RadioactiveDecay.${v_RadioactiveDecay}.tar.gz md5 ${md5_RadioactiveDecay} \ |
---|
67 | G4NEUTRONXS.${v_G4NEUTRONXS}.tar.gz md5 ${md5_G4NEUTRONXS} \ |
---|
68 | G4PII.${v_G4PII}.tar.gz md5 ${md5_G4PII} \ |
---|
69 | RealSurface.${v_RealSurface}.tar.gz md5 ${md5_RealSurface} \ |
---|
70 | G4SAIDDATA.${v_G4SAIDDATA}.tar.gz md5 ${md5_G4SAIDDATA} |
---|
71 | |
---|
72 | worksrcdir geant${version} |
---|
73 | configure.dir ${workpath}/build |
---|
74 | build.dir ${configure.dir} |
---|
75 | |
---|
76 | post-extract { |
---|
77 | file mkdir ${configure.dir} |
---|
78 | } |
---|
79 | |
---|
80 | configure.post_args ${worksrcpath} |
---|
81 | |
---|
82 | depends_lib port:clhep \ |
---|
83 | port:zlib |
---|
84 | # |
---|
85 | |
---|
86 | variant debug description {Compile with debug flags on} { |
---|
87 | # TODO |
---|
88 | # build.env-append G4DEBUG=1 |
---|
89 | # CMAKE_BUILD_TYPE Release / Debug / RelWithDebInfo |
---|
90 | } |
---|
91 | |
---|
92 | variant global description {Build with global libraries} conflicts granular { |
---|
93 | # TODO |
---|
94 | # build.target global |
---|
95 | } |
---|
96 | variant granular description {Build with granular libraries} conflicts global { |
---|
97 | # build.env-append G4LIB_USE_GRANULAR=1 |
---|
98 | |
---|
99 | # build.target |
---|
100 | } |
---|
101 | |
---|
102 | |
---|
103 | # TODO: also switch off |
---|
104 | variant shared description {Build shared libraries} conflicts static { |
---|
105 | configure.args-append -DBUILD_SHARED_LIBS=ON |
---|
106 | # build.env-append G4LIB_BUILD_SHARED=1 |
---|
107 | } |
---|
108 | |
---|
109 | variant static description {Build static libraries} conflicts shared { |
---|
110 | configure.args-append -DBUILD_STATIC_LIBS=ON |
---|
111 | # build.env-append G4LIB_BUILD_STATIC=1 |
---|
112 | } |
---|
113 | |
---|
114 | |
---|
115 | # WITH_GEANT4_UIVIS=ON |
---|
116 | variant qt description {Build with Qt support} { |
---|
117 | depends_lib-append port:qt4-mac |
---|
118 | |
---|
119 | configure.args-append -DGEANT4_USE_QT=ON |
---|
120 | # maybe we need more variables? |
---|
121 | } |
---|
122 | |
---|
123 | # TODO: GEANT4_INSTALL_DATADIR is set to /opt/local/share/Geant4-10.0.0/data by default, but we could use different folder |
---|
124 | |
---|
125 | configure.args-append -DGEANT4_INSTALL_DATA=OFF \ |
---|
126 | -DGEANT4_INSTALL_DATADIR=${prefix}/share/Geant${version}/data \ |
---|
127 | -DGEANT4_BUILD_EXAMPLES=ON \ |
---|
128 | -DGEANT4_INSTALL_EXAMPLES=ON \ |
---|
129 | -DWITH_GEANT4_UIVIS=ON \ |
---|
130 | -DGEANT4_USE_OPENGL_X11=ON |
---|
131 | |
---|
132 | default_variants +qt |
---|