[packages] collectd: provide missing AM_PATH_LIBGCRYPT macro and autoreconf libltdl...
[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.6.2
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:=ec92966f4d0c8b50c344fe901859ae2a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mc
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+glib1 +libncurses
24 TITLE:=midnight commander - a powerful file manager
25 URL:=http://www.midnight-commander.org/
26 SUBMENU:=filemanager
27 endef
28
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.
37 endef
38
39 CONFIGURE_ARGS += \
40 --with-included-gettext \
41 --with-ncurses \
42 --without-sco \
43 --without-sunos-curses \
44 --without-osf1-curses \
45 --without-vcurses \
46 --without-gpm-mouse \
47 --without-hsc \
48 --without-termnet \
49 --without-debug \
50 --without-efence \
51 --without-terminfo \
52 --without-termcap \
53 --without-slang \
54 --without-vfs \
55 --without-netrc \
56 --without-ext2undel \
57 --without-catgets \
58 --without-x \
59 --without-tk \
60 --without-xview \
61 --without-subshell \
62 --disable-glibtest \
63 --with-glib12 \
64 --with-glib-prefix="$(STAGING_DIR)/usr" \
65
66
67 AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*))
68
69 define Build/Prepare
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; \
74 done
75 endef
76
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
81 endef
82
83 $(eval $(call BuildPackage,mc))