+--On 24 juin 2016 05:59:23 +0200 Jan Beich <jbe...@vfemail.net> wrote:
| Yuri <y...@rawbw.com> writes:
| 
|> I have two port options: GUI NLS.
|> 
|> I would like to have USES=gettext only when both GUI and NLS are "on".
|> 
|> If it was only one option, say NLS, NLS_USES=gettext 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:
| 
| - Move to a common option via _IMPLIES (e.g. GPL3 in multimedia/ffmpeg)
| 
| - Nest or create custom option helpers e.g.,
| 
|     OPTIONS_DEFINE=   GUI NLS
|     GUI_VARS= NLS_USES=gettext
|     
|     # pkg-plist
|     %%GUI%%%%NLS%%share/locale/foo/LC_MESSAGES/bar.mo

This is a bad idea, it depends on an implementation detail.

Please don't do it.

-- 
Mathieu Arnold

Attachment: pgpYnF_0fyYmn.pgp
Description: PGP signature

Reply via email to