Ignore:
Timestamp:
Jan 29, 2013, 7:53:39 AM (7 years ago)
Author:
jeremyhu@…
Message:

misc: Update compiler dependency workaround for #32542, see #37817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/opencv/Portfile

    r102100 r102174  
    110110compiler.blacklist-append       {clang < 318}
    111111
    112 # TODO: base should do this: http://trac.macports.org/ticket/32542
    113 if {[portconfigure::compiler_is_port ${configure.compiler}]} {
    114     depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
    115     depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
     112# TODO: base should do this: http://trac.macports.org/ticket/32542
     113if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
     114    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
     115
     116    # base 2.1.x ignores the argument and just use ${configure.compiler}
     117    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
     118        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
     119    }
     120
     121    if {[string match macports-gcc* ${configure.compiler}]} {
     122        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
     123    }
    116124}
    117125
Note: See TracChangeset for help on using the changeset viewer.