Per-port options in make.conf?
Roland Smith
rsmith at xs4all.nl
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}
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
Roland
--
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)
-------------- 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/fff2ace6/attachment.pgp
More information about the freebsd-questions
mailing list