<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20877d68dbca69a82d88c43c99a07d92b4ca8c54">https://github.com/macports/macports-ports/commit/20877d68dbca69a82d88c43c99a07d92b4ca8c54</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 20877d68dbca69a82d88c43c99a07d92b4ca8c54
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Apr 17 17:06:27 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> gegl, gegl-devel: fix build on older systems
</span>---
graphics/gegl-devel/Portfile | 18 +++++++++++++--
...atch-gegl-opencl-fix-Leopard-and-less-only.diff | 26 ++++++++++++++++++++++
graphics/gegl-devel/files/patch-use-gcc.diff | 16 +++++++++++++
graphics/gegl/Portfile | 18 +++++++++++++--
...atch-gegl-opencl-fix-Leopard-and-less-only.diff | 26 ++++++++++++++++++++++
graphics/gegl/files/patch-use-gcc.diff | 16 +++++++++++++
6 files changed, 116 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl-devel/Portfile b/graphics/gegl-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1d8f4eb5dd9..4d230da18fb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/gegl-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +79,17 @@ if {${os.platform} eq "darwin" && (${os.major} < 10 || ${build_arch} in [list pp
</span> # https://trac.macports.org/ticket/58524
patchfiles-append patch-gegl-32bit-host-statistics.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/66233
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-use-gcc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 10 || (${os.major} == 10 && ${build_arch} eq "ppc")} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
# https://trac.macports.org/ticket/35148
if {${os.major} < 10} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -105,7 +116,7 @@ configure.args-append -Dvapigen=disabled \
</span> # at present, luajit does not build on PowerPC
platform darwin powerpc {
depends_lib-delete path:lib/libluajit-5.1.2.dylib:luajit
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -Dlua=false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -Dlua=disabled
</span> }
# TODO
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,7 +174,10 @@ if {![variant_isset quartz]} {
</span> default_variants +x11
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants-append +vala
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Vapigen is broken on PPC: https://gitlab.gnome.org/GNOME/vala/-/issues/1297
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.arch} ne "powerpc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +vala
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
livecheck.type regex
livecheck.url https://download.gimp.org/pub/${my_name}/${branch}/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl-devel/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff b/graphics/gegl-devel/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4fdc77036d2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl-devel/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git gegl/meson.build gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 12c753c..95ed1b6 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -80,7 +80,7 @@ install_headers(gegl_headers,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subdir: api_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++gegl_ldflags = []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gegl_lib = library(api_name,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gegl_sources,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git gegl/opencl/gegl-cl-init.c gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 22bdbb8..07d8ec8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -689,7 +689,7 @@ gegl_cl_init_common (cl_device_type requested_device_type,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!gegl_cl_init_get_gl_sharing_props (gl_contex_props, error))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return FALSE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 && !defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Create context */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ctx = gegl_clCreateContext (gl_contex_props, 0, 0, NULL, 0, &err);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl-devel/files/patch-use-gcc.diff b/graphics/gegl-devel/files/patch-use-gcc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1a1a434b16f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl-devel/files/patch-use-gcc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build.orig 2023-01-21 03:46:59.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build 2023-01-21 03:47:31.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -139,9 +139,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_android= host_os.contains('android')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_osx = host_os.contains('darwin')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if os_osx and cc.get_id() != 'clang'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- error('You should use Clang on OSx.')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if os_osx and cc.get_id() != 'clang'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# error('You should use Clang on OSx.')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Not necessarily.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ host_cpu_family = host_machine.cpu_family()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if host_cpu_family == 'x86'
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl/Portfile b/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b95af75f2f2..6d8c84e7ece 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +79,17 @@ if {${os.platform} eq "darwin" && (${os.major} < 10 || ${build_arch} in [list pp
</span> # https://trac.macports.org/ticket/58524
patchfiles-append patch-gegl-32bit-host-statistics.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/66233
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-use-gcc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 10 || (${os.major} == 10 && ${build_arch} eq "ppc")} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
# https://trac.macports.org/ticket/35148
if {${os.major} < 10} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -105,7 +116,7 @@ configure.args-append -Dvapigen=disabled \
</span> # at present, luajit does not build on PowerPC
platform darwin powerpc {
depends_lib-delete path:lib/libluajit-5.1.2.dylib:luajit
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -Dlua=false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -Dlua=disabled
</span> }
# TODO
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,7 +174,10 @@ if {![variant_isset quartz]} {
</span> default_variants +x11
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants-append +vala
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Vapigen is broken on PPC: https://gitlab.gnome.org/GNOME/vala/-/issues/1297
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.arch} ne "powerpc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +vala
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
livecheck.type regex
livecheck.url https://download.gimp.org/pub/${my_name}/${branch}/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff b/graphics/gegl/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4fdc77036d2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl/files/patch-gegl-opencl-fix-Leopard-and-less-only.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git gegl/meson.build gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 12c753c..95ed1b6 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gegl/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -80,7 +80,7 @@ install_headers(gegl_headers,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subdir: api_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++gegl_ldflags = []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gegl_lib = library(api_name,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gegl_sources,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git gegl/opencl/gegl-cl-init.c gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 22bdbb8..07d8ec8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gegl/opencl/gegl-cl-init.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -689,7 +689,7 @@ gegl_cl_init_common (cl_device_type requested_device_type,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!gegl_cl_init_get_gl_sharing_props (gl_contex_props, error))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return FALSE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 && !defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Create context */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ctx = gegl_clCreateContext (gl_contex_props, 0, 0, NULL, 0, &err);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl/files/patch-use-gcc.diff b/graphics/gegl/files/patch-use-gcc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1a1a434b16f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl/files/patch-use-gcc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build.orig 2023-01-21 03:46:59.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build 2023-01-21 03:47:31.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -139,9 +139,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_android= host_os.contains('android')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_osx = host_os.contains('darwin')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if os_osx and cc.get_id() != 'clang'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- error('You should use Clang on OSx.')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if os_osx and cc.get_id() != 'clang'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# error('You should use Clang on OSx.')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Not necessarily.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ host_cpu_family = host_machine.cpu_family()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if host_cpu_family == 'x86'
</span></pre><pre style='margin:0'>
</pre>