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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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?
>
> Yes, something like this should work:
>
> .if ${.CURDIR:M*/portnamehere*}
> WITHOUT_X11=yes
> .endif
>
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?
> >
> > 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
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).
--
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
iD8DBQFHHdsmEUZDNrttL6ARAmXDAJ9D/R0ovXesN0BJpb+HwhC1pWI9WACgjRvq
6H1q26kNzlqEEueSN0NEA2Y=
=FHR6
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071023112942.GB3321>
