Ticket #51544: Portfile.diff

File Portfile.diff, 1.6 KB (added by dstrubbe (David Strubbe), 8 years ago)
  • Portfile

     
    44PortSystem 1.0
    55PortGroup           cmake 1.0
    66PortGroup  compiler_blacklist_versions 1.0
     7PortGroup           compilers 1.0
    78cmake.out_of_source yes
    89
    910name                qhull
     
    4849# qhull requires compiler with -Wno-sign-conversion
    4950# 10.6 doesn't have it by default
    5051platform darwin 10 {
    51     variant gcc47 description {build qhull with gcc47} {
    52         depends_build-append  port:gcc47
    53         configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.7 \
    54         -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.7
     52    compilers.choose      cc cxx
     53    compilers.setup
     54    if {![c_variant_isset]} {
     55        default_variants-append  +${compilers.gcc_default}
    5556    }
    56     variant gcc48 description {build qhull with gcc48} {
    57         depends_build-append  port:gcc48
    58         configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.8 \
    59         -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.8
    60     }
    61     variant gcc5 description {build qhull with gcc5} {
    62         depends_build-append  port:gcc5
    63         configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-5 \
    64         -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-5
    65     }
    66     default_variants          +gcc5
    6757}
    6858
    6959configure.args-append   -DDOC_INSTALL_DIR=share/doc/qhull -DMAN_INSTALL_DIR=share/man/man1
     
    7666livecheck.type      regex
    7767livecheck.url       ${master_sites}
    7868livecheck.regex     Download: Qhull (\[0-9.\]+) for Unix
     69
     70test.run  yes