[115341] trunk/dports/textproc/openjade/Portfile

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


Revision: 115341
          https://trac.macports.org/changeset/115341
Author:   jeremyhu at macports.org
Date:     2013-12-31 11:07:46 -0800 (Tue, 31 Dec 2013)
Log Message:
-----------
openjade: Buildfix for nonstandard C++ runtimes

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

Modified: trunk/dports/textproc/openjade/Portfile
===================================================================
--- trunk/dports/textproc/openjade/Portfile	2013-12-31 18:36:48 UTC (rev 115340)
+++ trunk/dports/textproc/openjade/Portfile	2013-12-31 19:07:46 UTC (rev 115341)
@@ -5,7 +5,7 @@
 
 name            openjade
 version         1.3.2
-revision        6
+revision        7
 categories      textproc
 license         MIT
 maintainers     fourpalms.org:lockhart openmaintainer
@@ -49,6 +49,12 @@
 configure.cxxflags-append   "-isystem ${prefix}/include -fno-rtti"
 configure.ldflags-delete    "-L${prefix}/lib"
 
+# 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}"
+}
+
 post-configure  {
     reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
     reinplace "s|^#pragma implementation||g" ${worksrcpath}/msggen.pl
@@ -60,8 +66,8 @@
     reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h
     reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl
     reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h
-    reinplace "s|^CXX=.*$|CXX='${configure.cxx} [get_canonical_archflags]'|g" ${worksrcpath}/libtool 
- 	reinplace "s|^CC=.*$|CC='${configure.cc} [get_canonical_archflags]'|g" ${worksrcpath}/libtool 
+    reinplace "s|^CXX=.*$|CXX='${configure.cxx} [get_canonical_archflags] ${cxx_stdlibflags}'|g" ${worksrcpath}/libtool 
+    reinplace "s|^CC=.*$|CC='${configure.cc} [get_canonical_archflags]'|g" ${worksrcpath}/libtool 
 }
 
 destroot.target install install-man
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131231/a516077d/attachment.html>


More information about the macports-changes mailing list