1 ################################################################################
5 ################################################################################
8 MC_SOURCE = mc-$(MC_VERSION).tar.bz2
9 MC_SITE = http://ftp.midnight-commander.org
11 MC_LICENSE_FILES = COPYING
12 MC_DEPENDENCIES = libglib2 host-pkgconf
14 # mc prefers slang, so use that if enabled, otherwise
15 # fallback to using ncurses.
16 # Either or both will be enabled, but we prefer slang.
17 ifeq ($(BR2_PACKAGE_SLANG),y)
18 MC_DEPENDENCIES += slang
19 MC_CONF_OPTS += --with-screen=slang
21 MC_DEPENDENCIES += ncurses
22 MC_CONF_OPTS += --with-screen=ncurses
25 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
26 MC_CONF_OPTS += --with-x
27 MC_DEPENDENCIES += xlib_libX11
29 MC_CONF_OPTS += --without-x
32 $(eval $(autotools-package))