[115390] trunk/dports/graphics/graphviz/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Tue Dec 31 23:09:12 PST 2013
Revision: 115390
https://trac.macports.org/changeset/115390
Author: jeremyhu at macports.org
Date: 2013-12-31 23:09:12 -0800 (Tue, 31 Dec 2013)
Log Message:
-----------
graphviz: Link against correct C++ runtime
Modified Paths:
--------------
trunk/dports/graphics/graphviz/Portfile
Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- 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} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131231/63ca1c93/attachment.html>
More information about the macports-changes
mailing list