Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2020 00:55:52 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r539507 - head/x11-toolkits/gtk30
Message-ID:  <202006180055.05I0tq9S016461@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Jun 18 00:55:52 2020
New Revision: 539507
URL: https://svnweb.freebsd.org/changeset/ports/539507

Log:
  x11-toolkits/gtk30: make X11 optional
  
  Makes it easier to expose X11 consumers and reduce some bloat.
  
  PR:		247091

Modified:
  head/x11-toolkits/gtk30/Makefile   (contents, props changed)
  head/x11-toolkits/gtk30/pkg-plist   (contents, props changed)

Modified: head/x11-toolkits/gtk30/Makefile
==============================================================================
--- head/x11-toolkits/gtk30/Makefile	Thu Jun 18 00:55:47 2020	(r539506)
+++ head/x11-toolkits/gtk30/Makefile	Thu Jun 18 00:55:52 2020	(r539507)
@@ -33,11 +33,8 @@ USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 USE_GNOME=	atk cairo gdkpixbuf2 introspection:build pango
 USES=		compiler:c11 gettext gmake gnome libtool localbase \
-		pathfix perl5 pkgconfig tar:xz xorg
-USE_XORG=	xext xrender x11 xinerama xi xrandr xcursor xfixes xdamage \
-		xcomposite
-CONFIGURE_ARGS=	--enable-x11-backend \
-		--enable-introspection
+		pathfix perl5 pkgconfig tar:xz
+CONFIGURE_ARGS=	--enable-introspection
 CPPFLAGS+=	-fno-omit-frame-pointer
 INSTALLS_ICONS=	yes
 INSTALL_TARGET=	install-strip
@@ -51,13 +48,14 @@ GLIB_SCHEMAS=	org.gtk.Demo.gschema.xml \
 		org.gtk.Settings.EmojiChooser.gschema.xml \
 		org.gtk.Settings.FileChooser.gschema.xml
 
-OPTIONS_DEFINE=	ATK_BRIDGE CUPS CLOUDPRINT COLORD DEBUG BROADWAY WAYLAND
-OPTIONS_DEFAULT=ATK_BRIDGE CUPS COLORD BROADWAY WAYLAND
+OPTIONS_DEFINE=	ATK_BRIDGE CUPS CLOUDPRINT COLORD DEBUG BROADWAY WAYLAND X11
+OPTIONS_DEFAULT=ATK_BRIDGE CUPS COLORD BROADWAY WAYLAND X11
 OPTIONS_SUB=	yes
 
-ATK_BRIDGE_DESC=AT-SPI ATK bridge support
+ATK_BRIDGE_DESC=AT-SPI ATK bridge support (requires X11)
 ATK_BRIDGE_CONFIGURE_WITH=	atk-bridge
 ATK_BRIDGE_LIB_DEPENDS=	libatk-bridge-2.0.so:accessibility/at-spi2-atk
+ATK_BRIDGE_IMPLIES=	X11
 
 BROADWAY_DESC=	Enable GDK Broadway backend for showing GTK+ in the webbrowser using HTML5 and web sockets.
 BROADWAY_CONFIGURE_ENABLE=	broadway-backend
@@ -89,11 +87,16 @@ WAYLAND_RUN_DEPENDS=	wayland-protocols>=0:graphics/way
 WAYLAND_USES=		gl
 WAYLAND_USE=		GL=egl
 
+X11_DESC=		GDK X11 backend
+X11_CONFIGURE_ENABLE=	x11-backend
+X11_USES=		xorg
+X11_USE=		XORG=x11,xcomposite,xcursor,xdamage,xext,xfixes,xi,xinerama,xrandr,xrender
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|[{]libdir[}]/locale|{datadir}/locale|g' \
 		${WRKSRC}/configure
 
-pre-configure:
+pre-configure-X11-on:
 # .if !exists() evaluates too early before cairo has a chance to be installed
 	@if ! pkg-config --exists cairo-xlib; then \
 		${ECHO_MSG} "${PKGNAME}: Needs cairo with X11 support enabled."; \

Modified: head/x11-toolkits/gtk30/pkg-plist
==============================================================================
--- head/x11-toolkits/gtk30/pkg-plist	Thu Jun 18 00:55:47 2020	(r539506)
+++ head/x11-toolkits/gtk30/pkg-plist	Thu Jun 18 00:55:52 2020	(r539507)
@@ -60,34 +60,34 @@ include/gtk-3.0/gdk/gdkversionmacros.h
 include/gtk-3.0/gdk/gdkvisual.h
 %%WAYLAND%%include/gtk-3.0/gdk/gdkwayland.h
 include/gtk-3.0/gdk/gdkwindow.h
-include/gtk-3.0/gdk/gdkx.h
+%%X11%%include/gtk-3.0/gdk/gdkx.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylanddevice.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylanddisplay.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylandglcontext.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylandmonitor.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylandselection.h
 %%WAYLAND%%include/gtk-3.0/gdk/wayland/gdkwaylandwindow.h
