summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-25 10:06:49 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-25 10:36:27 +0200
commit46a095804bcec69a735b24284e6894277c0d2891 (patch)
treec9b888a070e6ebe90b928257d79306e7312d9d96
parent2cf06891a152890c803ff67bf31132db6de49414 (diff)
downloadfreebsd-ports-46a095804bcec69a735b24284e6894277c0d2891.zip
textproc/mgdiff: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--textproc/mgdiff/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/textproc/mgdiff/Makefile b/textproc/mgdiff/Makefile
index 82fabb58ed79..062925748c92 100644
--- a/textproc/mgdiff/Makefile
+++ b/textproc/mgdiff/Makefile
@@ -21,6 +21,12 @@ DESKTOP_ENTRIES= "mgdiff" "GUI front end to the UNIX diff command" \
"mgdiff" "GNOME;GTK;Motif;Development;System;" \
false
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${FILESDIR}/mgdiff-48x48.xpm ${STAGEDIR}${PREFIX}/share/pixmaps