2 # Copyright (C) 2006-2009 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:=ec92966f4d0c8b50c344fe901859ae2a
18 include $(INCLUDE_DIR)/package.mk
23 DEPENDS:=+glib1 +libncurses
24 TITLE:=midnight commander - a powerful file manager
25 URL:=http://www.midnight-commander.org/
29 define Package/mc/description
30 GNU Midnight Commander is a text-mode full-screen file manager.
31 It uses a two panel interface and a subshell for command execution.
32 It includes an internal editor with syntax highlighting and an
33 internal viewer with support for binary files. Also included is
34 Virtual Filesystem (VFS), that allows files on remote systems
35 (e.g. FTP, SSH, SMB servers) and files inside archives to be
36 manipulated like real files.
40 --with-included-gettext \
43 --without-sunos-curses \
44 --without-osf1-curses \
64 --with-glib-prefix="$(STAGING_DIR)/usr" \
67 AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*))
70 $(Build/Prepare/Default)
71 for script in config.guess config.sub depcomp install-sh missing; do \
72 rm -f $(PKG_BUILD_DIR)/config/$$$$script; \
73 ln -s $(AM_HOST)/$$$$script $(PKG_BUILD_DIR)/config/$$$$script; \
77 define Package/mc/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin/
80 ln -nsf mc $(1)/usr/bin/mcedit
83 $(eval $(call BuildPackage,mc))