git: 8b7faa2b662f - main - net/asterisk16: Fix build with OpenSSL 3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 02:31:13 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b7faa2b662f9eeb85d8c26cf5b3f4161320ff91 commit 8b7faa2b662f9eeb85d8c26cf5b3f4161320ff91 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-15 05:53:20 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-16 02:30:59 +0000 net/asterisk16: Fix build with OpenSSL 3 Although astersisk itself builds fine with OpenSSL 3 however one of it's internal project pjproject fails to detect OpenSSL 3 and picks up gnutls as a dependency but fails to detect the library. Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net/asterisk16/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/asterisk16/Makefile b/net/asterisk16/Makefile index 69584ffe0bbb..89dadfb692db 100644 --- a/net/asterisk16/Makefile +++ b/net/asterisk16/Makefile @@ -195,7 +195,9 @@ CXX= clang++${LLVM_VERSION} .endif .if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} -CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L +LIB_DEPENDS+= libgnutls.so:security/gnutls +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L +LDFLAGS+= -lgnutls .endif .include <bsd.port.pre.mk>