Subject: Re: *_OPTIONS for package options
To: Johnny C. Lam <jlam@NetBSD.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 07/24/2004 20:47:09
--v4cNTr+tRGSs1txX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 24, 2004 at 09:02:50AM +0000, Johnny C. Lam wrote:

> I don't see how we can implement this without touching the package
> Makefile.  The package Makefile must contain the logic for actually
> using the selected build options, e.g.
>=20
> 	.if !empty(PKG_OPTIONS:MPAM)
> 	.  include "../../security/PAM/buildlink3.mk"
> 	CONFIGURE_ARGS+=3D	--with-pam
> 	.endif
>=20
> So we clearly can't remove those sections of the package Makefiles.

right. :)

> The header of the example ("Global and legacy options") shown in
> bsd.options.mk is there solely to provide backwards-compatibility for
> using the old options, until we can deprecate and remove all instances
> of them.
>=20
> I think this is about as succinct as I can make it for the package
> developer to use.

looks good to me! thanks for doing this :)

grant.


--v4cNTr+tRGSs1txX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFBAj4sluYOb9yiFXoRAm1FAJ98fuLOXm028h6g9rrzSt7wBVkjCACgkF0h
IKSHCpJ/WSNLXC7Cj5wtfxc=
=Q4Bz
-----END PGP SIGNATURE-----

--v4cNTr+tRGSs1txX--