Modified: trunk/dports/graphics/graphviz/Portfile (115389 => 115390)
--- trunk/dports/graphics/graphviz/Portfile 2014-01-01 06:47:49 UTC (rev 115389)
+++ trunk/dports/graphics/graphviz/Portfile 2014-01-01 07:09:12 UTC (rev 115390)
@@ -40,7 +40,7 @@
minimum_xcodeversions {9 3.1.2}
if {${name} eq ${subport}} {
-revision 2
+revision 3
conflicts graphviz${otherbranch}
@@ -106,10 +106,37 @@
--disable-ruby \
--disable-tcl
+# Teach glibtool about -stdlib=libc++
+use_autoreconf yes
+autoreconf.args -fvi
+
platform macosx {
if {${os.major} > 8} {
configure.args-replace --without-quartz --with-quartz
}
+
+ post-patch {
+ 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 {${cxxstdlib} == "libc++"} {
+ reinplace "s:-lstdc\+\+:-lc++:" \
+ ${worksrcpath}/configure.ac \
+ ${worksrcpath}/cmd/dot/Makefile.am \
+ ${worksrcpath}/cmd/mingle/Makefile.am \
+ ${worksrcpath}/plugin/gdiplus/Makefile.am
+ }
+ }
}
variant guile description {Include Guile language bindings} {