From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 16:03:04 2008 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 3EFFB1065671 for ; Mon, 9 Jun 2008 16:03:04 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id CE4E28FC1C for ; Mon, 9 Jun 2008 16:03:03 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id m59G2tMi015137; Mon, 9 Jun 2008 18:02:55 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id C2388BA8E; Mon, 9 Jun 2008 18:02:54 +0200 (CEST) Date: Mon, 9 Jun 2008 18:02:54 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20080609160254.GA30437@slackbox.xs4all.nl> References: <20080609143300.GA37436@mech-aslap33.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20080609143300.GA37436@mech-aslap33.men.bris.ac.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.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Anton Shterenlikht Subject: Re: prevent overwriting custom make options in ports 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: Mon, 09 Jun 2008 16:03:04 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 09, 2008 at 03:33:01PM +0100, Anton Shterenlikht wrote: > I use ports/lang/gcc42. > I set WITHOUT_JAVA=3Dyes in the Makefile. > However, with each tree update this option is > overwritten, so I have to edit the Makefile > each time I update the port. >=20 > What is the best way to preserve my custom setting, > add an environment variable? Add the following to your /etc/make.conf: =2Eif ${.CURDIR:M*/lang/gcc*} WITHOUT_JAVA=3Dyes =2Eendif What this means is: if the current build directory (.CURDIR) matches=20 (M) the pattern */lang/gcc*, set WITHOUT_JAVA=3Dyes. See the VARIABLE ASSIGNMENTS section in the make(1) manual page for details.=20 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) --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhNVC4ACgkQEnfvsMMhpyVEpQCdFnpnsUQ4FNFQ4KNSyzJV89Z0 ltsAn3vQU9I0+LrDF74arLkt1QTCVu1A =c552 -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--