git: c139dc332a11 - main - russian/xruskb: Fix build with llvm16

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

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

commit c139dc332a11ed6e89bfd4920c4158618745e8e5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 21:45:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 22:16:16 +0000

    russian/xruskb: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 russian/xruskb/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/russian/xruskb/Makefile b/russian/xruskb/Makefile
index 663b9a74aaff..cb8f1b4ac1c6 100644
--- a/russian/xruskb/Makefile
+++ b/russian/xruskb/Makefile
@@ -13,9 +13,10 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		tar:bzip2 xorg
+USE_XORG=	x11 ice xt xmu xext sm
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--datadir=${PREFIX}/share
-USE_XORG=	x11 ice xt xmu xext sm
 
 PORTDOCS=	*
 PORTDATA=	*
@@ -26,6 +27,12 @@ MOTIF_USES=	motif
 MOTIF_CONFIGURE_ON=	--with-toolkit=motif
 MOTIF_CONFIGURE_OFF=	--with-toolkit=none
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/Xrus.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/Xrus