termux-packages/packages/screen/build.sh
Fredrik Fornwall 6d93e1a0c0 Get rid of some linkage against liblog
After https://github.com/termux/termux-packages/pull/4639 has been
merged linking against liblog for syslog-using code is no longer needed.
2019-12-30 00:16:07 +01:00

26 lines
819 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/screen/
TERMUX_PKG_DESCRIPTION="Terminal multiplexer with VT100/ANSI terminal emulation"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=4.7.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/screen/screen-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=da775328fa783bd2a787d722014dbd99c6093effc11f337827604c2efc5d20c1
TERMUX_PKG_DEPENDS="ncurses, libcrypt"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-socket-dir
--enable-colors256
--with-ssl=openssl
"
termux_step_pre_configure() {
# Run autoreconf since we have patched configure.ac
autoconf
CFLAGS+=" -DGETUTENT"
export LIBS="-lcrypt"
}
termux_step_post_configure() {
echo '#define HAVE_SVR4_PTYS 1' >> $TERMUX_PKG_BUILDDIR/config.h
echo 'mousetrack on' > "$TERMUX_PREFIX/etc/screenrc"
}