unit: add more logic for regular expressions support.
This commit is contained in:
parent
f365bbd000
commit
cb2749c395
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD$
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.unit
|
||||
PKG_SUPPORTED_OPTIONS= debug inet6 pcre2 ssl
|
||||
PKG_SUPPORTED_OPTIONS= debug inet6 pcre pcre2 ssl
|
||||
PKG_SUGGESTED_OPTIONS= inet6 pcre2 ssl
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
@ -14,10 +14,15 @@ CONFIGURE_ARGS+= --debug
|
|||
CONFIGURE_ARGS+= --no-ipv6
|
||||
.endif
|
||||
|
||||
.if empty(PKG_OPTIONS:Mpcre2)
|
||||
.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
|
||||
|
|
Loading…
Reference in New Issue