git: 1f947192e8b6 - main - devel/rubygem-curses: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 19 Jul 2023 17:30:44 UTC
The branch main has been updated by bofh:

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

commit 1f947192e8b64f1eb3ca89de202cbbd0c0e25c65
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 15:52:15 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 17:30:37 +0000

    devel/rubygem-curses: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/rubygem-curses/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/rubygem-curses/Makefile b/devel/rubygem-curses/Makefile
index d07e067d3075..c8e8a1fb2716 100644
--- a/devel/rubygem-curses/Makefile
+++ b/devel/rubygem-curses/Makefile
@@ -12,4 +12,10 @@ LICENSE_COMB=	dual
 
 USES=		gem ncurses
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
+
 .include <bsd.port.mk>