howto .CURDIR?

Chris Whitehouse cwhiteh at onetel.com
Wed Nov 18 16:46:50 EST 2009


Joe Marcus Clarke wrote:
> On Tue, 2009-11-17 at 23:16 +0000, Chris Whitehouse wrote:
>> Hi
>>
>> I am building openoffice.org-3 and want to give it a few configuration 
>> options. I created a portstree.{PORTSTREE} file containing these lines:
>>
>> .if ${.CURDIR:M*/editors/openoffice.org-3}
>> WITHOUT_MOZILLA=yes
>> WITHOUT_CUPS=yes
>> LOCALIZED_LANG=en-GB
>> .endif
> 
> The .env files are treated as shell files, not make files.  Therefore,
> this syntax is invalid.
> 
>> With the above ./tc addPort -b {BUILD} -d editors/openoffice.org-3 -O 
>> silently fails after a short delay.
>>
>> If I remove the .if and .endif lines I get
>>
>> ===> Setting user-specified options for en-openoffice.org-GB-3.1.1 and 
>> dependencies.
>>
>> and the port is added to the list. I haven't gone ahead with the build 
>> yet but the language specific message and the fact that print/cups is 
>> not added to the ports list suggests the options are being read.
>>
>> Can I set a config for just one port?
> 
> You can create a postBuildExtract Hook which copies a make.conf file to
> the /etc subdirectory within your Build.  That make.conf can actually
> contain the code above.

I'll do that thank you


Chris


More information about the tinderbox-list mailing list