2ba468ad85916ea61c4d092b3a68b5b5f0c30b3b
[packages.git] / utils / mc / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mc
12 PKG_VERSION:=4.6.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/
17 PKG_MD5SUM:=18b20db6e40480a53bac2870c56fc3c4
18
19 PKG_BUILD_DEPENDS:=glib1 libncurses
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/mc
24   SECTION:=utils
25   CATEGORY:=Utilities
26   DEPENDS:=+glib1 +libncurses
27   TITLE:=midnight commander - a powerful file manager
28   URL:=http://www.ibiblio.org/mc/
29   SUBMENU:=filemanager
30 endef
31
32 define Package/mc/description
33         GNU Midnight Commander is a text-mode full-screen file manager. 
34         It uses a two panel interface and a subshell for command execution. 
35         It includes an internal editor with syntax highlighting and an 
36         internal viewer with support for binary files. Also included is 
37         Virtual Filesystem (VFS), that allows files on remote systems 
38         (e.g. FTP, SSH, SMB servers) and files inside archives to be 
39         manipulated like real files.
40 endef
41
42 CONFIGURE_ARGS += \
43         --prefix=/usr \
44         --disable-nls \
45         --with-included-gettext \
46         --with-ncurses \
47         --without-sco \
48         --without-sunos-curses \
49         --without-osf1-curses \
50         --without-vcurses \
51         --without-gpm-mouse \
52         --without-hsc \
53         --without-termnet \
54         --without-debug \
55         --without-efence \
56         --without-terminfo \
57         --without-termcap \
58         --without-slang \
59         --without-vfs \
60         --without-netrc \
61         --without-ext2undel \
62         --without-catgets \
63         --without-x \
64         --without-tk \
65         --without-xview \
66         --without-subshell \
67         --disable-glibtest \
68         --with-glib12 \
69         --with-glib-prefix="$(STAGING_DIR)/usr" \
70         , \
71         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
72
73 define Package/mc/install
74         $(INSTALL_DIR) $(1)/usr/bin
75         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
76         ln -sf mc $(1)/usr/bin/mcedit
77 endef
78
79 $(eval $(call BuildPackage,mc))