Date: Fri, 24 Jun 2016 05:59:23 +0200 From: Jan Beich <jbeich@vfemail.net> To: Yuri <yuri@rawbw.com> Cc: "ports\@freebsd.org" <ports@freebsd.org> Subject: Re: Any way to add USES clause depending on two options without including bsd.port.options.mk? Message-ID: <inwz-z17o-wny@vfemail.net> References: <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Yuri <yuri@rawbw.com> writes: > I have two port options: GUI NLS. > > I would like to have USES=3Dgettext only when both GUI and NLS are "on". > > If it was only one option, say NLS, NLS_USES=3Dgettext would work. > > But what about the two options case? Is there any magic to do this > without .include <bsd.port.options.mk> ? Depends on the port but here're some ideas: =2D Move to a common option via _IMPLIES (e.g. GPL3 in multimedia/ffmpeg) =2D Nest or create custom option helpers e.g., OPTIONS_DEFINE=3D GUI NLS GUI_VARS=3D NLS_USES=3Dgettext =20=20=20=20 # pkg-plist %%GUI%%%%NLS%%share/locale/foo/LC_MESSAGES/bar.mo --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXbLAbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bkIUIAIOBY5fJLgDJy0ThhAY93tQL M+PGJAtNeKZ0eJQBZ3NPvUZgBnOiwOIjTYx4iATUHRqSov2fA5Kmg1yvti4+1nN8 y68OA3Wp7a3VGeegYhvtA2wIo0sYNdInqDIeChVod1R4h12egOk8C/3T4OqQYUne PJLM3k+jP8t0LUrREN7fbrt84tWQRbWV4dD7IoSaTkulUYPA2+ornQdqsQXipCOi GrpkgkXoRMcEKvYghS40ggyAUZuIc5l9ZlAkcRv65ofXgCL+2UcNRzHp1HxQ1mhR d6vmGPnUFJJSPjf7xmJ5O3dmzbBVeYPXSzVhnXn8YVQFtkHrWrL9AoXNtl1ZjJc= =a9r/ -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?inwz-z17o-wny>