erlang: Update from 20.3.2 to 20.3.4
[termux-packages] / packages / erlang / build.sh
CommitLineData
1ec15137 1TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
5b7fa6e9 2TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language developed by Ericsson"
eb22fba1
FF
3TERMUX_PKG_VERSION=20.3.4
4TERMUX_PKG_SHA256=6a3b8d42b49dde708ab6faea4bf56b12466d0435e95314f42cedc0471ffcf7ae
fff9039f 5TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/OTP-$TERMUX_PKG_VERSION.tar.gz
03b4db0c 6TERMUX_PKG_DEPENDS="openssl, ncurses, libutil"
5b7fa6e9
RV
7TERMUX_PKG_HOSTBUILD="yes"
8TERMUX_PKG_BUILD_IN_SRC="yes"
03b4db0c 9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-javac --with-ssl=${TERMUX_PREFIX} --with-termcap"
11e97371 10TERMUX_PKG_EXTRA_MAKE_ARGS="noboot"
5b7fa6e9 11
762f98e7
FF
12termux_step_post_extract_package() {
13 # We need a host build every time:
14 rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
fff9039f 15 ./otp_build autoconf
762f98e7
FF
16}
17
5b7fa6e9 18termux_step_host_build () {
11e97371
FF
19 cd $TERMUX_PKG_SRCDIR
20 ./configure --enable-bootstrap-only
21 make -j "$TERMUX_MAKE_PROCESSES"
5b7fa6e9
RV
22}
23
24termux_step_pre_configure () {
11e97371
FF
25 # liblog is needed for syslog usage:
26 LDFLAGS+=" -llog"
27 # Put binaries built in termux_step_host_build at start of PATH:
762f98e7
FF
28 cp bin/*/* $TERMUX_PKG_SRCDIR/bootstrap/bin
29 export PATH="$TERMUX_PKG_SRCDIR/bootstrap/bin:$PATH"
5b7fa6e9 30}