git: 6380a14f7b90 - main - net/asterisk18: Fix build with openssl3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 22:16:26 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6380a14f7b9099d7b93902bcd28a1a78b84d5bc8
commit 6380a14f7b9099d7b93902bcd28a1a78b84d5bc8
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 20:55:23 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 22:16:15 +0000
net/asterisk18: Fix build with openssl3
Sponsored by: The FreeBSD Foundation
---
net/asterisk18/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/asterisk18/Makefile b/net/asterisk18/Makefile
index b708994f1937..da1d0195e96e 100644
--- a/net/asterisk18/Makefile
+++ b/net/asterisk18/Makefile
@@ -227,6 +227,10 @@ CXX= clang++${LLVM_VERSION}
.include <bsd.port.pre.mk>
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L"
+.endif
+
.if empty(ICONV_LIB)
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=no \
ac_cv_lib_iconv_libiconv_open=no