git: d5443d2a7120 - main - news/nzbget: Fix build with openssl3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jul 2023 14:46:17 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5443d2a7120c2a3dc227202081a8d9cfcf87cda commit d5443d2a7120c2a3dc227202081a8d9cfcf87cda Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-24 14:39:50 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-24 14:46:03 +0000 news/nzbget: Fix build with openssl3 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- news/nzbget/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/news/nzbget/Makefile b/news/nzbget/Makefile index 34ddedfa2b2c..feab3c06ad6a 100644 --- a/news/nzbget/Makefile +++ b/news/nzbget/Makefile @@ -14,8 +14,6 @@ LIB_DEPENDS= libxml2.so:textproc/libxml2 USES= autoreconf compiler:c++14-lang cpe gmake localbase ncurses \ pkgconfig python:build shebangfix ssl -BROKEN_SSL= openssl30 openssl31 -BROKEN_SSL_REASON= Requires FIPS_mode_set routine which has been removed from OpenSSL 3.0.0 and later USE_GITHUB= yes USE_RC_SUBR= nzbget @@ -42,6 +40,10 @@ OPTIMIZED_FLAGS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-disable-optimized-flags.pat CONFIGURE_ARGS+= --disable-sigchld-handler .endif +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" +.endif + post-install: ${INSTALL_DATA} ${WRKSRC}/nzbget.conf \ ${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample