git: 14b48936ec14 - main - editors/gnome-latex: reinstate -Wno-error=incompatible-function-pointer-types

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Thu, 21 Mar 2024 06:56:01 UTC
The branch main has been updated by vishwin:

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

commit 14b48936ec147899c59064519ad8813831311961
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-03-21 06:55:03 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-03-21 06:55:03 +0000

    editors/gnome-latex: reinstate -Wno-error=incompatible-function-pointer-types
    
    These errors were not related to any Vala-generated code.
    
    https://gitlab.gnome.org/swilmet/gnome-latex/-/issues/7
    https://gitlab.gnome.org/swilmet/gnome-latex/-/issues/11
---
 editors/gnome-latex/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/editors/gnome-latex/Makefile b/editors/gnome-latex/Makefile
index f4c1f364e99b..539f22516811 100644
--- a/editors/gnome-latex/Makefile
+++ b/editors/gnome-latex/Makefile
@@ -34,4 +34,10 @@ OPTIONS_SUB=	yes
 
 GLIB_SCHEMAS=	org.gnome.gnome-latex.gschema.xml
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
+.include <bsd.port.post.mk>