git: b31426d1f77c - main - www/nginx: fix build with a third-party passenger module

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sun, 03 Dec 2023 07:52:52 UTC
The branch main has been updated by joneum:

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

commit b31426d1f77c12e47a60ff4b6b663826afd4702f
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2023-12-03 07:51:41 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2023-12-03 07:52:46 +0000

    www/nginx: fix build with a third-party passenger module
    
    PR:     275161
    Sponsored by:   Netzkommune GmbH
---
 www/nginx/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index be56e8b593c4..d037ba99710a 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	nginx
 PORTVERSION=	1.24.0
-PORTREVISION?=	12
+PORTREVISION?=	13
 PORTEPOCH=	3
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
@@ -240,6 +240,10 @@ CONFIGURE_ENV+=	OPTIMIZE="yes"
 CFLAGS+=	-DNDEBUG
 .endif
 
+.if ${PORT_OPTIONS:MPASSENGER}
+CONFIGURE_ENV+=	EXTRA_PRE_CXXFLAGS="-std=c++14"
+.endif
+
 # Fix build failure on clang >= 12
 .if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000
 CFLAGS+=	-Wno-compound-token-split-by-macro