git: e9132f2a1f92 - main - x11/plasma5-plasma-desktop: add option PIPEWIRE to allow build without pipewire

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 18 Sep 2023 19:26:54 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e9132f2a1f923ed4aeb965bd1d805421723ab8d5

commit e9132f2a1f923ed4aeb965bd1d805421723ab8d5
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-09-18 19:25:12 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2023-09-18 19:25:12 +0000

    x11/plasma5-plasma-desktop: add option PIPEWIRE to allow build without pipewire
    
    Add option PIPEWIRE to allow build without pipewire.
    Default ON - same as was before.
    
    Approved by:            arrowd (mentor, kde)
    Differential Revision:  https://reviews.freebsd.org/D41864
---
 x11/plasma5-plasma-desktop/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/x11/plasma5-plasma-desktop/Makefile b/x11/plasma5-plasma-desktop/Makefile
index 5bd2fa6bd2a6..e606ea9f5e89 100644
--- a/x11/plasma5-plasma-desktop/Makefile
+++ b/x11/plasma5-plasma-desktop/Makefile
@@ -37,7 +37,7 @@ USE_KDE=	activities activities-stats attica auth baloo bookmarks codecs \
 		completion config configwidgets coreaddons crash dbusaddons \
 		filemetadata globalaccel guiaddons i18n iconthemes init \
 		itemmodels itemviews jobwidgets kcmutils kdeclarative \
-		kdelibs4support kio kpipewire libksysguard newstuff \
+		kdelibs4support kio libksysguard newstuff \
 		notifications notifyconfig package parts plasma-framework \
 		plasma-workspace runner service solid sonnet textwidgets \
 		unitconversion widgetsaddons windowsystem xmlgui \
@@ -58,8 +58,8 @@ SHEBANG_FILES=	kcms/ksmserver/kconf_update/*.py \
 
 OPTIONS_SUB=	yes
 
-OPTIONS_DEFINE=		ACCOUNTS
-OPTIONS_DEFAULT=	ACCOUNTS
+OPTIONS_DEFINE=		ACCOUNTS PIPEWIRE
+OPTIONS_DEFAULT=	ACCOUNTS PIPEWIRE
 OPTIONS_GROUP=		IM
 OPTIONS_GROUP_IM=	IBUS SCIM
 IM_DESC=		Input Method Support
@@ -74,6 +74,9 @@ ACCOUNTS_LIB_DEPENDS=	libkaccounts.so:net-im/kaccounts-integration \
 			libaccounts-qt5.so:net-im/libaccounts-qt5
 ACCOUNTS_USE=		gnome=intltool
 ACCOUNTS_DESC=		Accounts management library support
+PIPEWIRE_DESC=		Use runtime dependency QML module 'org.kde.pipewire'
+PIPEWIRE_USE=		KDE=kpipewire
+PIPEWIRE_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_org.kde.pipewire-QMLModule
 
 post-patch:
 # Set the correct iso-codes directory