summaryrefslogtreecommitdiff
path: root/regress/pkg-options/files/groups.mk
blob: 16b2a65c14dc2e736eb65057ea687402e42df181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $NetBSD: groups.mk,v 1.1 2005/06/02 20:38:51 dillo Exp $
#
# This file tests option groups (PKG_OPTIONS_REQUIRED_GROUPS and
# PKG_OPTIONS_OPTIONAL_GROUPS).
#

MAKECONF=			/dev/null

PKG_OPTIONS_VAR=		PKG_OPTIONS.foo
PKG_SUPPORTED_OPTIONS=		single
PKG_OPTIONS_REQUIRED_GROUPS=	abc def
PKG_OPTIONS_OPTIONAL_GROUPS=	ghi
PKG_OPTIONS_GROUP.abc=		a b c
PKG_OPTIONS_GROUP.def=		d e f
PKG_OPTIONS_GROUP.ghi=		g h i

PKG_OPTIONS.foo=	a b -a
PKG_OPTIONS.foo+=	d e f
PKG_OPTIONS.foo+=	g h i -i -h

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

.PHONY: test
test:
	echo ${PKG_OPTIONS:M*:Q}