Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Apr 2010 18:38:01 +0000
From:      Pegasus Mc Cleaft <ken@mthelicon.com>
To:        freebsd-current@freebsd.org
Cc:        freebsd-hackers@freebsd.org, Ulrich =?utf-8?q?Sp=C3=B6rlein?= <uqs@spoerlein.net>
Subject:   Re: kern+world / ports make options
Message-ID:  <201004251838.01073.ken@mthelicon.com>
In-Reply-To: <20100425111740.GI92627@acme.spoerlein.net>
References:  <201004241642.38017.ken@mthelicon.com> <20100425111740.GI92627@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 25 April 2010 11:17:40 Ulrich Sp=C3=B6rlein wrote:
> On Sat, 24.04.2010 at 16:42:37 +0000, Pegasus Mc Cleaft wrote:
> > 	It may already be implemented, but it would be nice if there was
> > something defined while the kernel and/or world is being built to that a
> > nested block of ifdefs can select which env variables to be set.
>=20
> src.conf has already been mentioned, I don't use it myself but have the
> following set in make.conf
>=20
> .if ${.CURDIR:M*/usr/ports/*}
> NOCLEANDEPENDS=3D	true
> WRKDIRPREFIX=3D	/usr/obj
> .include "/etc/ports.conf"
> .endif

Hi Ulrich,=20

	Thank you for that. This is pretty much what I was looking for as I can=20
use the .if block to add in only the pieces I want. The src.conf solution w=
as=20
an option, but since both make.conf and src.conf are called, I ended up=20
basically undoing everything in src.conf that I did in make.conf; and that=
=20
didn't work so well as I kept breaking the build (couldn't find headers and=
=20
all sorts of thing). No doubt, it was the way that I did it.. Your solution=
 is=20
cleaner and makes sense to me.=20

Thanks again,=20
Peg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004251838.01073.ken>