[115348] trunk/dports/textproc/doxygen/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Dec 31 11:47:11 PST 2013


Revision: 115348
          https://trac.macports.org/changeset/115348
Author:   jeremyhu at macports.org
Date:     2013-12-31 11:47:11 -0800 (Tue, 31 Dec 2013)
Log Message:
-----------
doxygen: Build fix for non-standard C++ runtimes

Modified Paths:
--------------
    trunk/dports/textproc/doxygen/Portfile

Modified: trunk/dports/textproc/doxygen/Portfile
===================================================================
--- trunk/dports/textproc/doxygen/Portfile	2013-12-31 19:36:29 UTC (rev 115347)
+++ trunk/dports/textproc/doxygen/Portfile	2013-12-31 19:47:11 UTC (rev 115348)
@@ -5,7 +5,7 @@
 
 name                    doxygen
 version                 1.8.5
-revision                2
+revision                3
 categories              textproc devel
 maintainers             css
 license                 GPL-2
@@ -74,15 +74,21 @@
     delete ${worksrcpath}/src/vhdlparser.h
 }
 
+# TODO: Simplify once MacPorts 2.3 is released
+set cxx_stdlibflags {}
+if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
+    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
+}
+
 patchfiles              patch-configure.diff
 post-patch {
     reinplace "s/echo -n/printf/g" ${worksrcpath}/configure
 
     # ensure correct compilers and compiler options are used
     reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]%" ${tmake_conf}
-    reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]%" ${tmake_conf}
-    reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags} [get_canonical_archflags ld]%" ${tmake_conf}
-    reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} [get_canonical_archflags ld]%" ${tmake_conf}
+    reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags} ${cxx_stdlibflags} [get_canonical_archflags cxx]%" ${tmake_conf}
+    reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags} ${cxx_stdlibflags} [get_canonical_archflags ld]%" ${tmake_conf}
+    reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${cxx_stdlibflags} [get_canonical_archflags ld]%" ${tmake_conf}
 
     # may not be strictly necessary, but remove trailing '/' from DESTDIR
     reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131231/68d62366/attachment.html>


More information about the macports-changes mailing list