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
This commit is contained in:
Muhammad Moinur Rahman 2023-08-15 08:14:18 +02:00
parent 8b7faa2b66
commit c65b98e8b1

View file

@ -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)