summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2025-05-11 05:29:42 -0400
committerSergey A. Osokin <osa@FreeBSD.org>2025-05-11 05:29:42 -0400
commitcd6fe8110ae852a8b9f961772d1684530c624551 (patch)
tree1b513d14011c92f758621a08731e0af73e6bbfc8
parentlang/njs: fix build with the modern version of clang (diff)
www/nginx-devel: fix NJS module build with modern version of clang
Bump PORTREVISION. Thanks to: fluffy Reported by: vanilla
-rw-r--r--www/nginx-devel/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 4a156c87a74b..017ebe1251e6 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
@@ -18,7 +18,7 @@ CONFLICTS_INSTALL= nginx
PORTSCOUT= limit:^1\.2[8-9]\.[0-9]*
-USES= cpe
+USES= cpe compiler:env
CPE_VENDOR= f5
CPE_PRODUCT= nginx
@@ -236,8 +236,8 @@ IGNORE= required at least GSSAPI_HEIMDAL or \
'make config' again
.endif
-.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1305000 && ${OSVERSION} < 1400000)
-CFLAGS+= -Wno-cast-function-type-mismatch
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 191
+CFLAGS+= -Wno-error=cast-function-type-mismatch
.endif
.if ${PORT_OPTIONS:MPASSENGER} && empty(PORT_OPTIONS:MDEBUG)