www/mozilla/mozilla.port.mk: add support to drive the build with 'mach'
since #2038789 we've seen that the 'legacy' method of running
CONFIGURE_SCRIPT and MAKE is a bit less tested, and will eventually be
completely unsupported/deprecated in the coming year.
add MOZILLA_USE_MACH knob, that if defined will:
- set do-{configure,build,install} targets to run the steps via ${WRKSRC}/mach,
passing various CONFIGURE_ARGS/MAKE_FLAGS/PARALLEL_MAKE_FLAGS/MAKE_ENV/etc.
- add MOZBUILD_STATE_PATH=${WRKDIR} to MAKE_ENV/CONFIGURE_ENV so that
mach stores it state in a throwaway dir that _pbuild can write
- adds MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none to MAKE_ENV so that
mach doesnt try running pip (and horribly blow)
if MOZILLA_USE_MACH isnt defined (eg default), set
CONFIGURE_STYLE=simple and CONFIGURE_SCRIPT?=configure.py, as it's
already defined this way in all consumers.
inconditionally add MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none to
CONFIGURE_ENV while here, its required since #2026497. and already set
[7 lines not shown]