git: 7eb0d303b0a0 - main - devel/libnjs: fix build with the modern version of clang

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Sun, 11 May 2025 09:31:17 UTC
The branch main has been updated by osa:

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

commit 7eb0d303b0a0aa91ab952aaca60c6304688874b1
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2025-05-11 09:27:31 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2025-05-11 09:27:31 +0000

    devel/libnjs: fix build with the modern version of clang
    
    Bump PORTREVISION.
    
    Reported by:    vanilla
---
 devel/libnjs/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/libnjs/Makefile b/devel/libnjs/Makefile
index 537185d9c1f6..00e3f9cd00ff 100644
--- a/devel/libnjs/Makefile
+++ b/devel/libnjs/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libnjs
 DISTVERSION=	0.9.0
+PORTREVISION=	1
 CATEGORIES=	devel www
 
 MAINTAINER=	osa@FreeBSD.org
@@ -26,7 +27,7 @@ CONFIGURE_ARGS=	--cc-opt="-I${LOCALBASE}/include/quickjs" \
 .include <bsd.port.pre.mk>
 
 # Fixes build failed for Clang 19.1.3+
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500026 && ${CHOSEN_COMPILER_TYPE} == clang
+.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 191
 CFLAGS+=	-Wno-error=cast-function-type-mismatch
 .endif