termux-packages/packages/erlang/build.sh

36 lines
1.1 KiB
Bash
Raw Normal View History

2017-07-17 20:24:18 +02:00
TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
2018-08-26 02:48:28 +02:00
TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language"
2019-01-20 22:39:59 +01:00
TERMUX_PKG_LICENSE="Apache-2.0"
2019-07-21 00:34:41 +02:00
TERMUX_PKG_VERSION=22.0.7
TERMUX_PKG_REVISION=1
2017-11-22 16:43:28 +01:00
TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/OTP-$TERMUX_PKG_VERSION.tar.gz
2019-07-21 00:34:41 +02:00
TERMUX_PKG_SHA256=04c090b55ec4a01778e7e1a5b7fdf54012548ca72737965b7aa8c4d7878c92bc
2019-04-14 14:51:46 +02:00
TERMUX_PKG_DEPENDS="openssl, ncurses, zlib"
TERMUX_PKG_NO_STATICSPLIT=true
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-javac --with-ssl=${TERMUX_PREFIX} --with-termcap"
TERMUX_PKG_EXTRA_MAKE_ARGS="noboot"
termux_step_post_extract_package() {
# We need a host build every time:
rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
2017-11-22 16:43:28 +01:00
./otp_build autoconf
}
termux_step_host_build() {
cd $TERMUX_PKG_SRCDIR
./configure --enable-bootstrap-only
make -j "$TERMUX_MAKE_PROCESSES"
}
termux_step_pre_configure() {
2018-07-01 23:19:57 +02:00
(cd erts && autoreconf)
# liblog is needed for syslog usage:
LDFLAGS+=" -llog"
# Put binaries built in termux_step_host_build at start of PATH:
cp bin/*/* $TERMUX_PKG_SRCDIR/bootstrap/bin
export PATH="$TERMUX_PKG_SRCDIR/bootstrap/bin:$PATH"
}