Ticket #47547: root6.diff
File root6.diff, 3.6 KB (added by cjones051073 (Chris Jones), 10 years ago) |
---|
-
Portfile
10 10 PortGroup select 1.0 11 11 12 12 # don't forget to update both the git tag and the version 13 github.setup root-mirror root 9ab0642adeca5d3703783bdbfeebfca86ea22af914 #github.setup root-mirror root 6-03-02v15 version 6.03.0 2.9113 #github.setup root-mirror root 9ab0642adeca5d3703783bdbfeebfca86ea22af9 14 github.setup root-mirror root 6-03-04 v 15 version 6.03.04 16 16 17 17 # this could be a better way to set the version (unless we use a sha sum for the git tag ;) 18 18 # version [string map {- .} $version] 19 19 set version_major [lindex [split ${version} .] 0] 20 20 21 checksums rmd160 a4f3e4248b4e5be9540dab481e5e919e66e40142\22 sha256 006dc44790d84eddfaaef90418a484e3cbb6d3978e731ea7a9b09e732f147c1821 checksums rmd160 f00aa3a334790c9b7da7871c33015cd1d72d2c43 \ 22 sha256 ea3d11119cb7ff606178c777fdd4276ef6ee0424a99d196f41fbeb92c3c36bfd 23 23 24 24 name root${version_major} 25 25 categories science … … 57 57 select.file ${filespath}/${name} 58 58 59 59 # Force a compatible compiler 60 compiler.blacklist-append *gcc* {clang < 500} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2 61 compiler.fallback-append macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 60 compiler.blacklist-append *gcc* {clang < 500} \ 61 macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 \ 62 macports-clang-3.2 macports-clang-3.3 63 compiler.fallback-append macports-clang-3.6 macports-clang-3.5 macports-clang-3.4 62 64 63 65 # port specific location 64 66 set install_prefix ${prefix}/libexec/root${version_major} … … 513 515 # ======================================================================================== 514 516 515 517 # List of possible clang versions that work 516 set clang_versions { 3. 3 3.4 3.5 3.6}518 set clang_versions { 3.4 3.5 3.6 3.7 } 517 519 518 520 # Define the available variants 519 521 foreach clang_ver ${clang_versions} { … … 530 532 531 533 # make sure that the proper variant is automatically selected 532 534 # (ROOT crashes if the compiler it was built with doesn't exist) 533 if {![variant_isset clang33] && ![variant_isset clang34] && ![variant_isset clang35]} { 534 if { ${configure.compiler} eq "macports-clang-3.3" } { 535 if { ![variant_isset clang33] && ![variant_isset clang34] && 536 ![variant_isset clang35] && ![variant_isset clang36] && 537 ![variant_isset clang37] } { 538 if { ${configure.compiler} eq "macports-clang-3.3" } { 535 539 default_variants-append +clang33 536 540 } elseif { ${configure.compiler} eq "macports-clang-3.4" } { 537 541 default_variants-append +clang34 … … 539 543 default_variants-append +clang35 540 544 } elseif { ${configure.compiler} eq "macports-clang-3.6" } { 541 545 default_variants-append +clang36 546 } elseif { ${configure.compiler} eq "macports-clang-3.7" } { 547 default_variants-append +clang37 542 548 } 543 549 } 544 550 … … 553 559 554 560 # If so, set it up. 555 561 if { ${active_clang_variant} != "" } { 556 configure.compiler 562 configure.compiler macports-clang-${active_clang_variant} 557 563 # TODO 558 564 # configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-"${active_clang_variant} 559 depends_run-append 565 depends_run-append port:clang-${active_clang_variant} 560 566 } 561 567 562 568 # ========================================================================================