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 <[EMAIL PROTECTED]> 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
pgpBOkG1WGV8B.pgp
Description: PGP signature