git: 859eb5a605ed - main - science/gtamsanalyzer: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 12:04:01 UTC
The branch main has been updated by bofh:

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

commit 859eb5a605ed824f19a804324a8300e0f73608e3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 11:18:35 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 12:03:42 +0000

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

diff --git a/science/gtamsanalyzer/Makefile b/science/gtamsanalyzer/Makefile
index 367cc66790a3..113be78aa9a3 100644
--- a/science/gtamsanalyzer/Makefile
+++ b/science/gtamsanalyzer/Makefile
@@ -16,12 +16,16 @@ USE_GNUSTEP=	back build
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/Source
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	${RM} "${WRKSRC}/obj"
 	@${REINPLACE_CMD} '/^GNUSTEP_INSTALLATION_DIR/ s|=|=$$(DESTDIR)|' \
@@ -30,4 +34,4 @@ post-patch:
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/GTAMSAnalyzer.app/GTAMSAnalyzer
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>