git: 9edb5a5cb595 - main - graphics/py-pyvips: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 20 Jul 2023 17:43:27 UTC
The branch main has been updated by bofh:

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

commit 9edb5a5cb595d3e5ec3c1f9ec3fa40210b404e0b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 15:24:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:37 +0000

    graphics/py-pyvips: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 graphics/py-pyvips/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/graphics/py-pyvips/Makefile b/graphics/py-pyvips/Makefile
index ffba6186f060..c8567d469065 100644
--- a/graphics/py-pyvips/Makefile
+++ b/graphics/py-pyvips/Makefile
@@ -22,6 +22,12 @@ USES=		gnome python
 USE_GNOME=	glib20
 USE_PYTHON=	autoplist concurrent distutils
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +