Ticket #42999: geant4-9.6.p03-clhep-noblacklist.diff
File geant4-9.6.p03-clhep-noblacklist.diff, 5.6 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
33 33 # 34 34 # if we start distributing betas, epoch will have to be added for the transition from version 4.x.y.b01 to 4.x.y 35 35 set geant.versions_info { 36 9.5 10 2 4.9.5.p02 33413f6233b75c003254af5888f4af32d17f515d adb04fce9472228bb10d78cbc7f40493bfb37454beee22e7c80d630646cd377737 9.6 1 0 2 4.9.6.p02 9ae32c3f8769e303b41df164693f77a74ca6db97 cf5df83b7e2c99e6729449b32d3ecb0727b4692317426b66fc7fd41951c7351f38 10.0 00 1 4.10.00.p01 f1f70d381cef712781a1d0f13ffa4cb8fb4fa6a9 09c431ff3ef81034282c46501cea01046d4a20438c2ea2a7339576e1ecf26ba036 9.5 2 0 2 4.9.5.p02 33413f6233b75c003254af5888f4af32d17f515d adb04fce9472228bb10d78cbc7f40493bfb37454beee22e7c80d630646cd3777 37 9.6 0 0 3 4.9.6.p03 581acefab40a25f5c7123cfa3a93c2a9d3ef2c73 3a7e969039e8992716b3bc33b44cbdbff9c8d5850385f1a02fdd756a4fa6305c 38 10.0 1 0 1 4.10.00.p01 f1f70d381cef712781a1d0f13ffa4cb8fb4fa6a9 09c431ff3ef81034282c46501cea01046d4a20438c2ea2a7339576e1ecf26ba0 39 39 } 40 40 41 41 set geant.data_versions_10.0 { … … 166 166 file mkdir ${configure.dir} 167 167 } 168 168 169 # https://trac.macports.org/ticket/42841170 # https://trac.macports.org/ticket/42875171 compiler.blacklist {clang > 503} macports-clang-3.4 macports-clang-3.5172 173 169 configure.post_args ${worksrcpath} 174 170 175 171 # check if these are all the dependencies 176 172 depends_lib port:${subport}-data \ 177 port:clhep \178 173 port:expat \ 179 port:root \180 174 port:zlib 181 175 depends_run port:geant4_select 182 176 … … 184 178 select.file ${filespath}/${subport} 185 179 186 180 configure.args-append -DGEANT4_USE_SYSTEM_EXPAT=ON \ 187 -DGEANT4_USE_SYSTEM_CLHEP=ON \ 188 -DCLHEP_CONFIG_EXECUTABLE=${prefix}/bin/clhep-config \ 189 -DCLHEP_INCLUDE_DIR=${prefix}/include \ 190 -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib 181 -DGEANT4_USE_SYSTEM_CLHEP=OFF 191 182 192 # GEANT4_USE_SYSTEM_CLHEP=OFF193 194 183 # - patch-upstream-source-interfaces-common-src-G4Qt.cc: 195 184 # http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1487 196 185 # - patch-upstream-examples-advanced-xray_fluorescence: … … 309 298 -DGEANT4_INSTALL_EXAMPLES=ON 310 299 } 311 300 301 variant clhep {Use external clhep} { 302 depends_lib-append port:clhep 303 configure.args-replace \ 304 -DGEANT4_USE_SYSTEM_CLHEP=OFF -DGEANT4_USE_SYSTEM_CLHEP=ON 305 configure.args-append -DGEANT4_USE_SYSTEM_EXPAT=ON \ 306 -DGEANT4_USE_SYSTEM_CLHEP=ON \ 307 -DCLHEP_CONFIG_EXECUTABLE=${prefix}/bin/clhep-config \ 308 -DCLHEP_INCLUDE_DIR=${prefix}/include \ 309 -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib 310 } 311 312 312 default_variants +gdml +qt 313 313 } 314 314 } -
files/patch-cmake-Modules-Geant4InterfaceOptions.cmake.496.diff
1 1 --- cmake/Modules/Geant4InterfaceOptions.cmake.orig 2 2 +++ cmake/Modules/Geant4InterfaceOptions.cmake 3 @@ -1 41,20 +141,11 @@ if(UNIX)3 @@ -174,22 +174,11 @@ if(UNIX) 4 4 set(CMAKE_FIND_FRAMEWORK NEVER) 5 5 6 6 set(X11_INC_SEARCH_PATH … … 11 11 - /usr/openwin/include 12 12 - /usr/openwin/share/include 13 13 - /opt/graphics/OpenGL/include 14 - )14 - /opt/X11/include 15 15 + @PREFIX@/include 16 +)16 ) 17 17 18 18 set(X11_LIB_SEARCH_PATH 19 19 - /usr/pkg/xorg/lib … … 20 20 - /usr/X11R6/lib 21 21 - /usr/X11R7/lib 22 22 - /usr/openwin/lib 23 - /opt/X11/lib 23 24 + @PREFIX@/lib 24 25 ) 25 26 26 27 find_path(X11_Xmu_INCLUDE_PATH X11/Xmu/Xmu.h ${X11_INC_SEARCH_PATH}) 27 @@ - 197,17 +188,17 @@ if(UNIX)28 @@ -232,17 +221,17 @@ if(UNIX) 28 29 set(CMAKE_FIND_FRAMEWORK NEVER) 29 30 30 31 find_path(OPENGL_X11_INCLUDE_DIR GL/gl.h 31 - PATHS /usr/X11R6/include 32 - PATHS /usr/X11R6/include /opt/X11/include 32 33 + PATHS @PREFIX@/include 33 34 NO_DEFAULT_PATH 34 35 ) 35 36 36 37 find_library(OPENGL_X11_gl_LIBRARY GL 37 - PATHS /usr/X11R6/lib 38 - PATHS /usr/X11R6/lib /opt/X11/lib 38 39 + PATHS @PREFIX@/lib 39 40 NO_DEFAULT_PATH 40 41 ) 41 42 42 43 find_library(OPENGL_X11_glu_LIBRARY GLU 43 - PATHS /usr/X11R6/lib 44 - PATHS /usr/X11R6/lib /opt/X11/lib 44 45 + PATHS @PREFIX@/lib 45 46 NO_DEFAULT_PATH 46 47 ) -
files/patch-upstream-source-interfaces-common-src-G4Qt.cc.496.diff
2 2 * http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1487 3 3 --- source/interfaces/common/src/G4Qt.cc.orig 4 4 +++ source/interfaces/common/src/G4Qt.cc 5 @@ -1 53,6 +153,20 @@ G4Qt::G4Qt (5 @@ -148,6 +148,20 @@ G4Qt::G4Qt ( 6 6 } 7 7 #endif 8 8 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent);