2015-03-24 20:57:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-12-09 17:00:26 +01:00
|
|
|
MC_VERSION = 4.8.15
|
2015-06-08 23:46:05 +02:00
|
|
|
MC_SOURCE = mc-$(MC_VERSION).tar.xz
|
2015-03-24 20:57:47 +01:00
|
|
|
MC_SITE = http://ftp.midnight-commander.org
|
2015-06-08 23:46:07 +02:00
|
|
|
MC_LICENSE = GPLv3+
|
2015-03-24 20:57:47 +01:00
|
|
|
MC_LICENSE_FILES = COPYING
|
|
|
|
MC_DEPENDENCIES = libglib2 host-pkgconf
|
|
|
|
|
2016-02-10 22:21:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
|
|
|
|
MC_CONF_OPTS += --enable-vfs-sftp
|
|
|
|
MC_DEPENDENCIES += libssh2
|
|
|
|
else
|
|
|
|
MC_CONF_OPTS += --disable-vfs-sftp
|
|
|
|
endif
|
|
|
|
|
2015-03-24 20:57:47 +01:00
|
|
|
# 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
|
|
|
|
|
2015-04-02 21:28:57 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
|
|
|
MC_CONF_OPTS += --with-x
|
|
|
|
MC_DEPENDENCIES += xlib_libX11
|
|
|
|
else
|
|
|
|
MC_CONF_OPTS += --without-x
|
|
|
|
endif
|
|
|
|
|
2015-03-24 20:57:47 +01:00
|
|
|
$(eval $(autotools-package))
|