[96233] trunk/dports/graphics/gegl/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 5 12:09:03 PDT 2012


Revision: 96233
          https://trac.macports.org/changeset/96233
Author:   jeremyhu at macports.org
Date:     2012-08-05 12:09:00 -0700 (Sun, 05 Aug 2012)
Log Message:
-----------
gegl: Build fix for Tiger and Leopard (#35148).

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

Modified: trunk/dports/graphics/gegl/Portfile
===================================================================
--- trunk/dports/graphics/gegl/Portfile	2012-08-05 13:43:29 UTC (rev 96232)
+++ trunk/dports/graphics/gegl/Portfile	2012-08-05 19:09:00 UTC (rev 96233)
@@ -53,9 +53,20 @@
                 --without-umfpack
 
 # disable parallel build, see #31498
-
 use_parallel_build no
 
+post-patch {
+    # http://trac.macports.org/ticket/35148
+    if {${os.major} < 10} {
+        foreach header [glob ${worksrcpath}/{,*/,*/*/}*.h] {
+            reinplace "s|__MAC_10_6|__MAC_NA|g" ${header}
+            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
+            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g" ${header}
+        }
+        reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
+    }
+}
+
 platform darwin {
     if {[variant_isset universal]} {
         # In order to build universal on Leopard, you need MacPorts 2.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120805/b6f289cc/attachment.html>


More information about the macports-changes mailing list