<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1f98b610ab26e399ec963a0599de5779a3271e68">https://github.com/macports/macports-ports/commit/1f98b610ab26e399ec963a0599de5779a3271e68</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 1f98b610ab26e399ec963a0599de5779a3271e68
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sat Jan 1 16:21:13 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> gtk3: quartz: fix builds for 10.11 and earlier
</span>---
gnome/gtk3/Portfile | 4 ++++
.../patch-gdk_quartz_gdksourceview-10_11-compat.diff | 16 ++++++++++++++++
2 files changed, 20 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk3/Portfile b/gnome/gtk3/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 112c2dfbf9a..17dd57aa65c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtk3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -241,6 +241,10 @@ if {${universal_possible} && [variant_isset universal]} {
</span> }
variant quartz conflicts x11 {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure kCAContentsFormatRGBA8Uint only used for 10.12 and later
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # NOTE: Patch designed to be applied across-the-board
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-gdk_quartz_gdksourceview-10_11-compat.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> require_active_variants path:lib/pkgconfig/cairo.pc:cairo quartz
require_active_variants path:lib/pkgconfig/pango.pc:pango quartz
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk3/files/patch-gdk_quartz_gdksourceview-10_11-compat.diff b/gnome/gtk3/files/patch-gdk_quartz_gdksourceview-10_11-compat.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3ad9a0ac689
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk3/files/patch-gdk_quartz_gdksourceview-10_11-compat.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;'>+--- gdk/quartz/GdkQuartzView.c.orig 2022-01-01 14:50:31.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gdk/quartz/GdkQuartzView.c 2022-01-01 14:51:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -296,11 +296,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * has the additional cost of an 8-bit (ARGB) to 10-bit conversion.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Let's disable this mode to regain the lost performance.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(gdk_quartz_osx_version() >= GDK_OSX_BIGSUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CALayer* layer = self.layer;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ layer.contentsFormat = kCAContentsFormatRGBA8Uint;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [super viewWillDraw];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>