Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2008 18:02:54 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        freebsd-questions@freebsd.org
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>
Subject:   Re: prevent overwriting custom make options in ports
Message-ID:  <20080609160254.GA30437@slackbox.xs4all.nl>
In-Reply-To: <20080609143300.GA37436@mech-aslap33.men.bris.ac.uk>
References:  <20080609143300.GA37436@mech-aslap33.men.bris.ac.uk>

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

--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--



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