Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2022 03:32:32 GMT
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4e0dbdeac729 - main - www/unit: add NGINX JavaScript support
Message-ID:  <202212160332.2BG3WW1D070507@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by osa:

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

commit 4e0dbdeac7299f9b293e19189d188cf15115689c
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2022-12-16 03:31:56 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2022-12-16 03:32:21 +0000

    www/unit: add NGINX JavaScript support
    
    Bump PORTREVISION.
---
 www/unit/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/www/unit/Makefile b/www/unit/Makefile
index a2af0f9d9450..20a5e2d927ba 100644
--- a/www/unit/Makefile
+++ b/www/unit/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	unit
 PORTVERSION=	${UNIT_VERSION}
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES?=	https://unit.nginx.org/download/
 
@@ -18,6 +19,7 @@ CPE_PRODUCT=	unit
 OPTIONS_DEFINE?=	\
 	DEBUG \
 	IPV6 \
+	NJS \
 	SSL \
 	UNIXSOCK
 OPTIONS_DEFAULT?=	IPV6 PCRE2 SSL UNIXSOCK
@@ -27,6 +29,7 @@ OPTIONS_RADIO_REGEX=	NOPCRE PCRE PCRE2
 
 DEBUG_DESC=	Enable debug logging
 REGEX_DESC=	Support regular expressions
+NJS_DESC=	Enable NGINX JavaScript
 NOPCRE_DESC=	No support for Regular Expressions
 PCRE_DESC=	Regular Expressions via devel/pcre
 PCRE2_DESC=	Regular Expressions via devel/pcre2
@@ -81,6 +84,13 @@ CONFIGURE_ARGS+=--debug
 CONFIGURE_ARGS+=--no-ipv6
 .endif
 
+.if ${PORT_OPTIONS:MNJS}
+BUILD_DEPENDS+=	${LOCALBASE}/lib/libnjs.a:devel/libnjs
+CONFIGURE_ARGS+=--njs \
+	--cc-opt="-I${LOCALBASE}/include" \
+	--ld-opt="-L${LOCALBASE}/lib"
+.endif
+
 .if ${PORT_OPTIONS:MNOPCRE}
 CONFIGURE_ARGS+=--no-regex
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212160332.2BG3WW1D070507>