Per-port options in make.conf?

Benjamin M. A'Lee bma at gilmour.subvert.org.uk
Tue Oct 23 04:31:00 PDT 2007


On Mon, Oct 22, 2007 at 11:18:59PM -0400, Josh Carroll wrote:
> > Is there any way to specify options in make.conf on a per-port basis?
> 
> Yes, something like this should work:
> 
> .if ${.CURDIR:M*/portnamehere*}
> WITHOUT_X11=yes
> .endif
> 

On Tue, Oct 23, 2007 at 07:30:29AM +0200, Roland Smith wrote:
> On Mon, Oct 22, 2007 at 11:32:39PM +0100, Benjamin M. A'Lee wrote:
> > Is there any way to specify options in make.conf on a per-port basis?
> > 
> > For example, if I want Vim built without X11, I can specify the WITHOUT_X11
> > flag, but putting that in make.conf will affect every port.
> 
> Use .if and .CURDIR;
> 
> .if ${.CURDIR:M*/editors/vim}
> WITHOUT_X11=yes
> .endif
> 
> Note that this only works for the vim port. If you want to use it for
> say vim5 and vim6, you have to add an extra star at the end:
> 
> .if ${.CURDIR:M*/editors/vim*}
> WITHOUT_X11=yes
> .endif

Thanks, I thought I'd seen something along these lines but I couldn't
work out what exactly it was (or if there was a better way).

-- 
Benjamin A'Lee <bma at subvert.org.uk>
http://subvert.org.uk/~bma/
"It is forbidden to kill; therefore all murderers are punished unless
they kill in large numbers and to the sound of trumpets." - Voltaire
-------------- 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/20071023/9f196fc8/attachment.pgp


More information about the freebsd-questions mailing list