git: 160188b23077 - main - audio/spotify-tui: Mark BROKEN_SSL for 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 08 Aug 2023 01:49:12 UTC
The branch main has been updated by bofh:

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

commit 160188b23077090892302669fc086345cbf400b5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 01:33:22 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 01:48:39 +0000

    audio/spotify-tui: Mark BROKEN_SSL for 14
    
    OpenSSL 3 has been merged into OSVERSION 1400092 so also mark BROKEN_SSL
    for 14 and OSVERSION 1400092 onwards.
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 audio/spotify-tui/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/audio/spotify-tui/Makefile b/audio/spotify-tui/Makefile
index 52e7eaff22c8..1ae099359b15 100644
--- a/audio/spotify-tui/Makefile
+++ b/audio/spotify-tui/Makefile
@@ -11,9 +11,6 @@ WWW=		https://github.com/Rigellute/spotify-tui
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Fails to detect OpenSSL 3.0.0 and later
-
 USES=		cargo localbase:ldflags python:build ssl xorg
 USE_GITHUB=	yes
 GH_ACCOUNT=	Rigellute
@@ -291,6 +288,13 @@ SPOTIFYD_DESC=	Lightweight Spotify client daemon
 
 SPOTIFYD_RUN_DEPENDS=	spotifyd:audio/spotifyd
 
+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+BROKEN_SSL=	base openssl30 openssl31
+BROKEN_SSL_REASON=	Fails to detect OpenSSL 3.0.0 and later
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spt