Per-port options in make.conf?

Roland Smith rsmith at
Mon Oct 22 22:30:46 PDT 2007

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

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list