2 # Copyright (C) 2006-2011 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.gz
15 PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
16 PKG_MD5SUM:=9fdfe7c0fcff362436eb35fcd1adf0fd
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
26 DEPENDS:=+glib2 +libncurses +libiconv
27 TITLE:=midnight commander - a powerful file manager
28 URL:=http://www.midnight-commander.org/
30 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
33 define Package/mc/description
34 GNU Midnight Commander is a visual file manager, licensed under GNU General
35 Public License and therefore qualifies as Free Software. It's a feature rich
36 full-screen text mode application that allows you to copy, move and delete
37 files and whole directory trees, search for files and run commands in the
44 --with-screen=ncurses \
49 ac_cv_search_addwstr=no
51 AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*))
54 $(Build/Prepare/Default)
55 for script in config.guess config.sub depcomp install-sh missing; do \
56 rm -f $(PKG_BUILD_DIR)/config/$$$$script; \
57 ln -s $(AM_HOST)/$$$$script $(PKG_BUILD_DIR)/config/$$$$script; \
61 define Package/mc/install
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/etc/mc
65 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
66 $(INSTALL_DIR) $(1)/etc/mc/skins
67 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
68 $(INSTALL_DIR) $(1)/root/.mc
71 define Package/mc/conffiles
73 /etc/mc/skins/default.ini
76 $(eval $(call BuildPackage,mc))