erlang: Update from 18.3.3 to 19.2
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 23 Dec 2016 22:17:53 +0000 (17:17 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 23 Dec 2016 22:17:53 +0000 (17:17 -0500)
Also fix how the system openssl is specified.

packages/erlang/build.sh

index 0c8a69f..f58dc11 100755 (executable)
@@ -1,14 +1,14 @@
-TERMUX_PKG_HOMEPAGE="http://www.erlang.org/"
+TERMUX_PKG_HOMEPAGE="https://www.erlang.org/"
 TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language developed by Ericsson"
-TERMUX_PKG_VERSION="18.3.3"
-TERMUX_PKG_DEPENDS="openssl, ncurses"
+TERMUX_PKG_VERSION="19.2"
+TERMUX_PKG_DEPENDS="openssl, ncurses, libutil"
 
 TERMUX_PKG_SRCURL="https://github.com/erlang/otp/archive/OTP-${TERMUX_PKG_VERSION}.tar.gz"
 TERMUX_PKG_FOLDERNAME="otp-OTP-${TERMUX_PKG_VERSION}"
 
 TERMUX_PKG_HOSTBUILD="yes"
 TERMUX_PKG_BUILD_IN_SRC="yes"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-javac --with-ssl=${TERMUX_TOPDIR}/openssl/src --with-termcap"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-javac --with-ssl=${TERMUX_PREFIX} --with-termcap"
 
 termux_step_post_extract_package () {
     rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
@@ -24,7 +24,7 @@ termux_step_host_build () {
 }
 
 termux_step_pre_configure () {
-    LDFLAGS+=" -llog -L${TERMUX_TOPDIR}/openssl/src"
+    LDFLAGS+=" -llog"
 }
 
 termux_step_make () {