Modified: trunk/dports/audio/faac/Portfile (115367 => 115368)
--- 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