[120740] trunk/dports/graphics/vtk5/Portfile

sean at macports.org sean at macports.org
Thu Jun 5 20:54:39 PDT 2014


Revision: 120740
          https://trac.macports.org/changeset/120740
Author:   sean at macports.org
Date:     2014-06-05 20:54:39 -0700 (Thu, 05 Jun 2014)
Log Message:
-----------
vtk5: fix xocde 5.1 compatibility

Modified Paths:
--------------
    trunk/dports/graphics/vtk5/Portfile

Modified: trunk/dports/graphics/vtk5/Portfile
===================================================================
--- trunk/dports/graphics/vtk5/Portfile	2014-06-06 03:54:35 UTC (rev 120739)
+++ trunk/dports/graphics/vtk5/Portfile	2014-06-06 03:54:39 UTC (rev 120740)
@@ -40,6 +40,12 @@
 
 patchfiles  patch-tiff-inline.diff
 
+post-patch {
+    # Xcode 5.1 breaks vtk build. A backwards compatible fix is to remove
+    # -fobjc-gc; see http://review.source.kitware.com/#/c/14424/
+    reinplace -W ${worksrcpath} "s,-fobjc-gc,,g" CMakeLists.txt
+}
+
 use_parallel_build yes
 
 configure.args-append  \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140605/3296d63a/attachment.html>


More information about the macports-changes mailing list