From owner-freebsd-ports Mon Mar 11 15:34:38 2002 Delivered-To: freebsd-ports@freebsd.org Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by hub.freebsd.org (Postfix) with ESMTP id 585C437B404; Mon, 11 Mar 2002 15:34:36 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g2BNY0P70741; Mon, 11 Mar 2002 18:34:00 -0500 (EST) (envelope-from alane) Date: Mon, 11 Mar 2002 18:34:00 -0500 From: Alan Eldridge To: Ernst de Haan Cc: ports@FreeBSD.ORG Subject: Re: .for woes Message-ID: <20020311233400.GB70667@wwweasel.geeksrus.net> References: <02031123024601.00964@heinz> <20020311232536.GA70667@wwweasel.geeksrus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020311232536.GA70667@wwweasel.geeksrus.net> User-Agent: Mutt/1.3.27i X-message-flag: Magic 8-Ball says "Outlook not so good." I'll ask it about Exchange next. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Mar 11, 2002 at 06:25:36PM -0500, Alan Eldridge wrote: >> PORTNAME= testport >> PORTVERSION= 1 >> FILES:= ${FILESDIR}/a \ >> ${FILESDIR}/b > >The := assigns *now*, and FILESDIR doesn't a value. Everything is working >correctly. You want plain '='. > >> File /a... >> File /b... See Maxim's post, as well. You need the '=' to delay the evaluation of the FILES definition until the .for is parsed, and you need the bsd.port.pre.mk included so that FILESDIR is defined by the time the .for is parsed. Hmm, that evaluation at the time of the .for is counter-intuitive but a test case proves it to be how it works. -- Alan Eldridge "Dave's not here, man." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message