pkgsrc-WIP-changes archive

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

gtk: Import gtk-3.99.4 as wip/gtk4



Module Name:	pkgsrc-wip
Committed By:	Dan Cîrnaț <dan%alt.md@localhost>
Pushed By:	cirnatdan
Date:		Thu Nov 19 20:44:39 2020 +0100
Changeset:	703b7af584e45bb2cd8753243737b9a164d32608

Added Files:
	gtk4/DESCR
	gtk4/Makefile
	gtk4/PLIST
	gtk4/buildlink3.mk
	gtk4/distinfo
	gtk4/files/immodules.tmpl
	gtk4/modules.mk
	gtk4/options.mk
	gtk4/patches/patch-gdk_wayland_gdkdevice-wayland.c

Log Message:
gtk: Import gtk-3.99.4 as wip/gtk4

WIP gtk4 package. Tested only on macOS

no docs, demos or examples

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=703b7af584e45bb2cd8753243737b9a164d32608

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gtk4/DESCR                                         |  11 +
 gtk4/Makefile                                      |  94 ++++
 gtk4/PLIST                                         | 603 +++++++++++++++++++++
 gtk4/buildlink3.mk                                 |  47 ++
 gtk4/distinfo                                      |   7 +
 gtk4/files/immodules.tmpl                          |  22 +
 gtk4/modules.mk                                    |  35 ++
 gtk4/options.mk                                    |  77 +++
 gtk4/patches/patch-gdk_wayland_gdkdevice-wayland.c |  21 +
 9 files changed, 917 insertions(+)

