if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/less/Config.in"
endif
+ source "package/mc/Config.in"
source "package/nano/Config.in"
source "package/uemacs/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
--- /dev/null
+config BR2_PACKAGE_MC
+ bool "mc"
+ depends on BR2_USE_WCHAR # libglib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+ depends on BR2_USE_MMU # libglib2, slang
+ select BR2_PACKAGE_LIBGLIB2
+ # mc prefers slang, but can use ncurses too
+ select BR2_PACKAGE_SLANG if !BR2_PACKAGE_NCURSES
+ help
+ GNU Midnight Commander is a visual file manager, licensed under
+ GNU General Public License. It can use either SLang (preferred)
+ or ncurses for screen handling; if neither is enabled SLang
+ will be automatically chosen.
+
+ https://www.midnight-commander.org
+
+comment "mc needs a toolchain w/ threads, wchar"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
+ depends on BR2_USE_MMU
--- /dev/null
+# Hash from http://ftp.midnight-commander.org/mc-4.8.14.sha256:
+sha256 61fd0fd2280c3d09d7e0aec8ab001fc89dad8e4fd9941f386414667b55152ec5 mc-4.8.14.tar.bz2
--- /dev/null
+################################################################################
+#
+# mc
+#
+################################################################################
+
+MC_VERSION = 4.8.14
+MC_SOURCE = mc-$(MC_VERSION).tar.bz2
+MC_SITE = http://ftp.midnight-commander.org
+MC_LICENSE = GPLv3+
+MC_LICENSE_FILES = COPYING
+MC_DEPENDENCIES = libglib2 host-pkgconf
+
+# mc prefers slang, so use that if enabled, otherwise
+# fallback to using ncurses.
+# Either or both will be enabled, but we prefer slang.
+ifeq ($(BR2_PACKAGE_SLANG),y)
+MC_DEPENDENCIES += slang
+MC_CONF_OPTS += --with-screen=slang
+else
+MC_DEPENDENCIES += ncurses
+MC_CONF_OPTS += --with-screen=ncurses
+endif
+
+$(eval $(autotools-package))