Ignore:
Timestamp:
Jan 1, 2014, 2:00:56 AM (6 years ago)
Author:
jeremyhu@…
Message:

unrar: Build fix for non-default C++ runtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/unrar/Portfile

    r114325 r115367  
    77set my_name             ${name}src
    88version                 4.2.4
     9revision                1
    910categories              archivers
    1011platforms               darwin freebsd
     
    3839}
    3940
     41# TODO: Simplify once MacPorts 2.3 is released
     42set cxx_stdlibflags {}
     43if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
     44    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
     45}
     46
    4047build.args              -f makefile.unix \
    4148                        CXX="[join ${configure.cxx}]"
     
    4653
    4754pre-build {
    48     build.args-append   CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
    49                         LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     55    build.args-append   CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx] ${cxx_stdlibflags}" \
     56                        LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] ${cxx_stdlibflags}"
    5057}
    5158
Note: See TracChangeset for help on using the changeset viewer.