Changeset 121122


Ignore:
Timestamp:
Jun 18, 2014, 7:01:50 AM (6 years ago)
Author:
mojca@…
Message:

root6: no cppflags (#42872), use proper clang variant (#43917), set version_major automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/root6/Portfile

    r120764 r121122  
    1414#github.setup       root-mirror root 6-00-00 v
    1515version             6.00.00
     16set version_major   [lindex [split ${version} .] 0]
     17revision            1
    1618checksums           rmd160  e0b7080d897469f421dd5ee44ca570a4774dc5d4 \
    1719                    sha256  58692b7e2c970df5eac0dd298ab7d1ac5352e4ed549d61c29578d71915e831be
    1820
    19 name                root6
    20 set version_major   6
     21name                root${version_major}
    2122categories          science
    2223maintainers         hep.phy.cam.ac.uk:jonesc mojca
     
    118119configure.post_args ${worksrcpath}
    119120
    120 # TODO: temporary:
    121 configure.args-append       -DCMAKE_INCLUDE_PATH=${prefix}/include
    122 configure.cppflags-delete   -I${prefix}/include
    123 
    124121platform darwin {
    125122    # Note that we are forcing this choice.  This means that anything linking
     
    455452}
    456453
     454# make sure that the proper variant is automatically selected
     455# (ROOT crashes if the compiler it was built with doesn't exist)
     456if {![variant_isset clang33] && ![variant_isset clang34] && ![variant_isset clang35]} {
     457    if { ${configure.compiler} eq "macports-clang-3.3" } {
     458        default_variants-append +clang33
     459    } elseif { ${configure.compiler} eq "macports-clang-3.4" } {
     460        default_variants-append +clang34
     461    } elseif { ${configure.compiler} eq "macports-clang-3.5" } {
     462        default_variants-append +clang35
     463    }
     464}
     465
    457466# Is a variant active ?
    458467set active_clang_variant ""
Note: See TracChangeset for help on using the changeset viewer.