git: b07a26817293 - main - net/py-pyfixbuf: fix build with llvm 16

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 08:16:28 UTC
The branch main has been updated by antoine:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b07a268172931ffc436988a57e9aec2f22523f39

commit b07a268172931ffc436988a57e9aec2f22523f39
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2023-06-26 08:16:09 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2023-06-26 08:16:09 +0000

    net/py-pyfixbuf: fix build with llvm 16
---
 net/py-pyfixbuf/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/net/py-pyfixbuf/Makefile b/net/py-pyfixbuf/Makefile
index 50cd2ea98a22..605517425ac9 100644
--- a/net/py-pyfixbuf/Makefile
+++ b/net/py-pyfixbuf/Makefile
@@ -16,7 +16,13 @@ LICENSE_PERMS_GPLR=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 LIB_DEPENDS=	libfixbuf.so:net/libfixbuf
 
-USES=		pkgconfig python:3.6+
+USES=		compiler pkgconfig python
 USE_PYTHON=	distutils autoplist
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CPPFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
+.include <bsd.port.post.mk>