Subject: Re: trouble compiling the kernel
To: Hubert Feyrer <hubert@feyrer.de>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-userlevel
Date: 01/20/2005 13:41:24
On Thu, Jan 20, 2005 at 11:59:51AM +0100, Hubert Feyrer wrote:
> You have stuff in /etc/mk.conf that assumes OPSYS is set, which is the 
> case for pkgsrc, but aparently not "mainland" NetBSD.
> I think there's some way to wrap the pkgsrc directives in /etc/mk.conf in 
> something like "#ifdef pkgsrc", but I don't know the exact symbol.
> Ask on tech-pkg@ for it.

The symbol is BSD_PKG_MK.
E.g.:
.ifdef BSD_PKG_MK
/* for pkgsrc only */
foo
.else
/* for base system only */
bar
.endif

 Thomas