# # This helper is for templates using meson. # do_configure() { : ${meson_cmd:=meson} : ${meson_builddir:=build} : ${meson_crossfile:=xbps_meson.cross} if [ "$CROSS_BUILD" ]; then _MESON_TARGET_ENDIAN=little _MESON_TARGET_CPU=${XBPS_TARGET_MACHINE} case "$XBPS_TARGET_MACHINE" in mips|mips-musl) _MESON_TARGET_ENDIAN=big ;; esac # Record cross-compiling information in cross file. # CFLAGS and LDFLAGS must be set as c_args and c_link_args. cat > ${meson_crossfile} <