From c139dc332a11ed6e89bfd4920c4158618745e8e5 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 23 Jul 2023 23:45:33 +0200 Subject: [PATCH] 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 + +.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