git: 397e97bec614 - main - www/nginx-devel: fix build with a third-party passenger module

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Fri, 01 Dec 2023 21:19:35 UTC
The branch main has been updated by osa:

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

commit 397e97bec614388c452a1db5c69138d54655911c
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-12-01 21:18:17 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2023-12-01 21:19:30 +0000

    www/nginx-devel: fix build with a third-party passenger module
    
    Bump PORTREVISION.
    
    PR:     275161
---
 www/nginx-devel/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 734942c2538f..3e06d6ce4b72 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=	nginx
 PORTVERSION=	1.25.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
 		LOCAL/osa
@@ -237,6 +237,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