summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 22:21:11 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 22:45:28 +0200
commit91c0119a93278f0afddcc8031ce1289c560815f9 (patch)
treebb0f4400bce704f39d11c7904a8a59973068f2ee /dns
parentaudio/mpdcon: Fix build with llvm16 (diff)
dns/getdns: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'dns')
-rw-r--r--dns/getdns/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/dns/getdns/Makefile b/dns/getdns/Makefile
index cff48e0bdad3..85a00b3aae99 100644
--- a/dns/getdns/Makefile
+++ b/dns/getdns/Makefile
@@ -49,6 +49,12 @@ STUBBY_LIB_DEPENDS= libyaml.so:textproc/libyaml
STUBBY_CONFIGURE_WITH= stubby
STUBBY_VARS= USE_RC_SUBR="stubby"
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
-e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in
@@ -64,4 +70,4 @@ post-stage-STUBBY-on:
post-install-STUBBY-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/stubby
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>