[package] upgrade mc to 4.7.5.1
[openwrt/svn-archive/archive.git] / utils / mc / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mc
11 PKG_VERSION:=4.7.5.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
16 PKG_MD5SUM:=e673b7ec0191e4061b5d8b69368aa113
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
20
21 define Package/mc
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+glib2 +libncurses +libiconv
25 TITLE:=midnight commander - a powerful file manager
26 URL:=http://www.midnight-commander.org/
27 SUBMENU:=filemanager
28 endef
29
30 define Package/mc/description
31 GNU Midnight Commander is a text-mode full-screen file manager.
32 It uses a two panel interface and a subshell for command execution.
33 It includes an internal editor with syntax highlighting and an
34 internal viewer with support for binary files. Also included is
35 Virtual Filesystem (VFS), that allows files on remote systems
36 (e.g. FTP, SSH, SMB servers) and files inside archives to be
37 manipulated like real files.
38 endef
39
40 CONFIGURE_ARGS += \
41 --without-edit \
42 --without-gpm-mouse \
43 --without-subshell \
44 --without-x \
45 --disable-vfs \
46 --with-screen=ncurses
47
48 AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*))
49
50 define Build/Prepare
51 $(Build/Prepare/Default)
52 for script in config.guess config.sub depcomp install-sh missing; do \
53 rm -f $(PKG_BUILD_DIR)/config/$$$$script; \
54 ln -s $(AM_HOST)/$$$$script $(PKG_BUILD_DIR)/config/$$$$script; \
55 done
56 endef
57
58 define Package/mc/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,mc))