Patch is available at https://people.FreeBSD.org/~sunpoet/patch/Mk-Uses-meson.mk.txt Inspired by CMAKE_{ON,OFF}.
Do we really need yes/no?
It is a quite old patch in my local repo. I'm sure why I added it before. I could remove it and keep only TRUE/FALSE/ENABLED/DISABLED which I'm sure is used in the ports tree. Is that OK for you?
(In reply to Po-Chuan Hsieh from comment #2) > keep only TRUE/FALSE/ENABLED/DISABLED I personally like this plan. But I'd like to have opinions from more our fellow committers.
(In reply to Gleb Popov from comment #3) ok for me
https://mesonbuild.com/Build-options.html The only boolean values are true and false. The only features states are enabled and disabled (auto is disregarded for ports purposes). YES and NO and any other words not already mentioned do not mean anything to meson so we should not have port/framework variables alluding to them. So yes only expose TRUE/FALSE/ENABLED/DISABLED.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5cf2c031f53e3089da39445f6abccf1cb44fc752 commit 5cf2c031f53e3089da39445f6abccf1cb44fc752 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-11-05 10:18:37 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-11-05 10:23:43 +0000 Mk/Uses/meson.mk: Add MESON_{TRUE,FALSE,ENABLED,DISABLED} support PR: 290584 Approved by: arrowd, makc, vishwin Mk/Uses/meson.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
Committed. Thanks.