2017-09-15 18:41:26 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://ninja-build.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="A small build system with a focus on speed"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2019-02-17 11:09:05 +01:00
|
|
|
TERMUX_PKG_VERSION=1.9.0
|
2019-08-29 20:31:44 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2017-09-15 18:41:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ninja-build/ninja/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2019-06-19 23:39:24 +02:00
|
|
|
TERMUX_PKG_SHA256=5d7ec75828f8d3fd1a0c2f31b5b0cea780cdfe1031359228c428c1a48bfcd5b9
|
2019-08-29 20:31:44 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libandroid-spawn"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
CXXFLAGS+=" $CPPFLAGS"
|
|
|
|
LDFLAGS+=" -landroid-spawn"
|
|
|
|
}
|
2017-09-15 18:41:26 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2017-09-15 18:41:26 +02:00
|
|
|
$TERMUX_PKG_SRCDIR/configure.py
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make() {
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-11 11:07:03 +02:00
|
|
|
$TERMUX_PKG_SRCDIR/configure.py --bootstrap
|
|
|
|
else
|
|
|
|
termux_setup_ninja
|
|
|
|
ninja -j $TERMUX_MAKE_PROCESSES
|
|
|
|
fi
|
2017-09-15 18:41:26 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2017-09-15 18:41:26 +02:00
|
|
|
cp ninja $TERMUX_PREFIX/bin
|
|
|
|
}
|