From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 25 18:38:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28A451065670; Sun, 25 Apr 2010 18:38:03 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id EECC78FC1F; Sun, 25 Apr 2010 18:38:02 +0000 (UTC) Received: from feathers.peganest.com (feathers.peganest.com [78.33.110.3]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.3) with ESMTP id o3PIc1b9044744; Sun, 25 Apr 2010 18:38:01 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-current@freebsd.org Date: Sun, 25 Apr 2010 18:38:01 +0000 User-Agent: KMail/1.12.4 (FreeBSD/9.0-CURRENT; KDE/4.3.5; amd64; ; ) References: <201004241642.38017.ken@mthelicon.com> <20100425111740.GI92627@acme.spoerlein.net> In-Reply-To: <20100425111740.GI92627@acme.spoerlein.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201004251838.01073.ken@mthelicon.com> Cc: freebsd-hackers@freebsd.org, Ulrich =?utf-8?q?Sp=C3=B6rlein?= Subject: Re: kern+world / ports make options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 18:38:03 -0000 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