git: d040b1f838df - main - editors/calligra: move webkit behind default-off option

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Tue, 12 Sep 2023 15:18:48 UTC
The branch main has been updated by tcberner:

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

commit d040b1f838df86c5ae4125f667707e7c5d870fc4
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-09-12 06:13:58 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-09-12 15:14:58 +0000

    editors/calligra: move webkit behind default-off option
    
    qt5-webkit will be removed by the end of the year.
---
 editors/calligra/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/editors/calligra/Makefile b/editors/calligra/Makefile
index 7dfe2628db72..fe4d75a1d309 100644
--- a/editors/calligra/Makefile
+++ b/editors/calligra/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	calligra
 DISTVERSION=	3.2.1
-PORTREVISION=	57
+PORTREVISION=	58
 CATEGORIES=	editors kde
 MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTVERSION}
 DIST_SUBDIR=	KDE/${PORTNAME}
@@ -54,16 +54,19 @@ USE_KDE=	activities akonadicontacts archive auth bookmarks calendarcore \
 		xmlgui \
 		ecm:build
 USE_QT=		concurrent core dbus declarative gui network opengl phonon4 \
-		printsupport script sql svg testlib webkit widgets x11extras \
+		printsupport script sql svg testlib widgets x11extras \
 		xml \
 		buildtools:build qmake:build
 USE_XORG=	ice sm x11 xext
 
-OPTIONS_DEFINE=	OPENEXR
+OPTIONS_DEFINE=	OPENEXR WEBKIT
 OPTIONS_DEFAULT=	OPENEXR
 
 OPENEXR_LIB_DEPENDS=	libOpenEXR.so:graphics/openexr
 OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
+WEBKIT_DESC=		Use obsolete qt5-webkit to build Browser Plugin
+WEBKIT_USE=		QT5=webkit
+WEBKIT_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Qt5WebKit
 
 CMAKE_ARGS=	-DCMAKE_INCLUDE_PATH:STRING="${QT_INCDIR} ${LOCALBASE}/include" \
 		-DPRODUCTSET:STRING="DESKTOP"