howto .CURDIR?

Joe Marcus Clarke marcus at marcuscom.com
Tue Nov 17 18:40:29 EST 2009


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.

Joe

> 
> Host and jail are 8.0-RC2, tinderbox is 3.2.
> 
> Thanks
> 
> Chris
> _______________________________________________
> tinderbox-list at marcuscom.com mailing list
> http://marcuscom.com/mailman/listinfo/tinderbox-list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at marcuscom.com"
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20091117/7b71ab74/attachment.bin>


More information about the tinderbox-list mailing list