Created attachment 160281 [details] v0 Complex ports may want to toggle an arbitrary variable via FOO + FOO_OFF states. After some time popular non-intrinsic variables can be moved into the main file. See examples in blocked bugs.
If _OPTIONS_FLAGS becomes public it should not start with a _ Maybe also rename to something more accurate (but sorry I do not have good imagination here OPTIONS_HELPERS_TAGS? I would probably prefer going to something like: _OPTIONS_FLAGS= ${OPTIONS_HELPERS_TAGS} ... without the + I general I do like the principle of adding more flexibility here. What do others thinks?
I've thought about doing it this way, but variables starting with _ are private, and should not be used outside of where they're defined. I'm working on https://reviews.freebsd.org/D3410 right now, which is more where we want to go.
ports r395468 works fine for me.