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-06-23 19:56:28 +02:00
|
|
|
TERMUX_PKG_VERSION=4.8.23
|
|
|
|
TERMUX_PKG_SHA256=dd7f7ce74183307b0df25b5c3e60ad3293fd3d3d27d2f37dd7a10efce13dff1c
|
2017-11-26 23:15:39 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz
|
2019-05-05 16:45:07 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, libiconv, 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
|
|
|
|
}
|