git: c65b98e8b1b0 - 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:14 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=c65b98e8b1b075de83b415eb91c657eb4b092333 commit c65b98e8b1b075de83b415eb91c657eb4b092333 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-15 06:14:18 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-16 02:31:00 +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/asterisk18/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/asterisk18/Makefile b/net/asterisk18/Makefile index db7c8cc7c1e4..c8d81232fe0f 100644 --- a/net/asterisk18/Makefile +++ b/net/asterisk18/Makefile @@ -228,7 +228,9 @@ 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 +LIB_DEPENDS+= libgnutls.so:security/gnutls +CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L +LDFLAGS+= -lgnutls .endif .if empty(ICONV_LIB)