From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 05:30:46 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 D27F816A474 for ; Tue, 23 Oct 2007 05:30:46 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4A09313C48D for ; Tue, 23 Oct 2007 05:30:46 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id l9N5UTSL053582; Tue, 23 Oct 2007 07:30:30 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 76E18B869; Tue, 23 Oct 2007 07:30:29 +0200 (CEST) Date: Tue, 23 Oct 2007 07:30:29 +0200 From: Roland Smith To: "Benjamin M. A'Lee" Message-ID: <20071023053029.GA84940@slackbox.xs4all.nl> Mail-Followup-To: "Benjamin M. A'Lee" , freebsd-questions@freebsd.org References: <20071022223239.GA2229@gilmour.subvert.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20071022223239.GA2229@gilmour.subvert.org.uk> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org 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 05:30:46 -0000 --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--