summaryrefslogtreecommitdiff
path: root/misc/less/options.mk
blob: 7cda6fa66f7ebdbb746ec1ff65c62a0f759db097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $NetBSD: options.mk,v 1.3 2019/11/03 17:04:23 rillig Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.less
PKG_OPTIONS_REQUIRED_GROUPS=	regex
PKG_OPTIONS_GROUP.regex=	pcre regexp
PKG_SUGGESTED_OPTIONS=		regexp

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mpcre)
CONFIGURE_ARGS+= 	--with-regex=pcre
.  include "../../devel/pcre/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mregexp)
CONFIGURE_ARGS+= 	--with-regex=posix
.endif