Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 18:34:00 -0500
From:      Alan Eldridge <alane@geeksrus.net>
To:        Ernst de Haan <znerd@FreeBSD.ORG>
Cc:        ports@FreeBSD.ORG
Subject:   Re: .for woes
Message-ID:  <20020311233400.GB70667@wwweasel.geeksrus.net>
In-Reply-To: <20020311232536.GA70667@wwweasel.geeksrus.net>
References:  <02031123024601.00964@heinz> <20020311232536.GA70667@wwweasel.geeksrus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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