git: f84352ff1a8c - main - devel/gbump: Mark BROKEN with openssl3

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

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

commit f84352ff1a8c99010748da3e13ad5ff3bf216888
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 09:53:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:15 +0000

    devel/gbump: Mark BROKEN with openssl3
    
    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
---
 devel/gbump/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/devel/gbump/Makefile b/devel/gbump/Makefile
index af40eec592d8..eb5da0ca48e5 100644
--- a/devel/gbump/Makefile
+++ b/devel/gbump/Makefile
@@ -16,8 +16,6 @@ LIB_DEPENDS=	libgit2.so:devel/libgit2 \
 		libssh2.so:security/libssh2
 
 USES=		cargo ssl
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Fails to find OpenSSL development headers
 
 CARGO_CRATES=	aho-corasick-0.7.6 \
 		ansi_term-0.11.0 \
@@ -65,6 +63,13 @@ CARGO_CRATES=	aho-corasick-0.7.6 \
 
 PLIST_FILES=	bin/gbump
 
+.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 find OpenSSL 3 development headers
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gbump