1bfc5f9865
%ci:no-build Manual rebuilds will be triggered for all the packages
39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
|
|
TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=24.2.2
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/OTP-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=b6adfc0bf14d94348146ae26cc38d09dca545f8e14ebab7ddcf9482a6e8d1162
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_AUTO_UPDATE_TAG_REGEXP="\d+(\.\d+)+"
|
|
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
|
|
erl_xcomp_sysroot=${TERMUX_PREFIX}
|
|
"
|
|
|
|
termux_step_post_get_source() {
|
|
# We need a host build every time, because we dont know the full output of host build and have no idea to cache it.
|
|
rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
|
|
}
|
|
|
|
termux_step_host_build() {
|
|
cd $TERMUX_PKG_BUILDDIR
|
|
# Erlang cross compile reference: https://github.com/erlang/otp/blob/master/HOWTO/INSTALL-CROSS.md#building-a-bootstrap-system
|
|
# Build erlang bootstrap system.
|
|
./configure --enable-bootstrap-only --without-javac --without-ssl --without-termcap
|
|
make -j $TERMUX_MAKE_PROCESSES
|
|
}
|
|
|
|
termux_step_pre_configure() {
|
|
# Add --build flag for erlang cross build
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --build=$(./erts/autoconf/config.guess)"
|
|
}
|