pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtk3 gtk3: fix building on macOS with Quartz backend



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f644522f4da
branches:  trunk
changeset: 407680:1f644522f4da
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 08 14:57:29 2020 +0000

description:
gtk3: fix building on macOS with Quartz backend

diffstat:

 x11/gtk3/PLIST                                          |   9 +-
 x11/gtk3/distinfo                                       |   5 +-
 x11/gtk3/patches/patch-gdk_quartz_Makefile.in           |  14 ++++
 x11/gtk3/patches/patch-gdk_quartz_gdkquartz-gtk-only.h  |  57 +++++++++++++++++
 x11/gtk3/patches/patch-gdk_quartz_gdkselection-quartz.c |  14 ++++
 5 files changed, 94 insertions(+), 5 deletions(-)

diffs (157 lines):

diff -r 0755bcbd9827 -r 1f644522f4da x11/gtk3/PLIST
--- a/x11/gtk3/PLIST    Wed Jan 08 14:46:14 2020 +0000
+++ b/x11/gtk3/PLIST    Wed Jan 08 14:57:29 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.28 2019/11/06 14:51:19 wiz Exp $
+@comment $NetBSD: PLIST,v 1.29 2020/01/08 14:57:29 adam Exp $
 bin/gtk-builder-tool
 bin/gtk-encode-symbolic-svg
 bin/gtk-launch
@@ -55,6 +55,7 @@
 ${PLIST.wayland}include/gtk-3.0/gdk/gdkwayland.h
 include/gtk-3.0/gdk/gdkwindow.h
 ${PLIST.x11}include/gtk-3.0/gdk/gdkx.h
+${PLIST.quartz}include/gtk-3.0/gdk/quartz/gdkquartz-gtk-only.h
 ${PLIST.quartz}include/gtk-3.0/gdk/quartz/gdkquartzcursor.h
 ${PLIST.quartz}include/gtk-3.0/gdk/quartz/gdkquartzdevice-core.h
 ${PLIST.quartz}include/gtk-3.0/gdk/quartz/gdkquartzdevicemanager-core.h
@@ -425,6 +426,7 @@
 lib/girepository-1.0/Gdk-3.0.typelib
 ${PLIST.x11}lib/girepository-1.0/GdkX11-3.0.typelib
 lib/girepository-1.0/Gtk-3.0.typelib
+@pkgdir lib/gtk-3.0/3.0.0/filesystems
 lib/gtk-3.0/3.0.0/immodules/im-am-et.la
 lib/gtk-3.0/3.0.0/immodules/im-cedilla.la
 lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la
@@ -442,6 +444,8 @@
 ${PLIST.cups}lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.la
 lib/gtk-3.0/3.0.0/printbackends/libprintbackend-file.la
 lib/gtk-3.0/3.0.0/printbackends/libprintbackend-lpr.la
+@pkgdir lib/gtk-3.0/immodules
+@pkgdir lib/gtk-3.0/modules
 lib/libgailutil-3.la
 lib/libgdk-3.la
 lib/libgtk-3.la
@@ -1406,6 +1410,3 @@
 share/themes/Default/gtk-3.0/gtk-keys.css
 share/themes/Emacs/gtk-3.0/gtk-keys.css
 ${PLIST.quartz}share/themes/Mac/gtk-3.0/gtk-keys.css
-@pkgdir lib/gtk-3.0/modules
-@pkgdir lib/gtk-3.0/immodules
-@pkgdir lib/gtk-3.0/3.0.0/filesystems
diff -r 0755bcbd9827 -r 1f644522f4da x11/gtk3/distinfo
--- a/x11/gtk3/distinfo Wed Jan 08 14:46:14 2020 +0000
+++ b/x11/gtk3/distinfo Wed Jan 08 14:57:29 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.72 2019/12/31 12:21:00 wiz Exp $
+$NetBSD: distinfo,v 1.73 2020/01/08 14:57:29 adam Exp $
 
 SHA1 (gtk+-3.24.13.tar.xz) = 5f014189e117207580bf7bc16aea4e09e009c75a
 RMD160 (gtk+-3.24.13.tar.xz) = cdf6b911d59e13b412efe0666d5d58de5095abe2
@@ -8,6 +8,9 @@
 SHA1 (patch-config.h.in) = dc5f8741eed554f88c0b6834cadad95083e4dc8f
 SHA1 (patch-configure) = d531b33e52facf960058f1223b70db680da35300
 SHA1 (patch-configure.ac) = 68793f40752f25ccaecc958c72c23a504670bea5
+SHA1 (patch-gdk_quartz_Makefile.in) = 610bf837b2ed2d3524174979cab7bf54cf53bb79
+SHA1 (patch-gdk_quartz_gdkquartz-gtk-only.h) = 24aefa2631c2546ef726eba0aee0f9460c1664ed
+SHA1 (patch-gdk_quartz_gdkselection-quartz.c) = 723c97746ec93129434ca989a9ad5b026b5c8035
 SHA1 (patch-gdk_wayland_gdkdevice-wayland.c) = e283bd6533ea1307b971c524bc05f0d3ee90453d
 SHA1 (patch-gdk_x11_gdkscreen-x11.h) = 455d6c3de8421984ba3c99baf51cd31982a3df78
 SHA1 (patch-gdk_x11_gdkwindow-x11.h) = c80f7c9d5a570817e54fd74fa903a53400dc6f64
