Add mc package
[openwrt/svn-archive/archive.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:=1
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 4.1.X-MP
28 URL:=http://www.ibiblio.org/mc/
29 endef
30
31 CONFIGURE_ARGS += \
32 --prefix=/usr \
33 --disable-nls \
34 --with-included-gettext \
35 --with-ncurses \
36 --without-sco \
37 --without-sunos-curses \
38 --without-osf1-curses \
39 --without-vcurses \
40 --without-gpm-mouse \
41 --without-hsc \
42 --without-termnet \
43 --without-debug \
44 --without-efence \
45 --without-terminfo \
46 --without-termcap \
47 --without-slang \
48 --without-vfs \
49 --without-netrc \
50 --without-ext2undel \
51 --without-catgets \
52 --without-x \
53 --without-tk \
54 --without-xview \
55 --without-subshell \
56 --disable-glibtest \
57 --with-glib12 \
58 --with-glib-prefix="$(STAGING_DIR)/usr" \
59 , \
60 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
61
62 define Package/mc/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
65 ln -sf mc $(1)/usr/bin/mcedit
66 endef
67
68 $(eval $(call BuildPackage,mc))