pkgsrc/www/unit/options.mk
otis 4bd6fd5a94 www/unit: import unit-1.22.0
NGINX Unit is a polyglot app server, a reverse proxy, and a static file server,
available for Unix-like systems. It was built by nginx team members from
scratch to be highly efficient and fully configurable at runtime.

Vast majority of work done by Sergey A. Osokin <osa@FreeBSD.org>

WWW: http://unit.nginx.org/
2021-02-14 11:56:57 +00:00

33 lines
744 B
Makefile

# $NetBSD: options.mk,v 1.1 2021/02/14 11:56:57 otis Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.unit
PKG_SUPPORTED_OPTIONS= debug inet6 pcre pcre2 ssl
PKG_SUGGESTED_OPTIONS= inet6 pcre2 ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --debug
.endif
.if empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --no-ipv6
.endif
.if empty(PKG_OPTIONS:Mpcre) && empty(PKG_OPTIONS:Mpcre2)
CONFIGURE_ARGS+= --no-regex
.endif
.if !empty(PKG_OPTIONS:Mpcre)
CONFIGURE_ARGS+= --no-pcre2
.include "../../devel/pcre/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpcre2)
.include "../../devel/pcre2/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --openssl
.endif