Ignore:
Timestamp:
Dec 26, 2013, 2:12:09 AM (5 years ago)
Author:
jeremyhu@…
Message:

misc: Rename cxx_stdlib to cxxstdlib to not conflict with the possible setting in macports.conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/webkit-gtk/Portfile

    r115135 r115137  
    8585        --enable-webgl
    8686
     87# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
    8788platform darwin {
    8889    pre-configure {
    89         set cxx_stdlib {}
     90        set cxxstdlib {}
    9091
    9192        if {[info exists configure.cxx_stdlib] &&
    9293            ${configure.cxx_stdlib} ne {} &&
    9394            [string match *clang* ${configure.cxx}]} {
    94             set cxx_stdlib ${configure.cxx_stdlib}
     95            set cxxstdlib ${configure.cxx_stdlib}
    9596        } elseif {[string match *clang* ${configure.cxx}] &&
    9697                  ${os.major} >= 13} {
    97             set cxx_stdlib libc++
     98            set cxxstdlib libc++
    9899        } else {
    99             set cxx_stdlib libstdc++
    100         }
    101 
    102         if {${cxx_stdlib} eq "libstdc++"} {
     100            set cxxstdlib libstdc++
     101        }
     102
     103        if {${cxxstdlib} eq "libstdc++"} {
    103104            ui_error "${subport} is not supported for this installation of MacPorts.  It requires libc++ be selected as your C++ runtime.  Please use ${subport}-2.0 instead"
    104105            error "unsupported configuration"
Note: See TracChangeset for help on using the changeset viewer.