Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 07:30:29 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        "Benjamin M. A'Lee" <bma+lists@subvert.org.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Per-port options in make.conf?
Message-ID:  <20071023053029.GA84940@slackbox.xs4all.nl>
In-Reply-To: <20071022223239.GA2229@gilmour.subvert.org.uk>
References:  <20071022223239.GA2229@gilmour.subvert.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
>=20
> For example, if I want Vim built without X11, I can specify the WITHOUT_X=
11
> flag, but putting that in make.conf will affect every port.

Use .if and .CURDIR;

=2Eif ${.CURDIR:M*/editors/vim}
WITHOUT_X11=3Dyes
=2Eendif

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:

=2Eif ${.CURDIR:M*/editors/vim*}
WITHOUT_X11=3Dyes
=2Eendif

Roland
--=20
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)

--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHHYb1EnfvsMMhpyURAvw8AJ93sASFliRc7xmFj4K6cKNEVcvyyQCgnrfF
xZYrqdFCN2XPR2fT9pA1bPI=
=mirJ
-----END PGP SIGNATURE-----

--d6Gm4EdcadzBjdND--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071023053029.GA84940>