Modified: trunk/dports/graphics/graphviz-devel/Portfile (115434 => 115435)
--- trunk/dports/graphics/graphviz-devel/Portfile 2014-01-02 01:31:22 UTC (rev 115434)
+++ trunk/dports/graphics/graphviz-devel/Portfile 2014-01-02 01:35:43 UTC (rev 115435)
@@ -9,7 +9,7 @@
name graphviz-devel
set my_name graphviz
-version 2.35.20131223.0545
+version 2.35.20140101.0545
set thisbranch [strsed ${name} "g/^${my_name}//"]
set otherbranch [expr {${thisbranch} eq {} ? {-devel} : {}}]
categories graphics
@@ -32,8 +32,8 @@
simple text language, and produce output in a \
variety of visual and text formats.
-checksums rmd160 bb168375c859405d5bf7d44af0aa08ad6327fbf0 \
- sha256 7076d4441e688f72063908a8bd629471c6b0c36d1cd8a6fbc52cc18b81a659fd
+checksums rmd160 3c3e7b50d75008cdd27fbfdaaa08290345f800ca \
+ sha256 deae073ff9311f970cb0489cd534d841637821da64dae7bf4ad87a22f34de73a
# graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
# graphviz-gui needs Xcode 3.1.2+; see #18811
@@ -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} {