Ticket #42867: root.diff
File root.diff, 4.5 KB (added by cjones051073 (Chris Jones), 11 years ago) |
---|
-
science/root/
old new 4 4 PortSystem 1.0 5 5 6 6 name root 7 version 5.34.1 77 version 5.34.18 8 8 9 9 categories science 10 10 maintainers gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc … … 19 19 master_sites http://root.cern.ch/download/ \ 20 20 ftp://root.cern.ch/root/ 21 21 22 checksums rmd160 0770aeb370699162c0f02c561060ee5388dd5ddb\23 sha256 8e7e13d41e13b6837a3bc784f86e491bed2ee37c157a3be8c74ead9b33c2be8a22 checksums rmd160 2fbaff8f831611779b42480fcb86cbde34ef72bd \ 23 sha256 9196dce7d76b31e5bcabd985bd31bc4d9b7c8c4d0c7ce84f730efa4ef82a3567 24 24 25 25 worksrcdir root 26 26 … … 389 389 variant cocoa conflicts x11 description {Enables native OSX graphical backend} { 390 390 # Force a compatible clang compiler 391 391 PortGroup compiler_blacklist_versions 1.0 392 compiler.blacklist-append {clang < 425} *gcc* macports-clang-3. 3 macports-clang-2.9 macports-clang-3.0393 compiler.fallback-append macports-clang-3. 2 macports-clang-3.1392 compiler.blacklist-append {clang < 425} *gcc* macports-clang-3.2 macports-clang-3.1 macports-clang-3.0 macports-clang-2.9 393 compiler.fallback-append macports-clang-3.4 macports-clang-3.3 394 394 # Enable cocoa support in configure 395 395 configure.args-delete --disable-cocoa 396 396 configure.args-append --enable-cocoa … … 410 410 default_variants-append ${default_gui_variant} 411 411 } 412 412 413 variant clang31 conflicts clang32 clang33 description {Compile using MacPorts clang 3.1} { 414 configure.compiler macports-clang-3.1 415 } 416 if {[string match macports-clang-3.1 ${configure.compiler}]} { 417 configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1" 418 depends_run-append port:clang-3.1 419 } 413 # ======================================================================================== 414 # Setup various clang variants, to provide alternative C++ compilers that support cocoa 415 # ======================================================================================== 420 416 421 variant clang32 conflicts clang31 clang33 description {Compile using MacPorts clang 3.2} { 422 configure.compiler macports-clang-3.2 423 } 424 if {[string match macports-clang-3.2 ${configure.compiler}]} { 425 configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-3.2" 426 depends_run-append port:clang-3.2 427 } 417 # List of possible clang versions that work 418 set clang_versions { 3.3 3.4 3.5 } 428 419 429 variant clang33 conflicts clang31 clang32 description {Compile using MacPorts clang 3.3} { 430 configure.compiler macports-clang-3.3 420 # Define the available variants 421 foreach ver ${clang_versions} { 422 set ver_no_dot [join [split ${ver} "."] ""] 423 set variant_line {variant clang${ver_no_dot} description "Compile using MacPorts clang ${ver}"} 424 foreach over ${clang_versions} { 425 if { ${ver} == ${over} } { continue } 426 set over_no_dot [join [split ${over} "."] ""] 427 append variant_line " conflicts clang${over_no_dot}" 428 } 429 append variant_line { { } } 430 eval $variant_line 431 431 } 432 if {[string match macports-clang-3.3 ${configure.compiler}]} { 433 configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-3.3" 434 depends_run-append port:clang-3.3 432 433 # Is a variant active ? 434 set active_clang_variant "" 435 foreach ver ${clang_versions} { 436 set ver_no_dot [join [split ${ver} "."] ""] 437 if {[variant_isset clang${ver_no_dot}]} { 438 set active_clang_variant ${ver} 439 } 435 440 } 436 441 437 if {[variant_isset qt_mac]} { 438 PortGroup qt4 1.0 442 # If so, set it up. 443 if { ${active_clang_variant} != "" } { 444 configure.compiler macports-clang-${active_clang_variant} 445 configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-"${active_clang_variant} 446 depends_run-append port:clang-${active_clang_variant} 439 447 } 440 448 449 # ======================================================================================== 450 441 451 variant qt_mac description {Build with Qt support via Mac UI} { 442 452 post-patch { 443 453 # fix where "qglobal.h" is found in all files that use or reference it … … 469 479 } 470 480 } 471 481 482 if {[variant_isset qt_mac]} { 483 PortGroup qt4 1.0 484 } 485 472 486 # ======================================================================================== 473 487 # Following is for fortran support 474 488 # Might eventually move to a portgroup, or similar, so could be simplified.