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}

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*}

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Attachment: pgpmxiBzao2dp.pgp
Description: PGP signature

Reply via email to