[115574] trunk/dports/graphics/makeicns/Portfile
Ryan Schmidt
ryandesign at macports.org
Sun Jan 5 13:14:28 PST 2014
On Jan 5, 2014, at 13:58, jeremyhu at macports.org wrote:
> Revision
> 115574
> Author
> jeremyhu at macports.org
> Date
> 2014-01-05 11:58:38 -0800 (Sun, 05 Jan 2014)
> Log Message
>
> makeicns: Link against correct C++ runtime
> Modified: trunk/dports/graphics/makeicns/Portfile (115573 => 115574)
> +# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
> +platform darwin {
> + set cxxstdlib {}
> +
> + if {[info exists configure.cxx_stdlib] &&
> + ${configure.cxx_stdlib} ne {} &&
> + [string match *clang* ${configure.cxx}]} {
> + set cxxstdlib ${configure.cxx_stdlib}
> + } elseif {[string match *clang* ${configure.cxx}] &&
> + ${os.major} >= 13} {
> + set cxxstdlib libc++
> + } else {
> + set cxxstdlib libstdc++
> + }
> +
> + if {[string match *clang* ${configure.cxx}]} {
> + configure.cxxflags-append -stdlib=${cxxstdlib}
> + configure.ldflags-append -stdlib=${cxxstdlib}
> + }
> +}
It sucks having to add this boilerplate to each port. How do we fix base to make this unnecessary? Or does trunk already take care of it?
More information about the macports-dev
mailing list