From 71fa2b3caf41eceeb70d9a22e42587c1b3f7575b Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Mon, 7 Aug 2023 03:05:54 +0200 Subject: [PATCH] mail/archiveopteryx: Fix build with openssl3 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- mail/archiveopteryx/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail/archiveopteryx/Makefile b/mail/archiveopteryx/Makefile index 6a01a2cb721c..46d6a8f8dda4 100644 --- a/mail/archiveopteryx/Makefile +++ b/mail/archiveopteryx/Makefile @@ -43,10 +43,6 @@ 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' @@ -55,6 +51,10 @@ post-patch: ${WRKSRC}/Jamsettings ${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ ${WRKSRC}/server/Jamfile +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} + @${REINPLACE_CMD} -e 's|-Werror|-Werror -DOPENSSL_API_COMPAT=0x10100000L|g' \ + ${WRKSRC}/Jamsettings +.endif do-build: @cd ${WRKSRC} && ${JAM} ${JAMARG}