news/nzbget: Fix build with openssl3
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5f400d3291
commit
d5443d2a71
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue