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