www/unit: add NGINX JavaScript support

Bump PORTREVISION.
This commit is contained in:
Sergey A. Osokin 2022-12-15 22:31:56 -05:00
parent 51eb528970
commit 4e0dbdeac7
1 changed files with 10 additions and 0 deletions

View File

@ -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