2 # Copyright (C) 2006-2013 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
16 PKG_MD5SUM:=eb4bdc23abd4fdfa14911d53d65c8186
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
27 DEPENDS:=+glib2 +libncurses $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
28 TITLE:=midnight commander - a powerful file manager
29 URL:=http://www.midnight-commander.org/
34 define Package/mc/config
35 source "$(SOURCE)/Config.in"
38 define Package/mc/description
39 GNU Midnight Commander is a visual file manager, licensed under GNU General
40 Public License and therefore qualifies as Free Software. It's a feature rich
41 full-screen text mode application that allows you to copy, move and delete
42 files and whole directory trees, search for files and run commands in the
48 --disable-doxygen-doc \
50 --with-screen=ncurses \
53 ac_cv_search_addwstr=no
55 ifeq ($(CONFIG_MC_DIFF_VIEWER),n)
60 ifeq ($(CONFIG_MC_EDITOR),n)
65 ifeq ($(CONFIG_MC_SUBSHELL),n)
70 ifeq ($(CONFIG_MC_DISABLE_VFS),y)
75 define Package/mc/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
78 $(INSTALL_DIR) $(1)/etc/mc
79 ifeq ($(CONFIG_MC_DIFF_VIEWER),y)
80 ln -sf mc $(1)/usr/bin/mcdiff
82 ifeq ($(CONFIG_MC_EDITOR),y)
83 ln -sf mc $(1)/usr/bin/mcedit
85 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
86 $(INSTALL_DIR) $(1)/etc/mc/skins
87 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
88 $(INSTALL_DIR) $(1)/root/.mc/cedit/Syntax
91 define Package/mc/conffiles
93 /etc/mc/skins/default.ini
96 $(eval $(call BuildPackage,mc))