--- gegl/meson.build.orig	2024-11-03 10:39:32.000000000 -0600
+++ gegl/meson.build	2024-11-06 07:44:10.000000000 -0600
@@ -89,7 +89,7 @@
   subdir: api_name
 )
 
-gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
+gegl_ldflags = []
 
 opencl_dep = declare_dependency(
   sources : [opencl_headers],
--- gegl/opencl/gegl-cl-init.c.orig	2024-11-03 10:39:32.000000000 -0600
+++ gegl/opencl/gegl-cl-init.c	2024-11-06 07:44:10.000000000 -0600
@@ -689,7 +689,7 @@
           if (!gegl_cl_init_get_gl_sharing_props (gl_contex_props, error))
             return FALSE;
 
-#ifdef __APPLE__
+#if __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 && !defined(__POWERPC__)
           /* Create context */
           ctx = gegl_clCreateContext (gl_contex_props, 0, 0, NULL, 0, &err);
 
