Revision
115593
Author
macsforever2000@macports.org
Date
2014-01-06 08:48:04 -0800 (Mon, 06 Jan 2014)

Log Message

openscad: Fix build with libc++. (#41154)

Modified Paths

Added Paths

Diff

Modified: trunk/dports/science/openscad/Portfile (115592 => 115593)


--- trunk/dports/science/openscad/Portfile	2014-01-06 16:36:32 UTC (rev 115592)
+++ trunk/dports/science/openscad/Portfile	2014-01-06 16:48:04 UTC (rev 115593)
@@ -41,6 +41,8 @@
 checksums           rmd160  f5c923999570081307e96b8d6c7944c8d07608fb \
                     sha256  f277a8c3e6a548272f95279e50de6d4a6d73552775ab7a33c7f837c8e59173df
 
+patchfiles          patch-stl-utils.cc.diff
+
 depends_build-append \
                     port:bison \
                     port:flex

Added: trunk/dports/science/openscad/files/patch-stl-utils.cc.diff (0 => 115593)


--- trunk/dports/science/openscad/files/patch-stl-utils.cc.diff	                        (rev 0)
+++ trunk/dports/science/openscad/files/patch-stl-utils.cc.diff	2014-01-06 16:48:04 UTC (rev 115593)
@@ -0,0 +1,10 @@
+--- src/stl-utils.cc.orig	2014-01-06 08:54:39.000000000 -0700
++++ src/stl-utils.cc	2014-01-06 08:55:31.000000000 -0700
+@@ -1,4 +1,6 @@
+-#if defined(__APPLE__) && defined(__GNUC__)
++#include <ciso646>
++
++#if defined(__APPLE__) && defined(__GNUC__) && !defined(_LIBCPP_VERSION)
+ 
+ #include <iostream>
+