Browse Source

add support for on-device bootstrapping of "make"

emacs-27
Leonid Plyushch 5 years ago
parent
commit
d274182ade
  1. 17
      packages/make/build.sh
  2. 2
      scripts/setup-termux.sh

17
packages/make/build.sh

@ -17,3 +17,20 @@ termux_step_pre_configure() {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_pselect=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_pselect=no"
fi fi
} }
termux_step_make() {
# Allow to bootstrap make if building on device without make installed.
if [ -n "$TERMUX_ON_DEVICE_BUILD" ] && [ -z "$(command -v make)" ]; then
./build.sh
else
make -j $TERMUX_MAKE_PROCESSES $QUIET_BUILD
fi
}
termux_step_make_install() {
if [ -n "$TERMUX_ON_DEVICE_BUILD" ] && [ -z "$(command -v make)" ]; then
./make -j 1 install
else
make -j 1 install
fi
}

2
scripts/setup-termux.sh

@ -24,7 +24,7 @@ PACKAGES+=" golang"
PACKAGES+=" gperf" PACKAGES+=" gperf"
PACKAGES+=" libtool" PACKAGES+=" libtool"
PACKAGES+=" m4" PACKAGES+=" m4"
PACKAGES+=" make" # Used for all Makefile projects and to build itself. PACKAGES+=" make" # Used for all Makefile-based projects.
PACKAGES+=" ninja" # Used by default to build all CMake projects. PACKAGES+=" ninja" # Used by default to build all CMake projects.
PACKAGES+=" perl" PACKAGES+=" perl"
PACKAGES+=" pkg-config" PACKAGES+=" pkg-config"

Loading…
Cancel
Save