-include/gtk-3.0/gdk/x11/gdkx-autocleanups.h
-include/gtk-3.0/gdk/x11/gdkx11applaunchcontext.h
-include/gtk-3.0/gdk/x11/gdkx11cursor.h
-include/gtk-3.0/gdk/x11/gdkx11device-core.h
-include/gtk-3.0/gdk/x11/gdkx11device-xi2.h
-include/gtk-3.0/gdk/x11/gdkx11device.h
-include/gtk-3.0/gdk/x11/gdkx11devicemanager-core.h
-include/gtk-3.0/gdk/x11/gdkx11devicemanager-xi2.h
-include/gtk-3.0/gdk/x11/gdkx11devicemanager.h
-include/gtk-3.0/gdk/x11/gdkx11display.h
-include/gtk-3.0/gdk/x11/gdkx11displaymanager.h
-include/gtk-3.0/gdk/x11/gdkx11dnd.h
-include/gtk-3.0/gdk/x11/gdkx11glcontext.h
-include/gtk-3.0/gdk/x11/gdkx11keys.h
-include/gtk-3.0/gdk/x11/gdkx11monitor.h
-include/gtk-3.0/gdk/x11/gdkx11property.h
-include/gtk-3.0/gdk/x11/gdkx11screen.h
-include/gtk-3.0/gdk/x11/gdkx11selection.h
-include/gtk-3.0/gdk/x11/gdkx11utils.h
-include/gtk-3.0/gdk/x11/gdkx11visual.h
-include/gtk-3.0/gdk/x11/gdkx11window.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx-autocleanups.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11applaunchcontext.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11cursor.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11device-core.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11device-xi2.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11device.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11devicemanager-core.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11devicemanager-xi2.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11devicemanager.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11display.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11displaymanager.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11dnd.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11glcontext.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11keys.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11monitor.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11property.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11screen.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11selection.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11utils.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11visual.h
+%%X11%%include/gtk-3.0/gdk/x11/gdkx11window.h
 include/gtk-3.0/gtk/a11y/gtk-a11y-autocleanups.h
 include/gtk-3.0/gtk/a11y/gtkarrowaccessible.h
 include/gtk-3.0/gtk/a11y/gtkbooleancellaccessible.h
@@ -415,7 +415,7 @@ include/gtk-3.0/unix-print/gtk/gtkprintunixdialog.h
 include/gtk-3.0/unix-print/gtk/gtkunixprint-autocleanups.h
 include/gtk-3.0/unix-print/gtk/gtkunixprint.h
 lib/girepository-1.0/Gdk-3.0.typelib
-lib/girepository-1.0/GdkX11-3.0.typelib
+%%X11%%lib/girepository-1.0/GdkX11-3.0.typelib
 lib/girepository-1.0/Gtk-3.0.typelib
 lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-am-et.so
 %%BROADWAY%%lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-broadway.so
@@ -430,7 +430,7 @@ lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-ti-et.so
 lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-viqr.so
 %%WAYLAND%%lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-wayland.so
 %%WAYLAND%%lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-waylandgtk.so
-lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-xim.so
+%%X11%%lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-xim.so
 %%CLOUDPRINT%%lib/gtk-3.0/%%GTK3_VERSION%%/printbackends/libprintbackend-cloudprint.so
 %%CUPS%%lib/gtk-3.0/%%GTK3_VERSION%%/printbackends/libprintbackend-cups.so
 lib/gtk-3.0/%%GTK3_VERSION%%/printbackends/libprintbackend-file.so
@@ -448,12 +448,12 @@ libdata/pkgconfig/gail-3.0.pc
 libdata/pkgconfig/gdk-3.0.pc
 %%BROADWAY%%libdata/pkgconfig/gdk-broadway-3.0.pc
 %%WAYLAND%%libdata/pkgconfig/gdk-wayland-3.0.pc
-libdata/pkgconfig/gdk-x11-3.0.pc
+%%X11%%libdata/pkgconfig/gdk-x11-3.0.pc
 libdata/pkgconfig/gtk+-3.0.pc
 %%BROADWAY%%libdata/pkgconfig/gtk+-broadway-3.0.pc
 libdata/pkgconfig/gtk+-unix-print-3.0.pc
 %%WAYLAND%%libdata/pkgconfig/gtk+-wayland-3.0.pc
-libdata/pkgconfig/gtk+-x11-3.0.pc
+%%X11%%libdata/pkgconfig/gtk+-x11-3.0.pc
 %%BROADWAY%%man/man1/broadwayd.1.gz
 man/man1/gtk-builder-tool.1.gz
 man/man1/gtk-encode-symbolic-svg.1.gz
@@ -471,7 +471,7 @@ share/applications/gtk3-widget-factory.desktop
 share/gettext/its/gtkbuilder.its
 share/gettext/its/gtkbuilder.loc
 share/gir-1.0/Gdk-3.0.gir
-share/gir-1.0/GdkX11-3.0.gir
+%%X11%%share/gir-1.0/GdkX11-3.0.gir
 share/gir-1.0/Gtk-3.0.gir
 %%DATADIR%%-3.0/gtkbuilder.rng
 %%DATADIR%%-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006180055.05I0tq9S016461>