Page MenuHomeFreeBSD

Mk/bsd.options.mk: Add opt_MESON_ENABLE options helper
AbandonedPublic

Authored by tobik on Feb 5 2019, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 3:53 AM
Unknown Object (File)
Mar 10 2024, 8:00 AM
Unknown Object (File)
Feb 7 2024, 4:44 PM
Unknown Object (File)
Jan 30 2024, 5:49 PM
Unknown Object (File)
Jan 17 2024, 2:42 AM
Unknown Object (File)
Jan 14 2024, 4:27 PM
Unknown Object (File)
Dec 20 2023, 2:25 AM
Unknown Object (File)
Dec 10 2023, 11:34 AM
Subscribers

Details

Reviewers
None
Group Reviewers
gnome
O5: Ports Framework(Owns No Changed Paths)
portmgr
Summary

Some newer ports using Meson now pass -Dopt=enabled or -Dopt=disabled
to it. Maybe we should add an options helper for this now.

I converted x11/swaylock as an example.

This is for Meson's new feature build options which are available since 0.47.0.

https://mesonbuild.com/Release-notes-for-0-47-0.html#new-type-of-build-option-for-features
https://mesonbuild.com/Build-options.html#features

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 22352
Build 21527: arc lint + arc unit

Event Timeline

Using the *_MESON_TRUE is not possible ?

Also, you probably will need a *_MESON_DISABLE. (doing what the _FALSE does for the _TRUE.)

In D19085#408107, @mat wrote:

Using the *_MESON_TRUE is not possible ?

No. Here's what happens in x11/swaylock if using *_MESON_TRUE instead of *_MESON_ENABLE:

meson.build:1:0: ERROR:  Value "true" for combo option "man-pages" is not one of the choices. Possible choices are: "enabled", "disabled", "auto".

Also, you probably will need a *_MESON_DISABLE. (doing what the _FALSE does for the _TRUE.)

Do we? I cannot find a single port even using *_MESON_FALSE. Same for *_MESON_NO. We also don't have a *_CONFIGURE_DISABLE or *_CONFIGURE_WITHOUT (though there are several ports pretending those exist...).

  • Add opt_MESON_DISABLE too

Do we? I cannot find a single port even using *_MESON_FALSE. Same for *_MESON_NO.

Maybe we don't, I don't know, I just try to cover all bases. If we don't, then we don't :-)

Abandoning in favor of D19127...