Changeset 114237 for trunk/dports/mail


Ignore:
Timestamp:
Dec 3, 2013, 9:36:15 AM (6 years ago)
Author:
jeremyhu@…
Message:

misc: Automatically prefer webkit-gtk-2.0 over webkit-gtk if using libstdc++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/claws-mail/Portfile

    r114235 r114237  
    4646                gtk2 x11
    4747
     48platform darwin {
     49    set cxx_stdlib {}
     50
     51    if {[info exists configure.cxx_stdlib] &&
     52        ${configure.cxx_stdlib} ne {} &&
     53        [string match *clang* ${configure.cxx}]} {
     54        set cxx_stdlib ${configure.cxx_stdlib}
     55    } elseif {[string match *clang* ${configure.cxx}] &&
     56              ${os.major} >= 13} {
     57        set cxx_stdlib libc++
     58    } else {
     59        set cxx_stdlib libstdc++
     60    }
     61
     62    if {${cxx_stdlib} == "libstdc++"} {
     63       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
     64       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
     65    }
     66}
     67
    4868configure.args  --disable-jpilot \
    4969                --disable-acpi_notifier-plugin \
Note: See TracChangeset for help on using the changeset viewer.