Remembering defines for port upgrades.

Ian Moore imoore at picknowl.com.au
Sat Nov 27 15:12:44 PST 2004


On Sun, 28 Nov 2004 09:25, Adam Fabian wrote:
> I've been sticking options like WITHOUT_TTF_BYTECODE_ENABLED=yes (for
> freetype2) in /etc/make.conf.  It's been working, for the actual
> building of the port.  The downshot is that it seems to drive the
> package tools nuts. (portupgrade makes strange errors, make index
> fails).  Is there any other/better way to remember build options so
> that I don't have to remember them every time I build a port?
>

I belive /usr/local/etc/pkgtools.conf is the correct place to put port 
specific switches. Take a look at Dr. Dru's article on ports at 
http://www.onlamp.com/lpt/a/4165

In particular:
> If you ever plan on using portupgrade to upgrade mplayer and wish to use the 
same arguments, you have a choice. Either count on your ability to remember 
to use the m switch to specify your make arguments with portupgrade:
> 
>  
> % portupgrade -rRm '-DWITH_GUI' '-DWITH_FREETYPE' mplayer
>  
> 
> or spend a moment and add those switches to /usr/local/etc/pkgtools.conf:
> 
>  
> MAKE_ARGS = {
>     'multimedia/mplayer-*' => 'WITH_GUI=1 WITH_FREETYPE=1',
> }

Cheers,
-- 
Ian Moore

GPG Key: http://homepages.picknowl.com.au/imoore/imoore.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041128/046dc417/attachment.bin


More information about the freebsd-questions mailing list