Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 12:29:43 +0100
From:      "Benjamin M. A'Lee" <bma@gilmour.subvert.org.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Per-port options in make.conf?
Message-ID:  <20071023112942.GB3321@gilmour.subvert.org.uk>
In-Reply-To: <20071023053029.GA84940@slackbox.xs4all.nl> <8cb6106e0710222018u6315c129y502d377fa91c6cac@mail.gmail.com>
References:  <20071022223239.GA2229@gilmour.subvert.org.uk> <20071023053029.GA84940@slackbox.xs4all.nl> <20071022223239.GA2229@gilmour.subvert.org.uk> <8cb6106e0710222018u6315c129y502d377fa91c6cac@mail.gmail.com>

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

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

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?
>=20
> Yes, something like this should work:
>=20
> .if ${.CURDIR:M*/portnamehere*}
> WITHOUT_X11=3Dyes
> .endif
>=20

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?
> >=20
> > 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.
>=20
> Use .if and .CURDIR;
>=20
> .if ${.CURDIR:M*/editors/vim}
> WITHOUT_X11=3Dyes
> .endif
>=20
> 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:
>=20
> .if ${.CURDIR:M*/editors/vim*}
> WITHOUT_X11=3Dyes
> .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).

--=20
Benjamin A'Lee <bma@subvert.org.uk>
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

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

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

iD8DBQFHHdsmEUZDNrttL6ARAmXDAJ9D/R0ovXesN0BJpb+HwhC1pWI9WACgjRvq
6H1q26kNzlqEEueSN0NEA2Y=
=FHR6
-----END PGP SIGNATURE-----

--xgyAXRrhYN0wYx8y--



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