xref: /OK3568_Linux_fs/buildroot/package/mc/mc.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# mc
4#
5################################################################################
6
7MC_VERSION = 4.8.27
8MC_SOURCE = mc-$(MC_VERSION).tar.xz
9MC_SITE = http://ftp.midnight-commander.org
10MC_LICENSE = GPL-3.0+
11MC_LICENSE_FILES = COPYING
12MC_DEPENDENCIES = libglib2 host-pkgconf $(TARGET_NLS_DEPENDENCIES)
13MC_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
14
15ifeq ($(BR2_PACKAGE_GPM),y)
16MC_CONF_OPTS += --with-gpm-mouse
17MC_DEPENDENCIES += gpm
18else
19MC_CONF_OPTS += --without-gpm-mouse
20endif
21
22ifeq ($(BR2_PACKAGE_LIBSSH2),y)
23MC_CONF_OPTS += --enable-vfs-sftp
24MC_DEPENDENCIES += libssh2
25else
26MC_CONF_OPTS += --disable-vfs-sftp
27endif
28
29# mc prefers slang, so use that if enabled, otherwise
30# fallback to using ncurses.
31# Either or both will be enabled, but we prefer slang.
32ifeq ($(BR2_PACKAGE_SLANG),y)
33MC_DEPENDENCIES += slang
34MC_CONF_OPTS += --with-screen=slang
35else
36MC_DEPENDENCIES += ncurses
37MC_CONF_OPTS += --with-screen=ncurses
38endif
39
40ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
41MC_CONF_OPTS += --with-x
42MC_DEPENDENCIES += xlib_libX11
43else
44MC_CONF_OPTS += --without-x
45endif
46
47$(eval $(autotools-package))
48