Subject: Re: modifying behaviour of make on package basis
To: Malcolm Herbert <>
From: grant beattie <>
List: regional-au
Date: 07/15/2003 15:03:12
On Thu, Jul 10, 2003 at 12:59:56PM +1000, Malcolm Herbert wrote:

> |I'm wanting to add some options to configure when compiling a particular
> |package (in this case, Net-SNMP) but I don't want to put them into the
> |package-level Makefile as this is part of the CVS tree ... so, thinking
> |that these should go into /etc/mk.conf, I added the following:
> |
> ||.if ${PKGNAME:Mnet-snmp} != ""
> ||CONFIGURE_ARGS+=        --with-mib-modules=host
> ||.endif

PKGNAME is undefined when mk.conf is read (note that you probably want
PKGBASE, actually)

I don't know what the best place to do this is - you're probably
better off posting this to