git: 8425d4bdce57 - main - x11-toolkits/rep-gtk2: Fix BUILD on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 24 Mar 2023 14:07:13 UTC
The branch main has been updated by bofh:

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

commit 8425d4bdce571c9cc2c2840b142549445a0e9448
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-03-24 14:05:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-03-24 14:07:03 +0000

    x11-toolkits/rep-gtk2: Fix BUILD on HEAD
---
 x11-toolkits/rep-gtk2/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/x11-toolkits/rep-gtk2/Makefile b/x11-toolkits/rep-gtk2/Makefile
index 5acb82050519..f4342027914a 100644
--- a/x11-toolkits/rep-gtk2/Makefile
+++ b/x11-toolkits/rep-gtk2/Makefile
@@ -24,6 +24,12 @@ USE_GNOME=	cairo gdkpixbuf2 gtk20
 PLIST_FILES=	include/rep-gtk/rep-gtk.h lib/rep/gui/gtk-2/gtk.a \
 		lib/rep/gui/gtk-2/gtk.so libdata/pkgconfig/rep-gtk.pc
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/rep/gui/gtk-2/gtk.so