2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
|
2015-07-04 14:56:17 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-01-03 02:32:24 +01:00
|
|
|
TERMUX_PKG_VERSION=4.8.22
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2019-01-03 02:32:24 +01:00
|
|
|
TERMUX_PKG_SHA256=ee7868d7ba0498cf2cccefe107d7efee7f2571098806bba2aed5a159db801318
|
2017-11-26 23:15:39 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib, openssl, libssh2, zlib"
|
2018-04-23 00:48:19 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2019-01-03 03:50:25 +01:00
|
|
|
ac_cv_lib_util_openpty=no
|
2018-04-26 21:26:17 +02:00
|
|
|
ac_cv_path_PERL=$TERMUX_PREFIX/bin/perl
|
|
|
|
ac_cv_path_PYTHON=$TERMUX_PREFIX/bin/python
|
|
|
|
ac_cv_path_RUBY=$TERMUX_PREFIX/bin/ruby
|
2019-01-03 03:50:25 +01:00
|
|
|
ac_cv_path_UNZIP=$TERMUX_PREFIX/bin/unzip
|
|
|
|
ac_cv_path_ZIP=$TERMUX_PREFIX/bin/zip
|
2018-04-26 21:26:17 +02:00
|
|
|
--with-ncurses-includes=$TERMUX_PREFIX/include
|
2018-04-23 00:48:19 +02:00
|
|
|
--with-ncurses-libs=$TERMUX_PREFIX/lib
|
|
|
|
--with-screen=ncurses
|
|
|
|
"
|
2018-06-13 02:12:36 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ "$TERMUX_DEBUG" == "true" ]; then
|
|
|
|
# Debug build fails with:
|
|
|
|
# /home/builder/.termux-build/mc/src/src/filemanager/file.c:2019:37: error: 'umask' called with invalid mode
|
|
|
|
# src_mode = umask (-1);
|
2019-02-09 12:16:54 +01:00
|
|
|
# ^
|
2018-06-13 02:12:36 +02:00
|
|
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
|
|
|
fi
|
|
|
|
}
|