Ignore:
Timestamp:
Dec 26, 2013, 1:11:24 AM (5 years ago)
Author:
jeremyhu@…
Message:

webkit-gtk: Check configure.cxx_stdlib during pre-configure

File:
1 edited

Legend:

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

    r115019 r115135  
    8686
    8787platform darwin {
    88     set cxx_stdlib {}
    89 
    90     if {[info exists configure.cxx_stdlib] &&
    91         ${configure.cxx_stdlib} ne {} &&
    92         [string match *clang* ${configure.cxx}]} {
    93         set cxx_stdlib ${configure.cxx_stdlib}
    94     } elseif {[string match *clang* ${configure.cxx}] &&
    95               ${os.major} >= 13} {
    96         set cxx_stdlib libc++
    97     } else {
    98         set cxx_stdlib libstdc++
    99     }
    100 
    10188    pre-configure {
     89        set cxx_stdlib {}
     90
     91        if {[info exists configure.cxx_stdlib] &&
     92            ${configure.cxx_stdlib} ne {} &&
     93            [string match *clang* ${configure.cxx}]} {
     94            set cxx_stdlib ${configure.cxx_stdlib}
     95        } elseif {[string match *clang* ${configure.cxx}] &&
     96                  ${os.major} >= 13} {
     97            set cxx_stdlib libc++
     98        } else {
     99            set cxx_stdlib libstdc++
     100        }
     101
    102102        if {${cxx_stdlib} eq "libstdc++"} {
    103103            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"
Note: See TracChangeset for help on using the changeset viewer.