Changeset 102134 for trunk/dports/gis


Ignore:
Timestamp:
Jan 28, 2013, 9:04:34 AM (7 years ago)
Author:
jeremyhu@…
Message:

cgal: Use compiler.blacklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/cgal/Portfile

    r100235 r102134  
    5252
    5353# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
     54compiler.blacklist-append gcc-4.0
    5455
    55 if {${configure.compiler} == "gcc-4.0"} {
    56     configure.compiler gcc-4.2
    57     if {![file executable ${configure.cc}]} {
    58         depends_build-append port:apple-gcc42
    59         configure.compiler apple-gcc-4.2
    60     }
    61 }
     56# TODO: base should do this: http://trac.macports.org/ticket/32542
     57if {[portconfigure::compiler_is_port ${configure.compiler}]} {
     58    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
     59    depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
     60}
    6261
    6362variant demos description {Create demos} requires qt4 {
Note: See TracChangeset for help on using the changeset viewer.