aboutsummaryrefslogtreecommitdiff
path: root/mail/archiveopteryx
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-26 15:39:23 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-26 17:47:04 +0000
commita5981f5909443e3e33874ba707ea205f6b0b6f6d (patch)
tree6f1384d13bbcaf112108cf052eff1d9035395b5b /mail/archiveopteryx
parent5cc21bd92015875fda1905d0d186473e55d7c396 (diff)
downloadports-a5981f5909443e3e33874ba707ea205f6b0b6f6d.tar.gz
ports-a5981f5909443e3e33874ba707ea205f6b0b6f6d.zip
mail/archiveopteryx: Fix build with openssl3
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'mail/archiveopteryx')
-rw-r--r--mail/archiveopteryx/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/archiveopteryx/Makefile b/mail/archiveopteryx/Makefile
index b5f2435a0a92..7dc33db12ba4 100644
--- a/mail/archiveopteryx/Makefile
+++ b/mail/archiveopteryx/Makefile
@@ -10,9 +10,6 @@ WWW= https://www.archiveopteryx.org/
LICENSE= MIT
-BROKEN_SSL= openssl30 openssl31
-BROKEN_SSL_REASON= error: 'SSL_CTX_use_RSAPrivateKey_file' is deprecated
-
BUILD_DEPENDS= jam:devel/jam
USES= compiler perl5 ssl tar:bzip2
@@ -46,6 +43,10 @@ JAMARG+= "-sCLANG=1"
.endif
.endif
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L"
+.endif
+
post-patch:
@${EGREP} -Rl '%%[[:alpha:]]+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
-e 's,%%PREFIX%%,${PREFIX},g'