diff --git a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
index bc3488a85b..12063c9b02 100644
--- a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
+++ b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
@@ -6389,6 +6389,10 @@ FOO_CONFIGURE_ENABLE= foo
no, use .
+ For arguments that take enabled
+ or disabled, see .
+
For all other cases, use .
@@ -6711,7 +6715,7 @@ CMAKE_ARGS+= -DOPTIMIZE:BOOL=true
-Dentry:BOOL=false
is appended to CONFIGURE_ARGS.
OPT_CMAKE_BOOL_OFF
- is the oposite,
+ is the opposite,
-Dentry:BOOL=false
is appended to CMAKE_ARGS when the
option is selected, and
@@ -6782,15 +6786,15 @@ MESON_ARGS+= -Dopt=2
OPT_MESON_TRUE
then
-Dentry=true
- is appended to CMAKE_ARGS. When option
+ is appended to MESON_ARGS. When option
OPT is not
selected,
-Dentry=false
- is appended to CONFIGURE_ARGS.
+ is appended to MESON_ARGS.
OPT_MESON_FALSE
- is the oposite,
+ is the opposite,
-Dentry=false
- is appended to CMAKE_ARGS when the
+ is appended to MESON_ARGS when the
option is selected, and
-Dentry=true
when the option is not selected. For
@@ -6825,15 +6829,15 @@ MESON_ARGS+= -Dtest=false -Ddebug=false \
OPT_MESON_YES
then
-Dentry=yes
- is appended to CMAKE_ARGS. When option
+ is appended to MESON_ARGS. When option
OPT is not
selected,
-Dentry=no
- is appended to CONFIGURE_ARGS.
+ is appended to MESON_ARGS.
OPT_MESON_NO
- is the oposite,
+ is the opposite,
-Dentry=no
- is appended to CMAKE_ARGS when the
+ is appended to MESON_ARGS when the
option is selected, and
-Dentry=yes
when the option is not selected. For
@@ -6850,11 +6854,52 @@ OPT1_MESON_NO= optimize
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPT1}
-CMAKE_ARGS+= -Dtest=yes -Ddebug=yes \
+MESON_ARGS+= -Dtest=yes -Ddebug=yes \
-Doptimize=no
.else
-CMAKE_ARGS+= -Dtest=no -Ddebug=no \
+MESON_ARGS+= -Dtest=no -Ddebug=no \
-Doptimize=yes
+.endif
+
+
+
+ OPT_MESON_ENABLED
+ and
+ OPT_MESON_DISABLED
+
+ When option OPT is
+ selected, for each entry in
+ OPT_MESON_ENABLED
+ then
+ -Dentry=enabled
+ is appended to MESON_ARGS. When option
+ OPT is not
+ selected,
+ -Dentry=disabled
+ is appended to MESON_ARGS.
+ OPT_MESON_DISABLED
+ is the opposite,
+ -Dentry=disabled
+ is appended to MESON_ARGS when the
+ option is selected, and
+ -Dentry=enabled
+ when the option is not selected. For
+ example:
+
+ OPTIONS_DEFINE= OPT1
+OPT1_MESON_ENABLED= test
+OPT1_MESON_DISABLED= debug
+
+ is equivalent to:
+
+ OPTIONS_DEFINE= OPT1
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPT1}
+MESON_ARGS+= -Dtest=enabled -Ddebug=disabled
+.else
+MESON_ARGS+= -Dtest=disabled -Ddebug=enabled
.endif
diff --git a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
index ec5e7d9874..da511cd17d 100644
--- a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
+++ b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
@@ -1164,6 +1164,53 @@ byteorder-1.2.2 Unlicense/MIT
+
+
+ Using meson
+
+ For ports that use Meson,
+ define USES=meson.
+
+
+ Variables for Ports That Use
+ meson
+
+
+
+
+ Variable
+ Description
+
+
+
+
+
+ MESON_ARGS
+ Port specific Meson
+ flags to be passed to the meson
+ binary.
+
+
+
+ MESON_BUILD_DIR
+ Path to the build directory relative to
+ WRKSRC. Default is
+ _build.
+
+
+
+
+
+
+ USES=meson Example
+
+ This snippet demonstrates the use of
+ Meson for a port.
+
+ USES= meson
+MESON_ARGS= -Dfoo=enabled
+
+
diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
index 20dd82636d..37280316e6 100644
--- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
+++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
@@ -1965,7 +1965,8 @@ USE_MATE= menus:build intlhack
Possible arguments: (none)
- Provide support for Meson based projects.
+ Provide support for Meson based projects. For more
+ information see .