GNU Midnight Commander is a user-friendly yet powerful file manager
and visual shell, useful to novice and guru alike. It provides a
clear, user-friendly, and somewhat protected interface to a Unix
system while making many frequent file operations more efficient and
preserving the full power of the command prompt. You will wonder how
you could ever live without it.
===> The following configuration options are available for mc-nox11-4.8.30:
ASPELL=off: Aspell support for internal editor
DOCS=on: Build and/or install documentation
EDITOR=on: Build with internal text editor
EXTATTR=off: Extended filesystem attributes support
ICONV=on: Encoding conversion support via iconv
NLS=on: Native Language Support
PCRE2=off: Use PCRE2 as low-level search engine
SFTP=on: Support for SFTP (via libssh)
SUBSHELL=on: Build with subshell support
====> Screen library: you have to select exactly one of them
SLANG=on: S-Lang console graphics library support
NCURSES=off: Console (text) interface support
===> Use 'make config' to modify these settings
Midnight Commander was built with subshell support, which works with most
popular shells, e.g. bash(1), dash(1), tcsh(1), zsh(1), but not sh(1) due
to its lack of "precmd" or equivalent hooks which mc(1) needs to read the
subshell's current directory.
$ env SHELL=/bin/sh mc
common.c: unimplemented subshell type 1
read (subshell_pty...): No such file or directory (2)
Please either use more advanced interactive shell, or start mc(1) with -u
(--nosubshell) switch if you're confined to /bin/sh for some reason.
misc/mc: drop needless run-time dependencies on Aspell and Xlib
Yury V. Zaytsev points out that for X11 and Aspell support, header
files <X11/Xlib.h> and <aspell.h> are only needed during the build,
while their corresponding libraries would be loaded dynamically if
available; if not, mc(1) would still work fine, just without those
features. The source code and ldd(1) output confirm his findings:
% cd $WRKDIR/mc-4.8.30 && grep -R -A1 g_module_build_path *
lib/tty/x11conn.c: x11_module_fname = g_module_build_path (NULL, "X11");
lib/tty/x11conn.c- x11_module = g_module_open (x11_module_fname,
G_MODULE_BIND_LAZY);
--
src/editor/spell.c: spell_module_fname = g_module_build_path (NULL,
"libaspell");
src/editor/spell.c- spell_module = g_module_open (spell_module_fname,
G_MODULE_BIND_LAZY);
This allows to enable Aspell support by default and drop X11-less
slave port now that both of these dependencies are build-time only
yet still can be completely disabled via options.
PR: 269120
misc/mc{,-nox11}: slightly improve the ports' Makefiles (+)
- Do not globally pollute -I/-L with ${LOCALBASE} when handling
the NLS option and pass it as the --with-libintl-prefix instead
- Drop no longer supported --with-slang-includes configure switch,
correct paths are obtained via pkgconf(1) these days
- Set PKGNAMESUFFIX together with CONFLICTS_INSTALL in the master
so they are always coherent (previously, when the main port is
built with X11 option unset it would conflict with itself)