Ticket #40394: dragonegg-libc++.patch

File dragonegg-libc++.patch, 2.2 KB (added by larryv (Lawrence Velázquez), 11 years ago)

fix for dragonegg-3.3 and dragonegg-3.4

  • Users/larryv/Projects/MacPorts/svn/trunk/dports/lang/dragonegg-3.3/Portfile

     
    117117    }
    118118}
    119119
     120set cxx_stdlibflags {}
     121if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
     122    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
     123}
    120124build.env-append \
    121125    LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
    122126    GCC=${prefix}/bin/gcc-mp-${gcc_version} \
    123127    CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
    124     CXX="${configure.cxx} ${configure.cppflags} ${configure.cxxflags} [get_canonical_archflags cxx]"
     128    CXX="${configure.cxx} ${configure.cppflags} ${configure.cxxflags} ${cxx_stdlibflags} [get_canonical_archflags cxx]"
    125129
    126130destroot {
    127131    xinstall -m 755 -d ${destroot}${prefix}/libexec/dragonegg
  • Users/larryv/Projects/MacPorts/svn/trunk/dports/lang/dragonegg-3.4/Portfile

     
    122122    }
    123123}
    124124
     125set cxx_stdlibflags {}
     126if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
     127    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
     128}
    125129build.env-append \
    126130    LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
    127131    GCC=${prefix}/bin/gcc-mp-${gcc_version} \
    128132    CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
    129     CXX="${configure.cxx} ${configure.cppflags} ${configure.cxxflags} [get_canonical_archflags cxx]"
     133    CXX="${configure.cxx} ${configure.cppflags} ${configure.cxxflags} ${cxx_stdlibflags} [get_canonical_archflags cxx]"
    130134
    131135destroot {
    132136    xinstall -m 755 -d ${destroot}${prefix}/libexec/dragonegg