gperf: Add package
[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"
d141ee55
FF
3TERMUX_PKG_VERSION=20.1
4TERMUX_PKG_SHA256=900d35eb563607785a8e27f4b4c03cf6c98b4596028c5d6958569ddde5d4ddbf
03b4db0c 5TERMUX_PKG_DEPENDS="openssl, ncurses, libutil"
11e97371 6TERMUX_PKG_SRCURL="http://erlang.org/download/otp_src_${TERMUX_PKG_VERSION}.tar.gz"
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"
15}
16
5b7fa6e9 17termux_step_host_build () {
11e97371
FF
18 cd $TERMUX_PKG_SRCDIR
19 ./configure --enable-bootstrap-only
20 make -j "$TERMUX_MAKE_PROCESSES"
5b7fa6e9
RV
21}
22
23termux_step_pre_configure () {
11e97371
FF
24 # liblog is needed for syslog usage:
25 LDFLAGS+=" -llog"
26 # Put binaries built in termux_step_host_build at start of PATH:
762f98e7
FF
27 cp bin/*/* $TERMUX_PKG_SRCDIR/bootstrap/bin
28 export PATH="$TERMUX_PKG_SRCDIR/bootstrap/bin:$PATH"
5b7fa6e9 29}