package/pkg-meson.mk: add FOO_MESON_EXTRA_PROPERTIES
authorJohn Keeping <john@metanate.com>
Wed, 11 Mar 2020 11:22:55 +0000 (11:22 +0000)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Mar 2020 21:37:34 +0000 (22:37 +0100)
commit0c89d006ca1ce20f0d043165627415a78ef8f66b
treed426295d732095ff1ff4bd428d72af2a36b0e7b5
parent68f11585f34af1932820910ae5a90aa21868b147
package/pkg-meson.mk: add FOO_MESON_EXTRA_PROPERTIES

With autoconf packages, we often specify ac_cv_func_... cached values to
avoid runtime checks during configure.  With meson the equivalent is
setting properties in cross-compilation.conf which we cannot do in
Buildroot at the moment.

For example, libglib2 used to set ac_cv_func_printf_unix98 and
ac_cv_func_vsnprintf_c99 so that the system printf could be used, but
with the conversion to meson these checks fail and the gnulib fallback
is used.

Add infrastructure in the same way as FOO_MESON_EXTRA_BINARIES to allow
per-package modification to the cross-compilation properties.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Adam Duskett <aduskett@gmail.com>
[yann.morin.1998@free.fr: do a single substitution as in a1e3c7b693]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
docs/manual/adding-packages-meson.txt
package/pkg-meson.mk