diffs:
diff --git a/gtk4/DESCR b/gtk4/DESCR
new file mode 100644
index 0000000000..ee8055eb69
--- /dev/null
+++ b/gtk4/DESCR
@@ -0,0 +1,11 @@
+GTK+ is a multi-platform toolkit for creating graphical user
+interfaces. Offering a complete set of widgets, GTK+ is suitable for
+projects ranging from small one-off tools to complete application
+suites.
+
+GTK+ has been designed from the ground up to support a range of
+languages, not only C/C++. Using GTK+ from languages such as Perl and
+Python (especially in combination with the Glade GUI builder) provides
+an effective method of rapid application development.
+
+This package contains GTK+ 3.
diff --git a/gtk4/Makefile b/gtk4/Makefile
new file mode 100644
index 0000000000..5247d81e76
--- /dev/null
+++ b/gtk4/Makefile
@@ -0,0 +1,94 @@
+# $NetBSD: Makefile,v 1.156 2020/10/01 11:54:11 prlw1 Exp $
+
+DISTNAME=	gtk-3.99.4
+PKGNAME=	${DISTNAME:S/gtk/gtk4/}
+CATEGORIES=	x11 gnome
+MASTER_SITES=	${MASTER_SITE_GNOME:=sources/gtk/${PKGVERSION_NOREV:R}/}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.gtk.org/
+COMMENT=	Multi-platform toolkit for creating graphical user interfaces
+LICENSE=	gnu-lgpl-v2.1
+
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		ggrep pkg-config bash xgettext msgmerge
+PTHREAD_AUTO_VARS=	yes
+TOOL_DEPENDS+=		gdbus-codegen-[0-9]*:../../devel/gdbus-codegen
+TOOL_DEPENDS+=		gettext-tools>=0.19.4nb1:../../devel/gettext-tools
+TOOL_DEPENDS+=		sassc-[0-9]*:../../www/sassc
+#TOOL_DEPENDS+=		pandoc-[0-9]*:../../converters/pandoc
+
+CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/libdata
+MESON_ARGS+=		-Dgtk_doc=false #meson bug with macOS frameworks
+MESON_ARGS+=		-Ddemos=false
+MESON_ARGS+=		-Dbuild-examples=false
+MESON_ARGS+=		-Dbuild-tests=false
+MESON_ARGS+=		--wrap-mode=nodownload
+TEST_TARGET=		check
+
+PKGCONFIG_OVERRIDE+=	gdk-4.0.pc.in
+PKGCONFIG_OVERRIDE+=	gtk+-4.0.pc.in
+PKGCONFIG_OVERRIDE+=	gtk+-unix-print-4.0.pc.in
+PKGCONFIG_OVERRIDE+=	gail-4.0.pc.in
+
+INSTALLATION_DIRS+=	lib/gtk-4.0/immodules
+INSTALLATION_DIRS+=	lib/gtk-4.0/modules
+INSTALLATION_DIRS+=	lib/gtk-4.0/4.0.0/filesystems
+
+#BUILD_DIRS=		. demos/gtk-demo
+
+.include "../../mk/bsd.prefs.mk"
+
+CFLAGS.SunOS+=		-std=gnu99
+
+CPPFLAGS+=		-DPREFIX="\"${PREFIX}\""
+
+# We remove the module databases during post-install since we create them
+# anew in the +INSTALL script as part of the POST-INSTALL action.
+#
+post-install:
+	${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB}
+
+FILES_SUBST+=		GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk4-update-icon-cache"
+FILES_SUBST+=		ICON_THEME_DIR="${PREFIX}/share/icons"
+INSTALL_TEMPLATES+=	../../x11/gtk2/files/icon-cache.tmpl
+
+_BUILDING_GTK3=	yes
+.include "modules.mk"
+
+.include "../../converters/fribidi/buildlink3.mk"
+.include "../../databases/shared-mime-info/buildlink3.mk"
+BUILDLINK_API_DEPENDS.atk+=	atk>=2.15.1
+.include "../../devel/atk/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.57.2
+.include "../../devel/glib2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.gdk-pixbuf2+=	gdk-pixbuf2>=2.30.0
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+BUILDLINK_DEPMETHOD.gobject-introspection:=	build
+BUILDLINK_API_DEPENDS.gobject-introspection+=	gobject-introspection>=1.39.0
+.include "../../devel/gobject-introspection/buildlink3.mk"
+
+.include "options.mk"
+
+.include "../../devel/glib2/schemas.mk"
+
+BUILDLINK_API_DEPENDS.gtk-doc+=	gtk-doc>=1.33
+.include "../../textproc/gtk-doc/buildlink3.mk"
+.include "../../graphics/graphene/buildlink3.mk"
+BUILDLINK_API_DEPENDS.pango+=	pango>=1.47
+.include "../../wip/pango/buildlink3.mk"
+BUILDLINK_API_DEPENDS.fontconfig+=	fontconfig>=2.11.91
+.include "../../fonts/fontconfig/buildlink3.mk"
+BUILDLINK_API_DEPENDS.cairo+=	cairo>=1.14.0
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/cairo-gobject/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libepoxy+=	libepoxy>=1.4
+.include "../../graphics/libepoxy/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+
+.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gtk4/PLIST b/gtk4/PLIST
new file mode 100644
index 0000000000..d4001a893a
--- /dev/null
+++ b/gtk4/PLIST
@@ -0,0 +1,603 @@
+@comment $NetBSD$
+bin/gtk4-builder-tool
+bin/gtk4-encode-symbolic-svg
+bin/gtk4-launch
+bin/gtk4-query-settings
+bin/gtk4-update-icon-cache
+include/gtk-4.0/gdk/gdk-autocleanup.h
+include/gtk-4.0/gdk/gdk.h
+include/gtk-4.0/gdk/gdkapplaunchcontext.h
+include/gtk-4.0/gdk/gdkcairo.h
+include/gtk-4.0/gdk/gdkcairocontext.h
+include/gtk-4.0/gdk/gdkclipboard.h
+include/gtk-4.0/gdk/gdkconfig.h
+include/gtk-4.0/gdk/gdkcontentdeserializer.h
+include/gtk-4.0/gdk/gdkcontentformats.h
+include/gtk-4.0/gdk/gdkcontentprovider.h
+include/gtk-4.0/gdk/gdkcontentproviderimpl.h
+include/gtk-4.0/gdk/gdkcontentserializer.h
+include/gtk-4.0/gdk/gdkcursor.h
+include/gtk-4.0/gdk/gdkdevice.h
+include/gtk-4.0/gdk/gdkdevicepad.h
+include/gtk-4.0/gdk/gdkdevicetool.h
+include/gtk-4.0/gdk/gdkdisplay.h
+include/gtk-4.0/gdk/gdkdisplaymanager.h
+include/gtk-4.0/gdk/gdkdrag.h
+include/gtk-4.0/gdk/gdkdragsurface.h
+include/gtk-4.0/gdk/gdkdrawcontext.h
+include/gtk-4.0/gdk/gdkdrop.h
+include/gtk-4.0/gdk/gdkenumtypes.h
+include/gtk-4.0/gdk/gdkevents.h
+include/gtk-4.0/gdk/gdkframeclock.h
+include/gtk-4.0/gdk/gdkframetimings.h
+include/gtk-4.0/gdk/gdkglcontext.h
+include/gtk-4.0/gdk/gdkgltexture.h
+include/gtk-4.0/gdk/gdkkeys.h
+include/gtk-4.0/gdk/gdkkeysyms.h
+include/gtk-4.0/gdk/gdkmemorytexture.h
+include/gtk-4.0/gdk/gdkmonitor.h
+include/gtk-4.0/gdk/gdkpaintable.h
+include/gtk-4.0/gdk/gdkpango.h
+include/gtk-4.0/gdk/gdkpixbuf.h
+include/gtk-4.0/gdk/gdkpopup.h
+include/gtk-4.0/gdk/gdkpopuplayout.h
+include/gtk-4.0/gdk/gdkrectangle.h
+include/gtk-4.0/gdk/gdkrgba.h
+include/gtk-4.0/gdk/gdkseat.h
+include/gtk-4.0/gdk/gdksnapshot.h
+include/gtk-4.0/gdk/gdksurface.h
+include/gtk-4.0/gdk/gdktexture.h
+include/gtk-4.0/gdk/gdktoplevel.h
+include/gtk-4.0/gdk/gdktoplevellayout.h
+include/gtk-4.0/gdk/gdktoplevelsize.h
+include/gtk-4.0/gdk/gdktypes.h
+include/gtk-4.0/gdk/gdkversionmacros.h
+include/gtk-4.0/gdk/gdkvulkancontext.h
+include/gtk-4.0/gdk/macos/gdkmacos.h
+include/gtk-4.0/gdk/macos/gdkmacosdevice.h
+include/gtk-4.0/gdk/macos/gdkmacosdisplay.h
+include/gtk-4.0/gdk/macos/gdkmacosglcontext.h
+include/gtk-4.0/gdk/macos/gdkmacoskeymap.h
+include/gtk-4.0/gdk/macos/gdkmacosmonitor.h
+include/gtk-4.0/gdk/macos/gdkmacossurface.h
+include/gtk-4.0/gsk/gl/gskglrenderer.h
+include/gtk-4.0/gsk/gsk-autocleanup.h
+include/gtk-4.0/gsk/gsk.h
+include/gtk-4.0/gsk/gskcairorenderer.h
+include/gtk-4.0/gsk/gskenums.h
+include/gtk-4.0/gsk/gskenumtypes.h
+include/gtk-4.0/gsk/gskglshader.h
+include/gtk-4.0/gsk/gskrenderer.h
+include/gtk-4.0/gsk/gskrendernode.h
+include/gtk-4.0/gsk/gskroundedrect.h
+include/gtk-4.0/gsk/gsktransform.h
+include/gtk-4.0/gsk/gsktypes.h
+include/gtk-4.0/gtk/css/gtkcss.h
+include/gtk-4.0/gtk/css/gtkcssenums.h
+include/gtk-4.0/gtk/css/gtkcssenumtypes.h
+include/gtk-4.0/gtk/css/gtkcsserror.h
+include/gtk-4.0/gtk/css/gtkcsslocation.h
+include/gtk-4.0/gtk/css/gtkcsssection.h
+include/gtk-4.0/gtk/gtk-autocleanups.h
+include/gtk-4.0/gtk/gtk.h
+include/gtk-4.0/gtk/gtkaboutdialog.h
+include/gtk-4.0/gtk/gtkaccelgroup.h
+include/gtk-4.0/gtk/gtkaccessible.h
+include/gtk-4.0/gtk/gtkactionable.h
+include/gtk-4.0/gtk/gtkactionbar.h
+include/gtk-4.0/gtk/gtkadjustment.h
+include/gtk-4.0/gtk/gtkappchooser.h
+include/gtk-4.0/gtk/gtkappchooserbutton.h
+include/gtk-4.0/gtk/gtkappchooserdialog.h
+include/gtk-4.0/gtk/gtkappchooserwidget.h
+include/gtk-4.0/gtk/gtkapplication.h
+include/gtk-4.0/gtk/gtkapplicationwindow.h
+include/gtk-4.0/gtk/gtkaspectframe.h
+include/gtk-4.0/gtk/gtkassistant.h
+include/gtk-4.0/gtk/gtkatcontext.h
+include/gtk-4.0/gtk/gtkbinlayout.h
+include/gtk-4.0/gtk/gtkbitset.h
+include/gtk-4.0/gtk/gtkbookmarklist.h
+include/gtk-4.0/gtk/gtkboolfilter.h
+include/gtk-4.0/gtk/gtkborder.h
+include/gtk-4.0/gtk/gtkbox.h
+include/gtk-4.0/gtk/gtkboxlayout.h
+include/gtk-4.0/gtk/gtkbuildable.h
+include/gtk-4.0/gtk/gtkbuilder.h
+include/gtk-4.0/gtk/gtkbuilderlistitemfactory.h
+include/gtk-4.0/gtk/gtkbuilderscope.h
+include/gtk-4.0/gtk/gtkbutton.h
+include/gtk-4.0/gtk/gtkcalendar.h
+include/gtk-4.0/gtk/gtkcellarea.h
+include/gtk-4.0/gtk/gtkcellareabox.h
+include/gtk-4.0/gtk/gtkcellareacontext.h
+include/gtk-4.0/gtk/gtkcelleditable.h
+include/gtk-4.0/gtk/gtkcelllayout.h
+include/gtk-4.0/gtk/gtkcellrenderer.h
+include/gtk-4.0/gtk/gtkcellrendereraccel.h
+include/gtk-4.0/gtk/gtkcellrenderercombo.h
+include/gtk-4.0/gtk/gtkcellrendererpixbuf.h
+include/gtk-4.0/gtk/gtkcellrendererprogress.h
+include/gtk-4.0/gtk/gtkcellrendererspin.h
+include/gtk-4.0/gtk/gtkcellrendererspinner.h
+include/gtk-4.0/gtk/gtkcellrenderertext.h
+include/gtk-4.0/gtk/gtkcellrenderertoggle.h
+include/gtk-4.0/gtk/gtkcellview.h
+include/gtk-4.0/gtk/gtkcenterbox.h
+include/gtk-4.0/gtk/gtkcenterlayout.h
+include/gtk-4.0/gtk/gtkcheckbutton.h
+include/gtk-4.0/gtk/gtkcolorbutton.h
+include/gtk-4.0/gtk/gtkcolorchooser.h
+include/gtk-4.0/gtk/gtkcolorchooserdialog.h
+include/gtk-4.0/gtk/gtkcolorchooserwidget.h
+include/gtk-4.0/gtk/gtkcolorutils.h
+include/gtk-4.0/gtk/gtkcolumnview.h
+include/gtk-4.0/gtk/gtkcolumnviewcolumn.h
+include/gtk-4.0/gtk/gtkcombobox.h
+include/gtk-4.0/gtk/gtkcomboboxtext.h
+include/gtk-4.0/gtk/gtkconstraint.h
+include/gtk-4.0/gtk/gtkconstraintguide.h
+include/gtk-4.0/gtk/gtkconstraintlayout.h
+include/gtk-4.0/gtk/gtkcssprovider.h
+include/gtk-4.0/gtk/gtkcustomfilter.h
+include/gtk-4.0/gtk/gtkcustomlayout.h
+include/gtk-4.0/gtk/gtkcustomsorter.h
+include/gtk-4.0/gtk/gtkdebug.h
+include/gtk-4.0/gtk/gtkdialog.h
+include/gtk-4.0/gtk/gtkdirectorylist.h
+include/gtk-4.0/gtk/gtkdragicon.h
+include/gtk-4.0/gtk/gtkdragsource.h
+include/gtk-4.0/gtk/gtkdrawingarea.h
+include/gtk-4.0/gtk/gtkdropcontrollermotion.h
+include/gtk-4.0/gtk/gtkdropdown.h
+include/gtk-4.0/gtk/gtkdroptarget.h
+include/gtk-4.0/gtk/gtkdroptargetasync.h
+include/gtk-4.0/gtk/gtkeditable.h
+include/gtk-4.0/gtk/gtkeditablelabel.h
+include/gtk-4.0/gtk/gtkemojichooser.h
+include/gtk-4.0/gtk/gtkentry.h
+include/gtk-4.0/gtk/gtkentrybuffer.h
+include/gtk-4.0/gtk/gtkentrycompletion.h
+include/gtk-4.0/gtk/gtkenums.h
+include/gtk-4.0/gtk/gtkeventcontroller.h
+include/gtk-4.0/gtk/gtkeventcontrollerfocus.h
+include/gtk-4.0/gtk/gtkeventcontrollerkey.h
+include/gtk-4.0/gtk/gtkeventcontrollerlegacy.h
+include/gtk-4.0/gtk/gtkeventcontrollermotion.h
+include/gtk-4.0/gtk/gtkeventcontrollerscroll.h
+include/gtk-4.0/gtk/gtkexpander.h
+include/gtk-4.0/gtk/gtkexpression.h
+include/gtk-4.0/gtk/gtkfilechooser.h
+include/gtk-4.0/gtk/gtkfilechooserbutton.h
+include/gtk-4.0/gtk/gtkfilechooserdialog.h
+include/gtk-4.0/gtk/gtkfilechoosernative.h
+include/gtk-4.0/gtk/gtkfilechooserwidget.h
+include/gtk-4.0/gtk/gtkfilefilter.h
+include/gtk-4.0/gtk/gtkfilter.h
+include/gtk-4.0/gtk/gtkfilterlistmodel.h
+include/gtk-4.0/gtk/gtkfixed.h
+include/gtk-4.0/gtk/gtkfixedlayout.h
+include/gtk-4.0/gtk/gtkflattenlistmodel.h
+include/gtk-4.0/gtk/gtkflowbox.h
+include/gtk-4.0/gtk/gtkfontbutton.h
+include/gtk-4.0/gtk/gtkfontchooser.h
+include/gtk-4.0/gtk/gtkfontchooserdialog.h
+include/gtk-4.0/gtk/gtkfontchooserwidget.h
+include/gtk-4.0/gtk/gtkframe.h
+include/gtk-4.0/gtk/gtkgesture.h
+include/gtk-4.0/gtk/gtkgestureclick.h
+include/gtk-4.0/gtk/gtkgesturedrag.h
+include/gtk-4.0/gtk/gtkgesturelongpress.h
+include/gtk-4.0/gtk/gtkgesturepan.h
+include/gtk-4.0/gtk/gtkgesturerotate.h
+include/gtk-4.0/gtk/gtkgesturesingle.h
+include/gtk-4.0/gtk/gtkgesturestylus.h
+include/gtk-4.0/gtk/gtkgestureswipe.h
+include/gtk-4.0/gtk/gtkgesturezoom.h
+include/gtk-4.0/gtk/gtkglarea.h
+include/gtk-4.0/gtk/gtkgrid.h
+include/gtk-4.0/gtk/gtkgridlayout.h
+include/gtk-4.0/gtk/gtkgridview.h
+include/gtk-4.0/gtk/gtkheaderbar.h
+include/gtk-4.0/gtk/gtkicontheme.h
+include/gtk-4.0/gtk/gtkiconview.h
+include/gtk-4.0/gtk/gtkimage.h
+include/gtk-4.0/gtk/gtkimcontext.h
+include/gtk-4.0/gtk/gtkimcontextsimple.h
+include/gtk-4.0/gtk/gtkimmodule.h
+include/gtk-4.0/gtk/gtkimmulticontext.h
+include/gtk-4.0/gtk/gtkinfobar.h
+include/gtk-4.0/gtk/gtklabel.h
+include/gtk-4.0/gtk/gtklayoutchild.h
+include/gtk-4.0/gtk/gtklayoutmanager.h
+include/gtk-4.0/gtk/gtklevelbar.h
+include/gtk-4.0/gtk/gtklinkbutton.h
+include/gtk-4.0/gtk/gtklistbase.h
+include/gtk-4.0/gtk/gtklistbox.h
+include/gtk-4.0/gtk/gtklistitem.h
+include/gtk-4.0/gtk/gtklistitemfactory.h
+include/gtk-4.0/gtk/gtkliststore.h
+include/gtk-4.0/gtk/gtklistview.h
+include/gtk-4.0/gtk/gtklockbutton.h
+include/gtk-4.0/gtk/gtkmain.h
+include/gtk-4.0/gtk/gtkmaplistmodel.h
+include/gtk-4.0/gtk/gtkmediacontrols.h
+include/gtk-4.0/gtk/gtkmediafile.h
+include/gtk-4.0/gtk/gtkmediastream.h
+include/gtk-4.0/gtk/gtkmenubutton.h
+include/gtk-4.0/gtk/gtkmessagedialog.h
+include/gtk-4.0/gtk/gtkmountoperation.h
+include/gtk-4.0/gtk/gtkmultifilter.h
+include/gtk-4.0/gtk/gtkmultiselection.h
+include/gtk-4.0/gtk/gtkmultisorter.h
+include/gtk-4.0/gtk/gtknative.h
+include/gtk-4.0/gtk/gtknativedialog.h
+include/gtk-4.0/gtk/gtknoselection.h
+include/gtk-4.0/gtk/gtknotebook.h
+include/gtk-4.0/gtk/gtknumericsorter.h
+include/gtk-4.0/gtk/gtkorientable.h
+include/gtk-4.0/gtk/gtkoverlay.h
+include/gtk-4.0/gtk/gtkoverlaylayout.h
+include/gtk-4.0/gtk/gtkpadcontroller.h
+include/gtk-4.0/gtk/gtkpagesetup.h
+include/gtk-4.0/gtk/gtkpaned.h
+include/gtk-4.0/gtk/gtkpapersize.h
+include/gtk-4.0/gtk/gtkpasswordentry.h
+include/gtk-4.0/gtk/gtkpicture.h
+include/gtk-4.0/gtk/gtkpopover.h
+include/gtk-4.0/gtk/gtkpopovermenu.h
+include/gtk-4.0/gtk/gtkpopovermenubar.h
+include/gtk-4.0/gtk/gtkprintcontext.h
+include/gtk-4.0/gtk/gtkprintoperation.h
+include/gtk-4.0/gtk/gtkprintoperationpreview.h
+include/gtk-4.0/gtk/gtkprintsettings.h
+include/gtk-4.0/gtk/gtkprogressbar.h
+include/gtk-4.0/gtk/gtkrange.h
+include/gtk-4.0/gtk/gtkrecentmanager.h
+include/gtk-4.0/gtk/gtkrender.h
+include/gtk-4.0/gtk/gtkrevealer.h
+include/gtk-4.0/gtk/gtkroot.h
+include/gtk-4.0/gtk/gtkscale.h
+include/gtk-4.0/gtk/gtkscalebutton.h
+include/gtk-4.0/gtk/gtkscrollable.h
+include/gtk-4.0/gtk/gtkscrollbar.h
+include/gtk-4.0/gtk/gtkscrolledwindow.h
+include/gtk-4.0/gtk/gtksearchbar.h
+include/gtk-4.0/gtk/gtksearchentry.h
+include/gtk-4.0/gtk/gtkselectionfiltermodel.h
+include/gtk-4.0/gtk/gtkselectionmodel.h
+include/gtk-4.0/gtk/gtkseparator.h
+include/gtk-4.0/gtk/gtksettings.h
+include/gtk-4.0/gtk/gtkshortcut.h
+include/gtk-4.0/gtk/gtkshortcutaction.h
+include/gtk-4.0/gtk/gtkshortcutcontroller.h
+include/gtk-4.0/gtk/gtkshortcutlabel.h
+include/gtk-4.0/gtk/gtkshortcutmanager.h
+include/gtk-4.0/gtk/gtkshortcutsgroup.h
+include/gtk-4.0/gtk/gtkshortcutssection.h
+include/gtk-4.0/gtk/gtkshortcutsshortcut.h
+include/gtk-4.0/gtk/gtkshortcutswindow.h
+include/gtk-4.0/gtk/gtkshortcuttrigger.h
+include/gtk-4.0/gtk/gtkshow.h
+include/gtk-4.0/gtk/gtksignallistitemfactory.h
+include/gtk-4.0/gtk/gtksingleselection.h
+include/gtk-4.0/gtk/gtksizegroup.h
+include/gtk-4.0/gtk/gtksizerequest.h
+include/gtk-4.0/gtk/gtkslicelistmodel.h
+include/gtk-4.0/gtk/gtksnapshot.h
+include/gtk-4.0/gtk/gtksorter.h
+include/gtk-4.0/gtk/gtksortlistmodel.h
+include/gtk-4.0/gtk/gtkspinbutton.h
+include/gtk-4.0/gtk/gtkspinner.h
+include/gtk-4.0/gtk/gtkstack.h
+include/gtk-4.0/gtk/gtkstacksidebar.h
+include/gtk-4.0/gtk/gtkstackswitcher.h
+include/gtk-4.0/gtk/gtkstatusbar.h
+include/gtk-4.0/gtk/gtkstringfilter.h
+include/gtk-4.0/gtk/gtkstringlist.h
+include/gtk-4.0/gtk/gtkstringsorter.h
+include/gtk-4.0/gtk/gtkstylecontext.h
+include/gtk-4.0/gtk/gtkstyleprovider.h
+include/gtk-4.0/gtk/gtkswitch.h
+include/gtk-4.0/gtk/gtktestatcontext.h
+include/gtk-4.0/gtk/gtktestutils.h
+include/gtk-4.0/gtk/gtktext.h
+include/gtk-4.0/gtk/gtktextbuffer.h
+include/gtk-4.0/gtk/gtktextchild.h
+include/gtk-4.0/gtk/gtktextiter.h
+include/gtk-4.0/gtk/gtktextmark.h
+include/gtk-4.0/gtk/gtktexttag.h
+include/gtk-4.0/gtk/gtktexttagtable.h
+include/gtk-4.0/gtk/gtktextview.h
+include/gtk-4.0/gtk/gtktogglebutton.h
+include/gtk-4.0/gtk/gtktooltip.h
+include/gtk-4.0/gtk/gtktreednd.h
+include/gtk-4.0/gtk/gtktreeexpander.h
+include/gtk-4.0/gtk/gtktreelistmodel.h
+include/gtk-4.0/gtk/gtktreelistrowsorter.h
+include/gtk-4.0/gtk/gtktreemodel.h
+include/gtk-4.0/gtk/gtktreemodelfilter.h
+include/gtk-4.0/gtk/gtktreemodelsort.h
+include/gtk-4.0/gtk/gtktreeselection.h
+include/gtk-4.0/gtk/gtktreesortable.h
+include/gtk-4.0/gtk/gtktreestore.h
+include/gtk-4.0/gtk/gtktreeview.h
+include/gtk-4.0/gtk/gtktreeviewcolumn.h
+include/gtk-4.0/gtk/gtktypebuiltins.h
+include/gtk-4.0/gtk/gtktypes.h
+include/gtk-4.0/gtk/gtkversion.h
+include/gtk-4.0/gtk/gtkvideo.h
+include/gtk-4.0/gtk/gtkviewport.h
+include/gtk-4.0/gtk/gtkvolumebutton.h
+include/gtk-4.0/gtk/gtkwidget.h
+include/gtk-4.0/gtk/gtkwidgetpaintable.h
+include/gtk-4.0/gtk/gtkwindow.h
+include/gtk-4.0/gtk/gtkwindowcontrols.h
+include/gtk-4.0/gtk/gtkwindowgroup.h
+include/gtk-4.0/gtk/gtkwindowhandle.h
+include/gtk-4.0/unix-print/gtk/gtkpagesetupunixdialog.h
+include/gtk-4.0/unix-print/gtk/gtkprinter.h
+include/gtk-4.0/unix-print/gtk/gtkprintjob.h
+include/gtk-4.0/unix-print/gtk/gtkprintunixdialog.h
+include/gtk-4.0/unix-print/gtk/gtkunixprint-autocleanups.h
+include/gtk-4.0/unix-print/gtk/gtkunixprint.h
+lib/girepository-1.0/Gdk-4.0.typelib
+lib/girepository-1.0/Gsk-4.0.typelib
+lib/girepository-1.0/Gtk-4.0.typelib
+lib/gtk-4.0/4.0.0/printbackends/libprintbackend-file.dylib
+lib/gtk-4.0/4.0.0/printbackends/libprintbackend-lpr.dylib
+lib/libgtk-4.0.dylib
+lib/libgtk-4.dylib
+lib/pkgconfig/gtk4-macos.pc
+lib/pkgconfig/gtk4-unix-print.pc
+lib/pkgconfig/gtk4.pc
+share/gettext/its/gtk4builder.its
+share/gettext/its/gtk4builder.loc
+share/gir-1.0/Gdk-4.0.gir
+share/gir-1.0/Gsk-4.0.gir
+share/gir-1.0/Gtk-4.0.gir
+share/glib-2.0/schemas/org.gtk.gtk4.Settings.ColorChooser.gschema.xml
+share/glib-2.0/schemas/org.gtk.gtk4.Settings.Debug.gschema.xml
+share/glib-2.0/schemas/org.gtk.gtk4.Settings.EmojiChooser.gschema.xml
+share/glib-2.0/schemas/org.gtk.gtk4.Settings.FileChooser.gschema.xml
+share/gtk-4.0/emoji/de.gresource
+share/gtk-4.0/emoji/es.gresource
+share/gtk-4.0/emoji/fr.gresource
+share/gtk-4.0/emoji/zh.gresource
+share/gtk-4.0/gtk4builder.rng
+share/gtk-4.0/valgrind/gtk.supp
+share/locale/af/LC_MESSAGES/gtk40-properties.mo
+share/locale/af/LC_MESSAGES/gtk40.mo
+share/locale/am/LC_MESSAGES/gtk40-properties.mo
+share/locale/am/LC_MESSAGES/gtk40.mo
+share/locale/an/LC_MESSAGES/gtk40-properties.mo
+share/locale/an/LC_MESSAGES/gtk40.mo
+share/locale/ang/LC_MESSAGES/gtk40-properties.mo
+share/locale/ang/LC_MESSAGES/gtk40.mo
+share/locale/ar/LC_MESSAGES/gtk40-properties.mo
+share/locale/ar/LC_MESSAGES/gtk40.mo
+share/locale/as/LC_MESSAGES/gtk40-properties.mo
+share/locale/as/LC_MESSAGES/gtk40.mo
+share/locale/ast/LC_MESSAGES/gtk40-properties.mo
+share/locale/ast/LC_MESSAGES/gtk40.mo
+share/locale/az/LC_MESSAGES/gtk40-properties.mo
+share/locale/az/LC_MESSAGES/gtk40.mo
+share/locale/az_IR/LC_MESSAGES/gtk40-properties.mo
+share/locale/az_IR/LC_MESSAGES/gtk40.mo
+share/locale/be/LC_MESSAGES/gtk40-properties.mo
+share/locale/be/LC_MESSAGES/gtk40.mo
+share/locale/be@latin/LC_MESSAGES/gtk40-properties.mo
+share/locale/be@latin/LC_MESSAGES/gtk40.mo
+share/locale/bg/LC_MESSAGES/gtk40-properties.mo
+share/locale/bg/LC_MESSAGES/gtk40.mo
+share/locale/bn/LC_MESSAGES/gtk40-properties.mo
+share/locale/bn/LC_MESSAGES/gtk40.mo
+share/locale/bn_IN/LC_MESSAGES/gtk40-properties.mo
+share/locale/bn_IN/LC_MESSAGES/gtk40.mo
+share/locale/br/LC_MESSAGES/gtk40-properties.mo
+share/locale/br/LC_MESSAGES/gtk40.mo
+share/locale/bs/LC_MESSAGES/gtk40-properties.mo
+share/locale/bs/LC_MESSAGES/gtk40.mo
+share/locale/ca/LC_MESSAGES/gtk40-properties.mo
+share/locale/ca/LC_MESSAGES/gtk40.mo
+share/locale/ca@valencia/LC_MESSAGES/gtk40-properties.mo
+share/locale/ca@valencia/LC_MESSAGES/gtk40.mo
+share/locale/crh/LC_MESSAGES/gtk40-properties.mo
+share/locale/crh/LC_MESSAGES/gtk40.mo
+share/locale/cs/LC_MESSAGES/gtk40-properties.mo
+share/locale/cs/LC_MESSAGES/gtk40.mo
+share/locale/cy/LC_MESSAGES/gtk40-properties.mo
+share/locale/cy/LC_MESSAGES/gtk40.mo
+share/locale/da/LC_MESSAGES/gtk40-properties.mo
+share/locale/da/LC_MESSAGES/gtk40.mo
+share/locale/de/LC_MESSAGES/gtk40-properties.mo
+share/locale/de/LC_MESSAGES/gtk40.mo
+share/locale/dz/LC_MESSAGES/gtk40-properties.mo
+share/locale/dz/LC_MESSAGES/gtk40.mo
+share/locale/el/LC_MESSAGES/gtk40-properties.mo
+share/locale/el/LC_MESSAGES/gtk40.mo
+share/locale/en/LC_MESSAGES/gtk40-properties.mo
+share/locale/en/LC_MESSAGES/gtk40.mo
+share/locale/en@shaw/LC_MESSAGES/gtk40-properties.mo
+share/locale/en@shaw/LC_MESSAGES/gtk40.mo
+share/locale/en_CA/LC_MESSAGES/gtk40-properties.mo
+share/locale/en_CA/LC_MESSAGES/gtk40.mo
+share/locale/en_GB/LC_MESSAGES/gtk40-properties.mo
+share/locale/en_GB/LC_MESSAGES/gtk40.mo
+share/locale/eo/LC_MESSAGES/gtk40-properties.mo
+share/locale/eo/LC_MESSAGES/gtk40.mo
+share/locale/es/LC_MESSAGES/gtk40-properties.mo
+share/locale/es/LC_MESSAGES/gtk40.mo
+share/locale/et/LC_MESSAGES/gtk40-properties.mo
+share/locale/et/LC_MESSAGES/gtk40.mo
+share/locale/eu/LC_MESSAGES/gtk40-properties.mo
+share/locale/eu/LC_MESSAGES/gtk40.mo
+share/locale/fa/LC_MESSAGES/gtk40-properties.mo
+share/locale/fa/LC_MESSAGES/gtk40.mo
+share/locale/fi/LC_MESSAGES/gtk40-properties.mo
+share/locale/fi/LC_MESSAGES/gtk40.mo
+share/locale/fr/LC_MESSAGES/gtk40-properties.mo
+share/locale/fr/LC_MESSAGES/gtk40.mo
+share/locale/fur/LC_MESSAGES/gtk40-properties.mo
+share/locale/fur/LC_MESSAGES/gtk40.mo
+share/locale/ga/LC_MESSAGES/gtk40-properties.mo
+share/locale/ga/LC_MESSAGES/gtk40.mo
+share/locale/gd/LC_MESSAGES/gtk40-properties.mo
+share/locale/gd/LC_MESSAGES/gtk40.mo
+share/locale/gl/LC_MESSAGES/gtk40-properties.mo
+share/locale/gl/LC_MESSAGES/gtk40.mo
+share/locale/gu/LC_MESSAGES/gtk40-properties.mo
+share/locale/gu/LC_MESSAGES/gtk40.mo
+share/locale/he/LC_MESSAGES/gtk40-properties.mo
+share/locale/he/LC_MESSAGES/gtk40.mo
+share/locale/hi/LC_MESSAGES/gtk40-properties.mo
+share/locale/hi/LC_MESSAGES/gtk40.mo
+share/locale/hr/LC_MESSAGES/gtk40-properties.mo
+share/locale/hr/LC_MESSAGES/gtk40.mo
+share/locale/hu/LC_MESSAGES/gtk40-properties.mo
+share/locale/hu/LC_MESSAGES/gtk40.mo
+share/locale/hy/LC_MESSAGES/gtk40-properties.mo
+share/locale/hy/LC_MESSAGES/gtk40.mo
+share/locale/ia/LC_MESSAGES/gtk40-properties.mo
+share/locale/ia/LC_MESSAGES/gtk40.mo
+share/locale/id/LC_MESSAGES/gtk40-properties.mo
+share/locale/id/LC_MESSAGES/gtk40.mo
+share/locale/io/LC_MESSAGES/gtk40-properties.mo
+share/locale/io/LC_MESSAGES/gtk40.mo
+share/locale/is/LC_MESSAGES/gtk40-properties.mo
+share/locale/is/LC_MESSAGES/gtk40.mo
+share/locale/it/LC_MESSAGES/gtk40-properties.mo
+share/locale/it/LC_MESSAGES/gtk40.mo
+share/locale/ja/LC_MESSAGES/gtk40-properties.mo
+share/locale/ja/LC_MESSAGES/gtk40.mo
+share/locale/ka/LC_MESSAGES/gtk40-properties.mo
+share/locale/ka/LC_MESSAGES/gtk40.mo
+share/locale/kg/LC_MESSAGES/gtk40-properties.mo
+share/locale/kg/LC_MESSAGES/gtk40.mo
+share/locale/kk/LC_MESSAGES/gtk40-properties.mo
+share/locale/kk/LC_MESSAGES/gtk40.mo
+share/locale/km/LC_MESSAGES/gtk40-properties.mo
+share/locale/km/LC_MESSAGES/gtk40.mo
+share/locale/kn/LC_MESSAGES/gtk40-properties.mo
+share/locale/kn/LC_MESSAGES/gtk40.mo
+share/locale/ko/LC_MESSAGES/gtk40-properties.mo
+share/locale/ko/LC_MESSAGES/gtk40.mo
+share/locale/ku/LC_MESSAGES/gtk40-properties.mo
+share/locale/ku/LC_MESSAGES/gtk40.mo
+share/locale/ky/LC_MESSAGES/gtk40-properties.mo
+share/locale/ky/LC_MESSAGES/gtk40.mo
+share/locale/lg/LC_MESSAGES/gtk40-properties.mo
+share/locale/lg/LC_MESSAGES/gtk40.mo
+share/locale/li/LC_MESSAGES/gtk40-properties.mo
+share/locale/li/LC_MESSAGES/gtk40.mo
+share/locale/lt/LC_MESSAGES/gtk40-properties.mo
+share/locale/lt/LC_MESSAGES/gtk40.mo
+share/locale/lv/LC_MESSAGES/gtk40-properties.mo
+share/locale/lv/LC_MESSAGES/gtk40.mo
+share/locale/mai/LC_MESSAGES/gtk40-properties.mo
+share/locale/mai/LC_MESSAGES/gtk40.mo
+share/locale/mi/LC_MESSAGES/gtk40-properties.mo
+share/locale/mi/LC_MESSAGES/gtk40.mo
+share/locale/mjw/LC_MESSAGES/gtk40-properties.mo
+share/locale/mjw/LC_MESSAGES/gtk40.mo
+share/locale/mk/LC_MESSAGES/gtk40-properties.mo
+share/locale/mk/LC_MESSAGES/gtk40.mo
+share/locale/ml/LC_MESSAGES/gtk40-properties.mo
+share/locale/ml/LC_MESSAGES/gtk40.mo
+share/locale/mn/LC_MESSAGES/gtk40-properties.mo
+share/locale/mn/LC_MESSAGES/gtk40.mo
+share/locale/mr/LC_MESSAGES/gtk40-properties.mo
+share/locale/mr/LC_MESSAGES/gtk40.mo
+share/locale/ms/LC_MESSAGES/gtk40-properties.mo
+share/locale/ms/LC_MESSAGES/gtk40.mo
+share/locale/my/LC_MESSAGES/gtk40-properties.mo
+share/locale/my/LC_MESSAGES/gtk40.mo
+share/locale/nb/LC_MESSAGES/gtk40-properties.mo
+share/locale/nb/LC_MESSAGES/gtk40.mo
+share/locale/nds/LC_MESSAGES/gtk40-properties.mo
+share/locale/nds/LC_MESSAGES/gtk40.mo
+share/locale/ne/LC_MESSAGES/gtk40-properties.mo
+share/locale/ne/LC_MESSAGES/gtk40.mo
+share/locale/nl/LC_MESSAGES/gtk40-properties.mo
+share/locale/nl/LC_MESSAGES/gtk40.mo
+share/locale/nn/LC_MESSAGES/gtk40-properties.mo
+share/locale/nn/LC_MESSAGES/gtk40.mo
+share/locale/nso/LC_MESSAGES/gtk40-properties.mo
+share/locale/nso/LC_MESSAGES/gtk40.mo
+share/locale/oc/LC_MESSAGES/gtk40-properties.mo
+share/locale/oc/LC_MESSAGES/gtk40.mo
+share/locale/or/LC_MESSAGES/gtk40-properties.mo
+share/locale/or/LC_MESSAGES/gtk40.mo
+share/locale/pa/LC_MESSAGES/gtk40-properties.mo
+share/locale/pa/LC_MESSAGES/gtk40.mo
+share/locale/pl/LC_MESSAGES/gtk40-properties.mo
+share/locale/pl/LC_MESSAGES/gtk40.mo
+share/locale/ps/LC_MESSAGES/gtk40-properties.mo
+share/locale/ps/LC_MESSAGES/gtk40.mo
+share/locale/pt/LC_MESSAGES/gtk40-properties.mo
+share/locale/pt/LC_MESSAGES/gtk40.mo
+share/locale/pt_BR/LC_MESSAGES/gtk40-properties.mo
+share/locale/pt_BR/LC_MESSAGES/gtk40.mo
+share/locale/ro/LC_MESSAGES/gtk40-properties.mo
+share/locale/ro/LC_MESSAGES/gtk40.mo
+share/locale/ru/LC_MESSAGES/gtk40-properties.mo
+share/locale/ru/LC_MESSAGES/gtk40.mo
+share/locale/rw/LC_MESSAGES/gtk40-properties.mo
+share/locale/rw/LC_MESSAGES/gtk40.mo
+share/locale/si/LC_MESSAGES/gtk40-properties.mo
+share/locale/si/LC_MESSAGES/gtk40.mo
+share/locale/sk/LC_MESSAGES/gtk40-properties.mo
+share/locale/sk/LC_MESSAGES/gtk40.mo
+share/locale/sl/LC_MESSAGES/gtk40-properties.mo
+share/locale/sl/LC_MESSAGES/gtk40.mo
+share/locale/sq/LC_MESSAGES/gtk40-properties.mo
+share/locale/sq/LC_MESSAGES/gtk40.mo
+share/locale/sr/LC_MESSAGES/gtk40-properties.mo
+share/locale/sr/LC_MESSAGES/gtk40.mo
+share/locale/sr@ije/LC_MESSAGES/gtk40-properties.mo
+share/locale/sr@ije/LC_MESSAGES/gtk40.mo
+share/locale/sr@latin/LC_MESSAGES/gtk40-properties.mo
+share/locale/sr@latin/LC_MESSAGES/gtk40.mo
+share/locale/sv/LC_MESSAGES/gtk40-properties.mo
+share/locale/sv/LC_MESSAGES/gtk40.mo
+share/locale/ta/LC_MESSAGES/gtk40-properties.mo
+share/locale/ta/LC_MESSAGES/gtk40.mo
+share/locale/te/LC_MESSAGES/gtk40-properties.mo
+share/locale/te/LC_MESSAGES/gtk40.mo
+share/locale/tg/LC_MESSAGES/gtk40-properties.mo
+share/locale/tg/LC_MESSAGES/gtk40.mo
+share/locale/th/LC_MESSAGES/gtk40-properties.mo
+share/locale/th/LC_MESSAGES/gtk40.mo
+share/locale/tk/LC_MESSAGES/gtk40-properties.mo
+share/locale/tk/LC_MESSAGES/gtk40.mo
+share/locale/tr/LC_MESSAGES/gtk40-properties.mo
+share/locale/tr/LC_MESSAGES/gtk40.mo
+share/locale/tt/LC_MESSAGES/gtk40-properties.mo
+share/locale/tt/LC_MESSAGES/gtk40.mo
+share/locale/ug/LC_MESSAGES/gtk40-properties.mo
+share/locale/ug/LC_MESSAGES/gtk40.mo
+share/locale/uk/LC_MESSAGES/gtk40-properties.mo
+share/locale/uk/LC_MESSAGES/gtk40.mo
+share/locale/ur/LC_MESSAGES/gtk40-properties.mo
+share/locale/ur/LC_MESSAGES/gtk40.mo
+share/locale/uz/LC_MESSAGES/gtk40-properties.mo
+share/locale/uz/LC_MESSAGES/gtk40.mo
+share/locale/uz@cyrillic/LC_MESSAGES/gtk40-properties.mo
+share/locale/uz@cyrillic/LC_MESSAGES/gtk40.mo
+share/locale/vi/LC_MESSAGES/gtk40-properties.mo
+share/locale/vi/LC_MESSAGES/gtk40.mo
+share/locale/wa/LC_MESSAGES/gtk40-properties.mo
+share/locale/wa/LC_MESSAGES/gtk40.mo
+share/locale/xh/LC_MESSAGES/gtk40-properties.mo
+share/locale/xh/LC_MESSAGES/gtk40.mo
+share/locale/yi/LC_MESSAGES/gtk40-properties.mo
+share/locale/yi/LC_MESSAGES/gtk40.mo
+share/locale/zh_CN/LC_MESSAGES/gtk40-properties.mo
+share/locale/zh_CN/LC_MESSAGES/gtk40.mo
+share/locale/zh_HK/LC_MESSAGES/gtk40-properties.mo
+share/locale/zh_HK/LC_MESSAGES/gtk40.mo
+share/locale/zh_TW/LC_MESSAGES/gtk40-properties.mo
+share/locale/zh_TW/LC_MESSAGES/gtk40.mo
+@pkgdir lib/gtk-3.0/modules
+@pkgdir lib/gtk-3.0/immodules
+@pkgdir lib/gtk-3.0/3.0.0/filesystems
diff --git a/gtk4/buildlink3.mk b/gtk4/buildlink3.mk
new file mode 100644
index 0000000000..c826b27182
--- /dev/null
+++ b/gtk4/buildlink3.mk
@@ -0,0 +1,47 @@
+# $NetBSD: buildlink3.mk,v 1.43 2020/08/17 20:17:50 leot Exp $
+
+BUILDLINK_TREE+=	gtk4
+
+.if !defined(GTK4_BUILDLINK3_MK)
+GTK4_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gtk4+=	gtk4+>=3.99.0
+BUILDLINK_ABI_DEPENDS.gtk4+=	gtk4+>=3.99.4
+BUILDLINK_PKGSRCDIR.gtk4?=	../../wip/gtk4
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+pkgbase := gtk4
+.include "../../mk/pkg-build-options.mk"
+
+.include "../../devel/atk/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../wip/pango/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/cairo-gobject/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libepoxy+=	libepoxy>=1.4
+.include "../../graphics/libepoxy/buildlink3.mk"
+.if ${PKG_BUILD_OPTIONS.gtk4:Mx11}
+.  if ${PKG_BUILD_OPTIONS.gtk4:Mgtk3-atk-bridge}
+.    include "../../devel/at-spi2-atk/buildlink3.mk"
+.  endif # PKG_BUILD_OPTIONS.gtk4:Mgtk3-atk-bridge
+.include "../../x11/libXcursor/buildlink3.mk"
+BUILDLINK_API_DEPENDS.Xft2+=	Xft2>=2.1.2nb2
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+.endif # PKG_BUILD_OPTIONS.gtk4:Mx11
+.if ${PKG_BUILD_OPTIONS.gtk4:Mwayland}
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.endif # PKG_BUILD_OPTIONS.gtk4:Mwayland
+.endif # GTK4_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-gtk4
diff --git a/gtk4/distinfo b/gtk4/distinfo
new file mode 100644
index 0000000000..ff59f95f72
--- /dev/null
+++ b/gtk4/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.83 2020/10/01 11:54:11 prlw1 Exp $
+
+SHA1 (gtk-3.99.4.tar.xz) = 0ce3b8f1cae99ee99eb9a16e944bcbe7c83bcf88
+RMD160 (gtk-3.99.4.tar.xz) = 82e29de984b74bcc8169d3528b477c357198a913
+SHA512 (gtk-3.99.4.tar.xz) = 85a0999c3ca07a0f6897ffe5d93ed04c953a952dde6f6ca72bf99641532acda38461177b460bda445c76abed66c5a7af07d4dd928084be5a54a7175e8133cd37
+Size (gtk-3.99.4.tar.xz) = 19464736 bytes
+SHA1 (patch-gdk_wayland_gdkdevice-wayland.c) = e283bd6533ea1307b971c524bc05f0d3ee90453d
diff --git a/gtk4/files/immodules.tmpl b/gtk4/files/immodules.tmpl
new file mode 100644
index 0000000000..56373d6430
--- /dev/null
+++ b/gtk4/files/immodules.tmpl
@@ -0,0 +1,22 @@
+# $NetBSD: immodules.tmpl,v 1.2 2011/06/05 12:13:47 obache Exp $
+#
+# Rebuild the GTK3 immodules database.
+#
+
+GTK3_IMMODULES_DB="@GTK3_IMMODULES_DB@"
+GTK3_QUERY_IMMODULES="@GTK3_QUERY_IMMODULES@"
+
+case ${STAGE} in
+POST-INSTALL)
+	${GTK3_QUERY_IMMODULES} > ${GTK3_IMMODULES_DB}
+	;;
+DEINSTALL)
+	[ "${PKGBASE}" = "gtk3+" ] && ${RM} -f ${GTK3_IMMODULES_DB}
+	;;
+POST-DEINSTALL)
+	[ "${PKGBASE}" != "gtk3+" ] && \
+		${GTK3_QUERY_IMMODULES} > ${GTK3_IMMODULES_DB}
+	;;
+*)
+	;;
+esac
diff --git a/gtk4/modules.mk b/gtk4/modules.mk
new file mode 100644
index 0000000000..504791746a
--- /dev/null
+++ b/gtk4/modules.mk
@@ -0,0 +1,35 @@
+# $NetBSD: modules.mk,v 1.3 2011/11/27 11:26:21 obache Exp $
+#
+# This Makefile fragment is intended to be included by packages that install
+# GTK3 modules.  It takes care of rebuilding the corresponding databases at
+# (de)installation time.
+#
+# The following variables can be defined:
+#    GTK3_IMMODULES - Set to YES if the package installs immodules.
+#
+
+.if !defined(GTK3_MODULES_MK)
+GTK3_MODULES_MK=	# defined
+
+GTK3_QUERY_IMMODULES=	${BUILDLINK_PREFIX.gtk3}/bin/gtk-query-immodules-3.0
+
+.if defined(_BUILDING_GTK3)
+BUILDLINK_PREFIX.gtk3=	${PREFIX}
+GTK3_IMMODULES=		YES
+.endif
+
+.if defined(GTK3_IMMODULES) && !empty(GTK3_IMMODULES:M[Yy][Ee][Ss])
+FILES_SUBST+=		GTK3_IMMODULES_DB=${GTK3_IMMODULES_DB:Q}
+FILES_SUBST+=		GTK3_QUERY_IMMODULES=${GTK3_QUERY_IMMODULES:Q}
+GTK3_IMMODULES_DB=	${BUILDLINK_PREFIX.gtk3}/lib/gtk-3.0/3.0.0/immodules.cache
+INSTALL_TEMPLATES+=	../../x11/gtk3/files/immodules.tmpl
+DEINSTALL_TEMPLATES+=	../../x11/gtk3/files/immodules.tmpl
+.endif
+
+PRINT_PLIST_AWK+=	/^libdata\/gtk-3.0/ { next; }
+
+.if !defined(_BUILDING_GTK3)
+.  include "../../x11/gtk3/buildlink3.mk"
+.endif
+
+.endif			# GTK3_MODULES_MK
diff --git a/gtk4/options.mk b/gtk4/options.mk
new file mode 100644
index 0000000000..6a5bde78b6
--- /dev/null
+++ b/gtk4/options.mk
@@ -0,0 +1,77 @@
+# $NetBSD: options.mk,v 1.20 2020/05/19 19:53:14 maya Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.gtk4
+PKG_SUPPORTED_OPTIONS+=	gtk3-atk-bridge cups debug
+PKG_SUPPORTED_OPTIONS+=	wayland x11
+.if exists(/System/Library/Frameworks/Quartz.framework)
+PKG_SUPPORTED_OPTIONS+=	quartz
+.endif
+.include "../../devel/wayland/platform.mk"
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
+PKG_SUGGESTED_OPTIONS+=	wayland
+.endif
+PKG_SUGGESTED_OPTIONS+=	gtk3-atk-bridge x11 cups
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=		cups
+.if !empty(PKG_OPTIONS:Mcups)
+.include "../../print/libcups/buildlink3.mk"
+PLIST.cups=		yes
+.else
+MESON_ARGS+=		-Dprint-cups=disabled
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+MESON_ARGS+=		-Ddebug=yes
+.endif
+
+PLIST_VARS+=		quartz
+.if !empty(PKG_OPTIONS:Mquartz)
+MESON_ARGS+=		-Dmacos-backend=true
+PLIST.quartz=		yes
+.else
+MESON_ARGS+=		-Dmacos-backend=false
+.endif
+
+PLIST_VARS+=		wayland
+.if !empty(PKG_OPTIONS:Mwayland)
+PLIST.wayland=		yes
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+MESON_ARGS+=		-Dwayland-backend=true
+.else
+MESON_ARGS+=		-Dwayland-backend=false
+.endif
+
+PLIST_VARS+=		x11
+.if !empty(PKG_OPTIONS:Mx11)
+MESON_ARGS+=		-Dx11-backend=true
+MESON_ARGS+=		-Dxinerama=disabled
+PLIST.x11=		yes
+
+.  if !empty(PKG_OPTIONS:Mgtk3-atk-bridge)
+BUILDLINK_API_DEPENDS.at-spi2-atk+=	at-spi2-atk>=2.6.1
+.    include "../../devel/at-spi2-atk/buildlink3.mk"
+.  else
+CONFIGURE_ARGS+=	--without-atk-bridge
+.  endif
+
+BUILDLINK_API_DEPENDS.Xft2+=	Xft2>=2.1.2nb2
+
+.include "../../x11/xorgproto/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXcursor/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+.else
+MESON_ARGS+=		-Dx11-backend=false
+.endif
diff --git a/gtk4/patches/patch-gdk_wayland_gdkdevice-wayland.c b/gtk4/patches/patch-gdk_wayland_gdkdevice-wayland.c
new file mode 100644
index 0000000000..fa11ff201e
--- /dev/null
+++ b/gtk4/patches/patch-gdk_wayland_gdkdevice-wayland.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-gdk_wayland_gdkdevice-wayland.c,v 1.2 2019/10/29 22:46:39 nia Exp $
+
+Allow building on systems without evdev.
+
+--- gdk/wayland/gdkdevice-wayland.c.orig	2019-04-10 19:30:43.000000000 +0000
++++ gdk/wayland/gdkdevice-wayland.c
+@@ -44,6 +44,14 @@
+ #include <dev/evdev/input.h>
+ #elif defined(HAVE_LINUX_INPUT_H)
+ #include <linux/input.h>
++#else
++#ifndef BTN_LEFT
++#define BTN_LEFT	(0x110)
++#define BTN_RIGHT	(0x111)
++#define BTN_MIDDLE	(0x112)
++#define BTN_STYLUS	(0x14b)
++#define BTN_STYLUS2	(0x14c)
++#endif
+ #endif
+ 
+ #define BUTTON_BASE (BTN_LEFT - 1) /* Used to translate to 1-indexed buttons */


Home | Main Index | Thread Index | Old Index