git: f22616944873 - main - x11/plasma6-plasma-integration: introduce Qt6 and Qt5 flavors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Jan 2025 09:49:10 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f226169448737b65ab4edc0b62cfeabf2b3070f8
commit f226169448737b65ab4edc0b62cfeabf2b3070f8
Author: Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-01-29 09:47:14 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-01-29 09:47:14 +0000
x11/plasma6-plasma-integration: introduce Qt6 and Qt5 flavors
---
x11/plasma6-plasma-integration/Makefile | 46 ++++++++++++++++++----
x11/plasma6-plasma-integration/pkg-plist.qt5 | 1 +
.../{pkg-plist => pkg-plist.qt6} | 0
3 files changed, 39 insertions(+), 8 deletions(-)
diff --git a/x11/plasma6-plasma-integration/Makefile b/x11/plasma6-plasma-integration/Makefile
index 5a895d1cdcaf..b3d8716911be 100644
--- a/x11/plasma6-plasma-integration/Makefile
+++ b/x11/plasma6-plasma-integration/Makefile
@@ -1,27 +1,57 @@
PORTNAME= plasma-integration
DISTVERSION= ${KDE_PLASMA_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde kde-plasma
+PKGNAMESUFFIX= -${FLAVOR}
-COMMENT= Qt Platform Theme integration plugins for the Plasma workspaces
+COMMENT= Plasma 6 theme integration plugins for Qt${FLAVOR:S/qt//}
MAINTAINER= kde@FreeBSD.org
+FLAVORS= qt6 qt5
+FLAVOR?= qt6
+
LIB_DEPENDS= libwayland-client.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS= hack-font>0:x11-fonts/hack-font \
noto-basic>0:x11-fonts/noto-basic \
noto-emoji>0:x11-fonts/noto-emoji
-USES= cmake gettext gl kde:6 qt:6 tar:xz xorg
-USE_KDE= bookmarks breeze colorscheme completion config configwidgets \
+USES= cmake gettext gl tar:xz xorg
+USES+= ${${FLAVOR}_USES}
+USE_KDE= ${${FLAVOR}_USE_KDE}
+USE_GL= gl opengl
+USE_XORG= x11 xcb xcursor
+USE_QT= ${${FLAVOR}_USE_QT}
+
+CMAKE_ON= ${${FLAVOR}_CMAKE_ON}
+CMAKE_OFF= ${${FLAVOR}_CMAKE_OFF}
+
+PLIST= ${.CURDIR}/pkg-plist.${FLAVOR}
+
+# Sync Qt5 flavor with Qt6
+KDE_PLASMA_VERSION= ${KDE_PLASMA6_VERSION}
+PKGNAMEPREFIX?= plasma6-
+DESCR= ${.CURDIR:H:H}/x11/plasma6-plasma/pkg-descr
+
+# Qt6 flavor
+qt6_USES= kde:6 qt:6
+qt6_USE_KDE= bookmarks breeze colorscheme completion config configwidgets \
coreaddons guiaddons i18n iconthemes itemviews jobwidgets kio \
notifications service solid statusnotifieritem widgetsaddons \
windowsystem xdg-desktop-portal-kde xmlgui \
ecm:build plasma-wayland-protocols:build
-USE_GL= gl opengl
-USE_XORG= x11 xcb xcursor
-USE_QT= base declarative wayland
+qt6_USE_QT= base declarative wayland
+qt6_CMAKE_ON= BUILD_QT6
+qt6_CMAKE_OFF= BUILD_QT5
-CMAKE_ON= BUILD_QT6
-CMAKE_OFF= BUILD_QT5
+# Qt5 flavor
+qt5_USES= kde:5 pkgconfig qt:5
+qt5_USE_KDE= config configwidgets guiaddons i18n iconthemes kio \
+ notifications wayland windowsystem xmlgui \
+ ecm:build plasma-wayland-protocols:build
+qt5_USE_QT= core gui quickcontrols2 wayland x11extras \
+ buildtools:build qmake:build
+qt5_CMAKE_ON= BUILD_QT5
+qt5_CMAKE_OFF= BUILD_QT6
.include <bsd.port.mk>
diff --git a/x11/plasma6-plasma-integration/pkg-plist.qt5 b/x11/plasma6-plasma-integration/pkg-plist.qt5
new file mode 100644
index 000000000000..79acad8c5e4c
--- /dev/null
+++ b/x11/plasma6-plasma-integration/pkg-plist.qt5
@@ -0,0 +1 @@
+%%QT_PLUGINDIR%%/platformthemes/KDEPlasmaPlatformTheme5.so
diff --git a/x11/plasma6-plasma-integration/pkg-plist b/x11/plasma6-plasma-integration/pkg-plist.qt6
similarity index 100%
rename from x11/plasma6-plasma-integration/pkg-plist
rename to x11/plasma6-plasma-integration/pkg-plist.qt6