git: 701838f0267d - main - www/lynx-current: Better SSL OPTIONS

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Thu, 10 Sep 2026 01:39:26 UTC
The branch main has been updated by adamw:

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

commit 701838f0267d817d3d4220e09008e8618799e45d
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2026-09-10 01:32:32 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2026-09-10 01:39:13 +0000

    www/lynx-current: Better SSL OPTIONS
    
    The GNUTLS OPTION was being sneaky--if you disabled it, it enabled
    OpenSSL support instead. That's probably what most people wanted it
    to do anyway, but that wasn't the best way to do it.
    
    Instead, add a new radio group with OPENSSL and GNUTLS options. It's
    also possible to disable both and build without TLS/https support now.
---
 www/lynx-current/Makefile | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/www/lynx-current/Makefile b/www/lynx-current/Makefile
index 18425868e159..f465a639268b 100644
--- a/www/lynx-current/Makefile
+++ b/www/lynx-current/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lynx
 PORTVERSION=	2.9.3
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	https://invisible-mirror.net/archives/lynx/tarballs/ \
 		https://invisible-island.net/archives/lynx/tarballs/
@@ -27,7 +28,7 @@ GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ARGS=	--libdir="${PREFIX}/etc" \
 		--with-bzlib --with-zlib \
-		--with-mime-libdir=${PREFIX}/etc \
+		--with-mime-libdir="${PREFIX}/etc" \
 		--with-screen=${NCURSES_IMPL} \
 		--enable-default-colors \
 		--enable-gzip-help \
@@ -42,18 +43,23 @@ INSTALL_TARGET=	install-full
 
 DOCSDIR=	${PREFIX}/share/doc/lynx
 
-OPTIONS_DEFINE=	DOCS GNUTLS IDN NLS
-OPTIONS_DEFAULT=IDN
+OPTIONS_DEFINE=	DOCS IDN NLS
+OPTIONS_DEFAULT=IDN OPENSSL
 OPTIONS_SUB=	yes
 
-GNUTLS_CONFIGURE_ON=	--with-gnutls --without-ssl
-GNUTLS_CONFIGURE_OFF=	--with-ssl=${OPENSSLBASE} --without-gnutls
+OPTIONS_RADIO=		HTTPS
+OPTIONS_RADIO_HTTPS=	GNUTLS OPENSSL
+HTTPS_DESC=		HTTPS support
+
+GNUTLS_CONFIGURE_WITH=	gnutls
 GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
-GNUTLS_USES_OFF=	ssl
 
 IDN_CONFIGURE_ENABLE=	idna
 IDN_LIB_DEPENDS=	libidn2.so:dns/libidn2
 
+OPENSSL_CONFIGURE_WITH=	ssl="${OPENSSLBASE}"
+OPENSSL_USES=		ssl
+
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext