Subject: suggestion: PKGSRC_OPTIONS
To: None <tech-pkg@netbsd.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 08/19/2004 12:13:29
Hi,
I just edited my mk.conf and added a new variable PKGSRC_OPTIONS.
PKGSRC_OPTIONS+= developer
PKGSRC_OPTIONS+= quiet
PKGSRC_OPTIONS+= batch
PKGSRC_OPTIONS+= unprivileged
I then iterated through mk.conf and set my other variables dependent on
these global options. And it felt good. For example, because I'm doing
an unprivileged build, I had this:
.if !empty(PKGSRC_OPTIONS:Munprivileged)
BINOWN= roland
BINGRP= users
MANOWN= ${BINOWN}
MANGRP= ${BINGRP}
DOCOWN= ...
...
.endif
Some days ago I complained that there are so many different variables
(at least 819) that the build process depends on. Therefore I made some
of these superfluous:
.if !empty(PKGSRC_OPTIONS:Mdeveloper)
PKG_DEVELOPER= yes
.endif
.if !empty(PKGSRC_OPTIONS:Mbatch)
BATCH= yes
.endif
An interesting question is whether a particular option would belong to
PKGSRC_OPTIONS or PKG_OPTIONS.
Any comments?
Roland