2018-05-25 12:38:52 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/make/
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Tool to control the generation of non-source files from source files"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2020-01-22 12:05:00 +01:00
|
|
|
TERMUX_PKG_VERSION=4.3
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/make/make-${TERMUX_PKG_VERSION}.tar.gz
|
2020-01-22 12:05:00 +01:00
|
|
|
TERMUX_PKG_SHA256=e05fdde47c5f7ca45cb697e973894ff4f5d79e13b750ed57d7b66d8defc78e19
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="make-dev"
|
|
|
|
TERMUX_PKG_REPLACES="make-dev"
|
2016-05-09 02:04:16 +02:00
|
|
|
# Prevent linking against libelf:
|
2016-05-09 01:01:51 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_elf_elf_begin=no"
|
2018-11-01 03:07:37 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ "$TERMUX_ARCH" = arm ]; then
|
2019-02-12 09:23:21 +01:00
|
|
|
# Fix issue with make on arm hanging at least under cmake:
|
|
|
|
# https://github.com/termux/termux-packages/issues/2983
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_pselect=no"
|
2018-11-01 03:07:37 +01:00
|
|
|
fi
|
|
|
|
}
|
2019-08-11 14:27:01 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
# Allow to bootstrap make if building on device without make installed.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD && [ -z "$(command -v make)" ]; then
|
2019-08-11 14:27:01 +02:00
|
|
|
./build.sh
|
|
|
|
else
|
2019-08-11 14:56:13 +02:00
|
|
|
make -j $TERMUX_MAKE_PROCESSES
|
2019-08-11 14:27:01 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD && [ -z "$(command -v make)" ]; then
|
2019-08-11 14:27:01 +02:00
|
|
|
./make -j 1 install
|
|
|
|
else
|
|
|
|
make -j 1 install
|
|
|
|
fi
|
|
|
|
}
|