Revision: 115368 https://trac.macports.org/changeset/115368 Author: jeremyhu@macports.org Date: 2013-12-31 18:14:44 -0800 (Tue, 31 Dec 2013) Log Message: ----------- faac: Build fix for non-default C++ runtimes Modified Paths: -------------- trunk/dports/audio/faac/Portfile Modified: trunk/dports/audio/faac/Portfile =================================================================== --- trunk/dports/audio/faac/Portfile 2014-01-01 02:00:56 UTC (rev 115367) +++ trunk/dports/audio/faac/Portfile 2014-01-01 02:14:44 UTC (rev 115368) @@ -4,7 +4,7 @@ name faac version 1.28 -revision 2 +revision 3 categories audio license Restrictive maintainers nomaintainer @@ -23,6 +23,30 @@ patchfiles patch-configure.in.diff +# 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++ + } + + post-patch { + if {${cxxstdlib} == "libc++"} { + reinplace "s:-lstdc\+\+:-lc++:" \ + ${worksrcpath}/frontend/Makefile.am \ + ${worksrcpath}/frontend/Makefile.in + } + } +} + configure.cflags-append "-D__unix__" use_autoreconf yes
participants (1)
-
jeremyhu@macports.org