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
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örlein 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.
> 
> src.conf has already been mentioned, I don't use it myself but have the
> following set in make.conf
> 
> .if ${.CURDIR:M*/usr/ports/*}
> NOCLEANDEPENDS=	true
> WRKDIRPREFIX=	/usr/obj
> .include "/etc/ports.conf"
> .endif

Hi Ulrich, 

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

Thanks again, 
Peg



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