I would like to create a new multi package ""-gtk" for Qt6Base.
If anything, very few people actually use it, but everyone ends up with
a massive GNOME mess. I'd like to separate this out and NOT install it
by default.
While here I fixed the dependents:
- ${MODGCC_CPPLIBDEP} for all multi packages.
- Remove form lib/build/run x11/gnome/at-spi2-core.
What do you think?
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/qt6/qtbase/Makefile,v
diff -u -p -u -p -r1.59 Makefile
--- Makefile 24 Oct 2026 06:21:48 -0000 1.59
+++ Makefile 20 Nov 2026 14:28:48 -0000
@@ -4,12 +4,17 @@ COMMENT-main = C++ general-purpose tool
COMMENT-global = global Qt6 documentation internals
COMMENT-mysql = MySQL plugin for Qt6
COMMENT-psql = PostgresSQL plugin for Qt6
+COMMENT-gtk = GTK platform theme plugin for Qt6
PKGSPEC-main = qt6-qtbase-${QT6_PKGSPEC}
PKGNAME-mysql = qt6-mysql-${VERSION}
PKGNAME-global = qt6-global-${VERSION}
PKGNAME-psql = qt6-postgresql-${VERSION}
+PKGNAME-gtk = qt6-gtk-${VERSION}
+
+REVISION-main = 0
+REVISION-mysql = 0
PKG_ARCH-global = *
@@ -34,23 +39,26 @@ SHARED_LIBS += Qt6OpenGLWidgets
SHARED_LIBS += Qt6WaylandClient 11.0 # 6.7
SHARED_LIBS += Qt6WlShellIntegration 5.0 # 6.7
-WANTLIB-main += ${COMPILER_LIBCXX} EGL GL ICE SM X11 X11-xcb atk-1.0
-WANTLIB-main += b2 brotlidec c cairo cairo-gobject crypto cups dbus-1
-WANTLIB-main += double-conversion drm execinfo fontconfig freetype
-WANTLIB-main += gbm gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
-WANTLIB-main += gthread-2.0 gtk-3 harfbuzz icudata icui18n icuuc intl
-WANTLIB-main += iodbc jpeg m pango-1.0 pangocairo-1.0 pcre2-16 png
-WANTLIB-main += proxy sqlite3 ssl wayland-client wayland-cursor wayland-egl
-WANTLIB-main += xcb xcb-cursor xcb-glx xcb-icccm xcb-image xcb-keysyms
-WANTLIB-main += xcb-randr xcb-render xcb-render-util xcb-shape xcb-shm
-WANTLIB-main += xcb-sync xcb-util xcb-xfixes xcb-xinput xcb-xkb xkbcommon
-WANTLIB-main += xkbcommon-x11 z zstd
+WANTLIB-main += ${COMPILER_LIBCXX} EGL GL ICE SM X11 X11-xcb b2 brotlicommon
+WANTLIB-main += brotlidec c crypto cups dbus-1 double-conversion drm
+WANTLIB-main += execinfo fontconfig freetype gbm gio-2.0 glib-2.0 gobject-2.0
+WANTLIB-main += gthread-2.0 harfbuzz icudata icui18n icuuc iodbc jpeg
+WANTLIB-main += m pcre2-16 png proxy sqlite3 ssl wayland-client wayland-cursor
+WANTLIB-main += wayland-egl xcb xcb-cursor xcb-glx xcb-icccm xcb-image
+WANTLIB-main += xcb-keysyms xcb-randr xcb-render xcb-render-util xcb-shape
+WANTLIB-main += xcb-shm xcb-sync xcb-util xcb-xfixes xcb-xinput xcb-xkb
+WANTLIB-main += xkbcommon xkbcommon-x11 z zstd
WANTLIB-mysql += ${COMPILER_LIBCXX} Qt6Core Qt6Sql execinfo m mariadb
WANTLIB-psql += ${COMPILER_LIBCXX} Qt6Core Qt6Sql execinfo m pq
-MULTI_PACKAGES = -main -global -mysql -psql
+WANTLIB-gtk += ${COMPILER_LIBCXX} GL Qt6Core Qt6DBus Qt6Gui X11 atk-1.0
+WANTLIB-gtk += cairo cairo-gobject execinfo gdk-3 gdk_pixbuf-2.0 gio-2.0
+WANTLIB-gtk += glib-2.0 gobject-2.0 gtk-3 harfbuzz intl m pango-1.0
+WANTLIB-gtk += pangocairo-1.0 xkbcommon
+
+MULTI_PACKAGES = -main -global -mysql -psql -gtk
MODULES = lang/python
CONFIGURE_STYLE = cmake
@@ -61,10 +69,8 @@ LIB_DEPENDS-main = archivers/brotli \
databases/iodbc \
databases/sqlite3 \
devel/harfbuzz \
- devel/pango \
devel/pcre2 \
- graphics/cairo \
- graphics/gdk-pixbuf2 \
+ graphics/jpeg \
math/double-conversion \
net/libproxy \
print/cups,-libs \
@@ -72,13 +78,11 @@ LIB_DEPENDS-main = archivers/brotli \
textproc/icu4c \
wayland/wayland \
x11/dbus \
- x11/gnome/at-spi2-core \
- x11/gtk+3 \
x11/xkbcommon
-LIB_DEPENDS-global =
+LIB_DEPENDS-main += ${MODGCC_CPPLIBDEP}
-LIB_DEPENDS-main += devel/gettext,-runtime
+LIB_DEPENDS-global =
LIB_DEPENDS-mysql = ${BASE_PKGPATH},-main \
databases/mariadb
@@ -90,16 +94,24 @@ LIB_DEPENDS-psql = ${BASE_PKGPATH},-main
LIB_DEPENDS-psql += ${MODGCC_CPPLIBDEP}
+LIB_DEPENDS-gtk = ${BASE_PKGPATH},-main \
+ devel/pango \
+ graphics/cairo \
+ graphics/gdk-pixbuf2 \
+ x11/gnome/at-spi2-core \
+ x11/gtk+3
+
+LIB_DEPENDS-gtk += ${MODGCC_CPPLIBDEP}
+
BUILD_DEPENDS = graphics/vulkan-headers \
- wayland/wayland-protocols \
- x11/gnome/at-spi2-core
+ wayland/wayland-protocols
-RUN_DEPENDS-main = ${RUN_DEPENDS} \
- x11/gnome/at-spi2-core
+RUN_DEPENDS-main = ${RUN_DEPENDS}
RUN_DEPENDS-global =
RUN_DEPENDS-mysql =
RUN_DEPENDS-psql =
+RUN_DEPENDS-gtk =
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mclang}
Index: pkg/DESCR-gtk
===================================================================
RCS file: pkg/DESCR-gtk
diff -N pkg/DESCR-gtk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/DESCR-gtk 20 Nov 2026 14:28:48 -0000
@@ -0,0 +1,6 @@
+GTK3 platform theme plugin for Qt6.
+
+Lets Qt applications use the GTK3 file dialogs, color and font dialogs,
+and pick up fonts and colors from the GTK3 settings.
+
+Enable it with: QT_QPA_PLATFORMTHEME=gtk3
Index: pkg/PLIST-gtk
===================================================================
RCS file: pkg/PLIST-gtk
diff -N pkg/PLIST-gtk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/PLIST-gtk 20 Nov 2026 14:28:48 -0000
@@ -0,0 +1,8 @@
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfig.cmake
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfigVersion.cmake
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfigVersionImpl.cmake
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets${MODCMAKE_BUILD_SUFFIX}
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets.cmake
+lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargetsPrecheck.cmake
+@so lib/qt6/plugins/platformthemes/libqgtk3.so
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/x11/qt6/qtbase/pkg/PLIST-main,v
diff -u -p -u -p -r1.23 PLIST-main
--- pkg/PLIST-main 24 Oct 2026 06:21:48 -0000 1.23
+++ pkg/PLIST-main 20 Nov 2026 14:28:48 -0000
@@ -3299,13 +3299,6 @@ lib/cmake/Qt6Gui/Qt6QGifPluginConfigVers
lib/cmake/Qt6Gui/Qt6QGifPluginTargets${MODCMAKE_BUILD_SUFFIX}
lib/cmake/Qt6Gui/Qt6QGifPluginTargets.cmake
lib/cmake/Qt6Gui/Qt6QGifPluginTargetsPrecheck.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginAdditionalTargetInfo.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfig.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfigVersion.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginConfigVersionImpl.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets${MODCMAKE_BUILD_SUFFIX}
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets.cmake
-lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargetsPrecheck.cmake
lib/cmake/Qt6Gui/Qt6QICOPluginAdditionalTargetInfo.cmake
lib/cmake/Qt6Gui/Qt6QICOPluginConfig.cmake
lib/cmake/Qt6Gui/Qt6QICOPluginConfigVersion.cmake
@@ -4589,7 +4582,6 @@ lib/qt6/plugins/platforms/
@so lib/qt6/plugins/platforms/libqwayland.so
@so lib/qt6/plugins/platforms/libqxcb.so
lib/qt6/plugins/platformthemes/
-@so lib/qt6/plugins/platformthemes/libqgtk3.so
@so lib/qt6/plugins/platformthemes/libqxdgdesktopportal.so
lib/qt6/plugins/printsupport/
@so lib/qt6/plugins/printsupport/libcupsprintersupport.so