git: be754589e80d - main - science/paje: Fix build with llvm16

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

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

commit be754589e80dba8662ea9b5b2eff49cd50ba4e6a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 19:41:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 20:02:30 +0000

    science/paje: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 science/paje/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/science/paje/Makefile b/science/paje/Makefile
index 12bf6bd6e9f0..5ebcc0992671 100644
--- a/science/paje/Makefile
+++ b/science/paje/Makefile
@@ -17,6 +17,12 @@ USE_GNUSTEP=	gui base back build
 
 WRKSRC=		${WRKDIR}/${DISTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's|^GNUSTEP_INSTALLATION_DOMAIN|#GNUSTEP_INSTALLATION_DOMAIN|' \
 		${WRKSRC}/GNUmakefile