2017-07-17 20:24:18 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
|
2016-12-23 22:12:42 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language developed by Ericsson"
|
2017-07-17 20:24:18 +02:00
|
|
|
TERMUX_PKG_VERSION=20.0
|
|
|
|
TERMUX_PKG_SHA256=fe80e1e14a2772901be717694bb30ac4e9a07eee0cc7a28988724cbd21476811
|
2016-12-23 23:17:53 +01:00
|
|
|
TERMUX_PKG_DEPENDS="openssl, ncurses, libutil"
|
2017-01-10 09:15:05 +01:00
|
|
|
TERMUX_PKG_SRCURL="http://erlang.org/download/otp_src_${TERMUX_PKG_VERSION}.tar.gz"
|
2016-12-23 22:12:42 +01:00
|
|
|
TERMUX_PKG_HOSTBUILD="yes"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC="yes"
|
2016-12-23 23:17:53 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-javac --with-ssl=${TERMUX_PREFIX} --with-termcap"
|
2017-01-10 09:15:05 +01:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="noboot"
|
2016-12-23 22:12:42 +01:00
|
|
|
|
2017-01-10 12:34:38 +01:00
|
|
|
termux_step_post_extract_package() {
|
|
|
|
# We need a host build every time:
|
|
|
|
rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
|
|
|
|
}
|
|
|
|
|
2016-12-23 22:12:42 +01:00
|
|
|
termux_step_host_build () {
|
2017-01-10 09:15:05 +01:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
./configure --enable-bootstrap-only
|
|
|
|
make -j "$TERMUX_MAKE_PROCESSES"
|
2016-12-23 22:12:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2017-01-10 09:15:05 +01:00
|
|
|
# liblog is needed for syslog usage:
|
|
|
|
LDFLAGS+=" -llog"
|
|
|
|
# Put binaries built in termux_step_host_build at start of PATH:
|
2017-01-10 12:34:38 +01:00
|
|
|
cp bin/*/* $TERMUX_PKG_SRCDIR/bootstrap/bin
|
|
|
|
export PATH="$TERMUX_PKG_SRCDIR/bootstrap/bin:$PATH"
|
2016-12-23 22:12:42 +01:00
|
|
|
}
|