diff -r 0755bcbd9827 -r 1f644522f4da x11/gtk3/patches/patch-gdk_quartz_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3/patches/patch-gdk_quartz_Makefile.in     Wed Jan 08 14:57:29 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-gdk_quartz_Makefile.in,v 1.1 2020/01/08 14:57:29 adam Exp $
+
+https://gitlab.gnome.org/GNOME/gtk/issues/2279
+
+--- gdk/quartz/Makefile.in.orig        2020-01-08 14:34:08.000000000 +0000
++++ gdk/quartz/Makefile.in
+@@ -601,6 +601,7 @@ libgdkinclude_HEADERS = \
+       gdkquartz.h
+ 
+ libgdkquartzinclude_HEADERS = \
++      gdkquartz-gtk-only.h            \
+       gdkquartzcursor.h               \
+       gdkquartzdevice-core.h          \
+       gdkquartzdevicemanager-core.h   \
diff -r 0755bcbd9827 -r 1f644522f4da x11/gtk3/patches/patch-gdk_quartz_gdkquartz-gtk-only.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3/patches/patch-gdk_quartz_gdkquartz-gtk-only.h    Wed Jan 08 14:57:29 2020 +0000
@@ -0,0 +1,57 @@
+$NetBSD: patch-gdk_quartz_gdkquartz-gtk-only.h,v 1.1 2020/01/08 14:57:29 adam Exp $
+
+https://gitlab.gnome.org/GNOME/gtk/issues/2279
+
+--- /dev/null  2020-01-01 20:40:06.000000000 +0000
++++ gdk/quartz/gdkquartz-gtk-only.h
+@@ -0,0 +1,50 @@
++/* gdkquartz-gtk-only.h
++ *
++ * Copyright (C) 2005-2007 Imendio AB
++ *
++ * This library is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU Lesser General Public
++ * License as published by the Free Software Foundation; either
++ * version 2 of the License, or (at your option) any later version.
++ *
++ * This library is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++ * Lesser General Public License for more details.
++ *
++ * You should have received a copy of the GNU Lesser General Public
++ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
++ */
++
++#ifndef __GDK_QUARTZ_GTK_ONLY_H__
++#define __GDK_QUARTZ_GTK_ONLY_H__
++
++#if !(defined (GTK_COMPILATION) || defined (GDK_COMPILATION))
++#error "This API is for use only in Gtk internal code."
++#endif
++
++#include <Appkit/Appkit.h>
++#include <gdk/gdk.h>
++#include <gdk/quartz/gdkquartz.h>
++
++/* Drag and Drop/Clipboard */
++GDK_AVAILABLE_IN_ALL
++GdkAtom   gdk_quartz_pasteboard_type_to_atom_libgtk_only        (NSString       *type);
++GDK_AVAILABLE_IN_ALL
++NSString *gdk_quartz_target_to_pasteboard_type_libgtk_only      (const gchar    *target);
++GDK_AVAILABLE_IN_ALL
++NSString *gdk_quartz_atom_to_pasteboard_type_libgtk_only        (GdkAtom         atom);
++
++/* Utilities */
++GDK_AVAILABLE_IN_ALL
++NSImage  *gdk_quartz_pixbuf_to_ns_image_libgtk_only (GdkPixbuf *pixbuf);
++GDK_AVAILABLE_IN_ALL
++NSEvent  *gdk_quartz_event_get_nsevent              (GdkEvent  *event);
++
++/* Window */
++GDK_AVAILABLE_IN_ALL
++NSWindow *gdk_quartz_window_get_nswindow            (GdkWindow *window);
++GDK_AVAILABLE_IN_ALL
++NSView   *gdk_quartz_window_get_nsview              (GdkWindow *window);
++
++#endif
diff -r 0755bcbd9827 -r 1f644522f4da x11/gtk3/patches/patch-gdk_quartz_gdkselection-quartz.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3/patches/patch-gdk_quartz_gdkselection-quartz.c   Wed Jan 08 14:57:29 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-gdk_quartz_gdkselection-quartz.c,v 1.1 2020/01/08 14:57:29 adam Exp $
+
+https://gitlab.gnome.org/GNOME/gtk/issues/2279
+
+--- gdk/quartz/gdkselection-quartz.c.orig      2020-01-08 14:36:55.000000000 +0000
++++ gdk/quartz/gdkselection-quartz.c
+@@ -24,6 +24,7 @@
+ #include "gdkproperty.h"
+ #include "gdkquartz.h"
+ #include "gdkinternal-quartz.h"
++#include "gdkquartz-gtk-only.h"
+ 
+ gboolean
+ _gdk_quartz_display_set_selection_owner (GdkDisplay *display,



Home | Main Index | Thread Index | Old Index