git: 75f40383112d - main - www/nginx-devel: fix NJS configure on FreeBSD 13.5

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Wed, 07 May 2025 12:39:21 UTC
The branch main has been updated by osa:

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

commit 75f40383112dc4902e8407f287cd60c8e87cad57
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2025-05-07 12:38:08 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2025-05-07 12:38:08 +0000

    www/nginx-devel: fix NJS configure on FreeBSD 13.5
    
    PR:     286637
---
 www/nginx-devel/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 48be6ed2ab12..6227bc7cc9a7 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=	nginx
 PORTVERSION=	1.28.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
 		LOCAL/osa
@@ -236,6 +236,10 @@ IGNORE=		required at least GSSAPI_HEIMDAL or \
 		'make config' again
 .endif
 
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1305000 && ${OSVERSION} < 1400000)
+CFLAGS+=	-Wno-cast-function-type-mismatch
+.endif
+
 .if ${PORT_OPTIONS:MPASSENGER} && empty(PORT_OPTIONS:MDEBUG)
 CONFIGURE_ENV+=	OPTIMIZE="yes"
 CFLAGS+=	-DNDEBUG
@@ -251,7 +255,7 @@ LIB_DEPENDS+=		libpcre.so:devel/pcre
 .endif
 
 .if ${PORT_OPTIONS:MNJS}
-NJS_CONFIGURE_ARGS=	--cc-opt="-I${LOCALBASE}/include/quickjs" \
+NJS_CONFIGURE_ARGS=	--cc-opt="${CFLAGS} -I${LOCALBASE}/include/quickjs" \
 			--ld-opt="-L${LOCALBASE}/lib" \
 			--with-quickjs
 .endif