git: 0087760a8923 - main - net-mgmt/seafile-gui: make qt6-webengine optional, add gl to USES

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 31 Oct 2026 15:14:23 UTC
The branch main has been updated by pkubaj:

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

commit 0087760a89234fc18668bbaf8effebeac77439f7
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-27 05:14:57 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-31 15:13:17 +0000

    net-mgmt/seafile-gui: make qt6-webengine optional, add gl to USES
    
    Only the Shibboleth single sign-on login needs QtWebEngine. Keep it on
    where www/qt6-webengine exists and off elsewhere, so the port builds on
    powerpc64. Add the qt6-tools build dependency, CMake always wants
    LinguistTools and it only came in through qt6-webengine before.
    
    USE_GL was set without USES=gl, so it did nothing and the libglvnd
    dependency was never declared.
---
 net-mgmt/seafile-gui/Makefile | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/seafile-gui/Makefile b/net-mgmt/seafile-gui/Makefile
index bf6ba53346bd..cabad8f6ddc6 100644
--- a/net-mgmt/seafile-gui/Makefile
+++ b/net-mgmt/seafile-gui/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	seafile-gui
 DISTVERSIONPREFIX=	v
 DISTVERSION=	9.0.19
+PORTREVISION=	1
 CATEGORIES=	net-mgmt devel
 
 MAINTAINER=	d.stoye@cms.hu-berlin.de
@@ -17,7 +18,7 @@ LIB_DEPENDS=	libsearpc.so:devel/libsearpc \
 		libevent.so:devel/libevent \
 		libuuid.so:misc/libuuid
 
-USES=		compiler:c++11-lang cmake gnome pkgconfig qt:6 shebangfix ssl
+USES=		compiler:c++11-lang cmake gl gnome pkgconfig qt:6 shebangfix ssl
 SHEBANG_FILES=	extensions/*.sh scripts/*.sh fsplugin/*.sh \
 		scripts/*.py
 
@@ -28,13 +29,23 @@ GH_PROJECT=	seafile-client
 USE_GNOME=	glib20
 USE_GL= 	gl opengl
 USE_QT= 	5compat base declarative positioning \
-		webengine webchannel
+		webchannel tools:build
 CMAKE_ARGS=	-DCMAKE_INCLUDE_PATH:PATH=include/glib-2.0 \
 		-DOPENSSL_INCLUDE_DIRS=${OPENSSLINC} \
 		-DOPENSSL_LIBRARIES="-L${OPENSSLLIB} -lcrypto" \
-		-DBUILD_SHIBBOLETH_SUPPORT=ON \
 		-DQT_VERSION_MAJOR=6
 
+OPTIONS_DEFINE=		WEBENGINE
+OPTIONS_DEFAULT_aarch64=	WEBENGINE
+OPTIONS_DEFAULT_amd64=		WEBENGINE
+OPTIONS_DEFAULT_armv7=		WEBENGINE
+OPTIONS_DEFAULT_i386=		WEBENGINE
+OPTIONS_DEFAULT_powerpc64le=	WEBENGINE
+
+WEBENGINE_DESC=		Shibboleth single sign-on login (requires QtWebEngine)
+WEBENGINE_USE=		QT=webengine
+WEBENGINE_CMAKE_BOOL=	BUILD_SHIBBOLETH_SUPPORT
+
 # Note that per PR 197984, cairo must be built with X11 and XCB options
 # otherwise configure fails with "cairo needs x11 enabled" message