Re: emulators/mame: Increasing option granularity woes

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Tue, 27 Feb 2024 06:24:13 UTC
On Tue, Feb 27, 2024 at 5:43 AM Alastair Hogge <agh@riseup.net> wrote:
>
> however, I do not know how that translates to Makefile
> targets, like do-install-NON_USER_FACING_OPT-on. Currently the Makefile
> target is of the ".if somecond FOO= .else BAR= .endif" form.

I'm afraid you'd still have to write

post-install:
.if ${PORT_OPTIONS:MFOO} || ${PORT_OPTIONS:MBAR}
...
.endif

for optionalizing targets.