From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 11:31:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8179216A417 for ; Tue, 23 Oct 2007 11:31:00 +0000 (UTC) (envelope-from bma@gilmour.subvert.org.uk) Received: from jagger.subvert.org.uk (jagger.subvert.org.uk [80.68.88.238]) by mx1.freebsd.org (Postfix) with ESMTP id 13E2213C4A6 for ; Tue, 23 Oct 2007 11:30:59 +0000 (UTC) (envelope-from bma@gilmour.subvert.org.uk) Received: from localhost (jagger.subvert.org.uk [127.0.0.1]) by jagger.subvert.org.uk (Postfix) with ESMTP id D7FF638332 for ; Tue, 23 Oct 2007 12:30:44 +0100 (BST) Received: from jagger.subvert.org.uk ([127.0.0.1]) by localhost (jagger.subvert.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id woArdI-4CnfQ for ; Tue, 23 Oct 2007 12:30:18 +0100 (BST) Received: from gilmour.subvert.org.uk (user-514d9173.l3.c2.dsl.pol.co.uk [81.77.145.115]) (Authenticated sender: bma) by jagger.subvert.org.uk (Postfix) with ESMTP id 61ABC382DC for ; Tue, 23 Oct 2007 12:30:18 +0100 (BST) Received: by gilmour.subvert.org.uk (Postfix, from userid 1000) id F2735B8D4; Tue, 23 Oct 2007 12:29:44 +0100 (BST) Date: Tue, 23 Oct 2007 12:29:43 +0100 From: "Benjamin M. A'Lee" To: freebsd-questions@freebsd.org Message-ID: <20071023112942.GB3321@gilmour.subvert.org.uk> References: <20071022223239.GA2229@gilmour.subvert.org.uk> <20071023053029.GA84940@slackbox.xs4all.nl> <20071022223239.GA2229@gilmour.subvert.org.uk> <8cb6106e0710222018u6315c129y502d377fa91c6cac@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <20071023053029.GA84940@slackbox.xs4all.nl> <8cb6106e0710222018u6315c129y502d377fa91c6cac@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: Per-port options in make.conf? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 11:31:00 -0000 --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 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--