[97323] trunk/dports/graphics/gegl

jeremyhu at macports.org jeremyhu at macports.org
Mon Sep 3 13:46:20 PDT 2012


Revision: 97323
          https://trac.macports.org/changeset/97323
Author:   jeremyhu at macports.org
Date:     2012-09-03 13:46:19 -0700 (Mon, 03 Sep 2012)
Log Message:
-----------
gegl: Leopard build fix

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

Added Paths:
-----------
    trunk/dports/graphics/gegl/files/opencl.patch

Modified: trunk/dports/graphics/gegl/Portfile
===================================================================
--- trunk/dports/graphics/gegl/Portfile	2012-09-03 20:44:04 UTC (rev 97322)
+++ trunk/dports/graphics/gegl/Portfile	2012-09-03 20:46:19 UTC (rev 97323)
@@ -46,7 +46,7 @@
     port:libspiro \
     port:lensfun
 
-patchfiles     patch-configure.diff
+patchfiles     patch-configure.diff opencl.patch 
 
 configure.args  --disable-docs \
                 --disable-silent-rules \

Added: trunk/dports/graphics/gegl/files/opencl.patch
===================================================================
--- trunk/dports/graphics/gegl/files/opencl.patch	                        (rev 0)
+++ trunk/dports/graphics/gegl/files/opencl.patch	2012-09-03 20:46:19 UTC (rev 97323)
@@ -0,0 +1,36 @@
+diff -Naurp gegl-0.2.0.orig/gegl/opencl/cl.h gegl-0.2.0/gegl/opencl/cl.h
+--- gegl/opencl/cl.h	2012-03-24 11:22:29.000000000 -0700
++++ gegl/opencl/cl.h	2012-09-03 13:43:32.000000000 -0700
+@@ -26,7 +26,7 @@
+ #ifndef __OPENCL_CL_H
+ #define __OPENCL_CL_H
+ 
+-#ifdef __APPLE__
++#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+ #include <OpenCL/cl_platform.h>
+ #else
+ #include "cl_platform.h"
+diff -Naurp gegl-0.2.0.orig/gegl/opencl/cl_gl.h gegl-0.2.0/gegl/opencl/cl_gl.h
+--- gegl/opencl/cl_gl.h	2012-03-24 11:22:29.000000000 -0700
++++ gegl/opencl/cl_gl.h	2012-09-03 13:44:00.000000000 -0700
+@@ -32,7 +32,7 @@
+ #ifndef __OPENCL_CL_GL_H
+ #define __OPENCL_CL_GL_H
+ 
+-#ifdef __APPLE__
++#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+ #include <OpenCL/cl.h>
+ #include <OpenGL/CGLDevice.h>
+ #else
+diff -Naurp gegl-0.2.0.orig/gegl/opencl/cl_platform.h gegl-0.2.0/gegl/opencl/cl_platform.h
+--- gegl/opencl/cl_platform.h	2012-03-24 11:22:29.000000000 -0700
++++ gegl/opencl/cl_platform.h	2012-09-03 13:43:48.000000000 -0700
+@@ -45,7 +45,7 @@ extern "C" {
+     #define CL_CALLBACK
+ #endif
+ 
+-#ifdef __APPLE__
++#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+     #define CL_EXTENSION_WEAK_LINK                  __attribute__((weak_import))
+     #define CL_API_SUFFIX__VERSION_1_0              AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+     #define CL_EXT_SUFFIX__VERSION_1_0              CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120903/08a39511/attachment.html>


More information about the macports-changes mailing list