2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Brenken
<dibdot@gmail.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
17 PKG_SOURCE_URL
:=http
://ftp.midnight-commander.org
/
18 PKG_MD5SUM
:=d967caa12765eb86e52a6a63ca202500
23 PKG_CONFIG_DEPENDS
:= \
25 CONFIG_MC_DIFFVIEWER \
29 CONFIG_MC_BACKGROUND \
33 include $(INCLUDE_DIR
)/package.mk
34 include $(INCLUDE_DIR
)/nls.mk
39 DEPENDS
:=+glib2
+libncurses
+MC_VFS
:libssh2
$(LIBRPC_DEPENDS
) $(ICONV_DEPENDS
)
40 TITLE
:=Midnight Commander
- a powerful visual file manager
41 URL
:=http
://www.midnight-commander.org
/
45 define Package
/mc
/config
46 source
"$(SOURCE)/Config.in"
49 define Package
/mc
/description
50 GNU Midnight Commander is a visual file manager
,
51 licensed under GNU General Public License and therefore qualifies
as Free Software.
52 It
's a feature rich full-screen text mode application that allows you to copy,
53 move and delete files and whole directory trees, search for files
54 and run commands in the subshell. Internal viewer and editor are included.
58 --disable-doxygen-doc \
59 --with-screen=ncurses \
64 ac_cv_search_addwstr=no \
66 ifeq ($(CONFIG_MC_DIFFVIEWER),)
71 ifeq ($(CONFIG_MC_EDITOR),)
73 --without-internal-edit
76 ifeq ($(CONFIG_MC_SUBSHELL),)
81 ifeq ($(CONFIG_MC_LARGEFILE),)
86 ifeq ($(CONFIG_MC_BACKGROUND),)
91 ifeq ($(CONFIG_MC_CHARSET),)
96 ifeq ($(CONFIG_MC_VFS),)
101 define Package/mc/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
104 $(INSTALL_DIR) $(1)/etc/mc
105 ifeq ($(CONFIG_MC_DIFFVIEWER),y)
106 ln -sf mc $(1)/usr/bin/mcdiff
108 ifeq ($(CONFIG_MC_EDITOR),y)
109 ln -sf mc $(1)/usr/bin/mcedit
111 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
112 $(INSTALL_DIR) $(1)/etc/mc/skins
113 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
114 $(INSTALL_DIR) $(1)/root/.mc/cedit/Syntax
117 define Package/mc/conffiles
119 /etc/mc/skins/default.ini
122 $(eval $(call BuildPackage,mc))