git: d5d26803d6d3 - main - www/castor: Mark BROKEN_SSL for 14

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

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

commit d5d26803d6d3a7cc2380a7cd7167928aa7ee5954
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 08:02:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:13 +0000

    www/castor: 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
---
 www/castor/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/www/castor/Makefile b/www/castor/Makefile
index bcced2c1e0fe..c2ba9cdfd910 100644
--- a/www/castor/Makefile
+++ b/www/castor/Makefile
@@ -13,8 +13,6 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		cargo desktop-file-utils gnome ssl
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Fails to detect OpenSSL 3.0.0 library
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
 
 CARGO_CRATES=	aho-corasick-0.7.13 \
@@ -129,6 +127,13 @@ PLIST_FILES=	bin/castor \
 
 SUB_FILES=	pkg-message
 
+.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 library
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/castor
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/castor