Changeset 149145


Ignore:
Timestamp:
Jun 1, 2016, 11:39:34 PM (3 years ago)
Author:
mmoll@…
Message:

math/qhull: simplify compiler selection. see #51544.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/qhull/Portfile

    r149135 r149145  
    55PortGroup           cmake 1.0
    66PortGroup  compiler_blacklist_versions 1.0
     7PortGroup           compilers 1.0
    78cmake.out_of_source yes
    89
     
    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
     
    7767livecheck.url       ${master_sites}
    7868livecheck.regex     Download: Qhull (\[0-9.\]+) for Unix
     69
     70test.run  yes
Note: See TracChangeset for help on using the changeset viewer.