Ticket #38868: root.diff

File root.diff, 4.3 KB (added by cjones051073 (Chris Jones), 11 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                root
    7 version             5.34.05
    8 revision            1
     7version             5.34.06
     8revision            0
    99categories          science
    1010maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
    1111license             LGPL-2.1+
     
    1919master_sites        http://root.cern.ch/download/ \
    2020                    ftp://root.cern.ch/root/
    2121
    22 checksums           rmd160  eeb3c54b292ee6258c33d16ef28c03aa9fa077c3 \
    23                     sha256  448e180a5ed6f53b5ee49ead014a98e742e97198a4ca760f086467db5d230c9d
     22checksums           rmd160  643fd9b787f52843295b1e6ae8f22622141c3337 \
     23                    sha256  ddbec31fee5bd645203d8c464f98bb29e7ce2bc63976fba885c2ed0b1a09016a
    2424
    2525worksrcdir          root
    2626
     
    368368variant cocoa description {Enables native OSX graphical backend instead of X11} {
    369369    # Check we are using a clang compiler
    370370    pre-fetch {
    371         if { ![string match "*clang*" ${configure.compiler}] } {
     371        if { ![string match "*clang*" ${configure.compiler}] || [string match "macports-clang-3.3" ${configure.compiler}] } {
    372372            ui_error "The cocoa variant is experimental and can currently only be built"
    373             ui_error "using a clang compiler. Your current compiler is ${configure.compiler}."
    374             ui_error "Please try again using either the clang31 variant, or the system"
    375             ui_error "clang compiler using configure.compiler=clang"
     373            ui_error "using a clang(<3.3) compiler. Your current compiler is ${configure.compiler}."
     374            ui_error "Please try again using either of the clang31 or clang32 variants,"
     375            ui_error "or the system clang compiler using configure.compiler=clang"
    376376            return -code error "Unsupported compiler for cocoa support"
    377377        }
    378378    }
     
    383383    patchfiles-append patch-builtin-afterimage-disabletiff.diff
    384384}
    385385
    386 variant gcc45 conflicts gcc46 gcc47 gcc48 clang31 description {Compile using MacPorts gcc 4.5} {
     386variant gcc45 conflicts gcc46 gcc47 gcc48 clang31 clang32 clang33 description {Compile using MacPorts gcc 4.5} {
    387387    configure.compiler      macports-gcc-4.5
    388388    depends_lib-append      port:gcc45
    389389}
    390390
    391 variant gcc46 conflicts gcc45 gcc47 gcc48 clang31 description {Compile using MacPorts gcc 4.6} {
     391variant gcc46 conflicts gcc45 gcc47 gcc48 clang31 clang32 clang33 description {Compile using MacPorts gcc 4.6} {
    392392    configure.compiler      macports-gcc-4.6
    393393    depends_lib-append      port:gcc46
    394394}
    395395
    396 variant gcc47 conflicts gcc45 gcc46 gcc48 clang31 description {Compile using MacPorts gcc 4.7} {
     396variant gcc47 conflicts gcc45 gcc46 gcc48 clang31 clang32 clang33 description {Compile using MacPorts gcc 4.7} {
    397397    configure.compiler      macports-gcc-4.7
    398398    depends_lib-append      port:gcc47
    399399}
    400400
    401 variant gcc48 conflicts gcc45 gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.8} {
     401variant gcc48 conflicts gcc45 gcc46 gcc47 clang31 clang32 clang33 description {Compile using MacPorts gcc 4.8} {
    402402    configure.compiler      macports-gcc-4.8
    403403    depends_lib-append      port:gcc48
    404404}
    405405
    406 variant clang31 conflicts gcc45 gcc46 gcc47 gcc48 description {Compile using MacPorts clang 3.1} {
     406variant clang31 conflicts gcc45 gcc46 gcc47 gcc48 clang32 clang33 description {Compile using MacPorts clang 3.1} {
    407407    configure.compiler      macports-clang-3.1
    408408    depends_lib-append      port:clang-3.1
    409409    configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1"
    410410}
    411411
     412variant clang32 conflicts gcc45 gcc46 gcc47 gcc48 clang31 clang33 description {Compile using MacPorts clang 3.2} {
     413    configure.compiler      macports-clang-3.2
     414    depends_lib-append      port:clang-3.2
     415    configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.2"
     416}
     417
     418variant clang33 conflicts gcc45 gcc46 gcc47 gcc48 clang31 clang32 description {Compile using MacPorts clang 3.3} {
     419    configure.compiler      macports-clang-3.3
     420    depends_lib-append      port:clang-3.3
     421    configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.3"
     422}
     423
    412424if {[variant_isset qt_mac]} {
    413425    PortGroup qt4 1.0
    414426}