bash: moved to github
[packages.git] / utils / mc / Makefile
1 #
2 # Copyright (C) 2006-2013 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.8.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
16 PKG_MD5SUM:=eb4bdc23abd4fdfa14911d53d65c8186
17
18 PKG_BUILD_PARALLEL:=1
19 PKG_FIXUP:=autoreconf
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/mc
25   SECTION:=utils
26   CATEGORY:=Utilities
27   DEPENDS:=+glib2 +libncurses $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
28   TITLE:=midnight commander - a powerful file manager
29   URL:=http://www.midnight-commander.org/
30   SUBMENU:=filemanager
31   MENU:=1
32 endef
33
34 define Package/mc/config
35         source "$(SOURCE)/Config.in"
36 endef
37
38 define Package/mc/description
39  GNU Midnight Commander is a visual file manager, licensed under GNU General
40  Public License and therefore qualifies as Free Software. It's a feature rich
41  full-screen text mode application that allows you to copy, move and delete
42  files and whole directory trees, search for files and run commands in the
43  subshell.
44 endef
45
46 CONFIGURE_ARGS += \
47         --enable-utf8 \
48         --disable-doxygen-doc \
49         --disable-vfs-sftp \
50         --with-screen=ncurses \
51         --without-gpm-mouse \
52         --without-x \
53         ac_cv_search_addwstr=no
54
55 ifeq ($(CONFIG_MC_DIFF_VIEWER),n)
56 CONFIGURE_ARGS += \
57         --without-diff-viewer
58 endif
59
60 ifeq ($(CONFIG_MC_EDITOR),n)
61 CONFIGURE_ARGS += \
62         --without-edit
63 endif
64
65 ifeq ($(CONFIG_MC_SUBSHELL),n)
66 CONFIGURE_ARGS += \
67         --without-subshell
68 endif
69
70 ifeq ($(CONFIG_MC_DISABLE_VFS),y)
71 CONFIGURE_ARGS += \
72         --without-vfs
73 endif
74
75 define Package/mc/install
76         $(INSTALL_DIR) $(1)/usr/bin
77         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
78         $(INSTALL_DIR) $(1)/etc/mc
79 ifeq ($(CONFIG_MC_DIFF_VIEWER),y)
80         ln -sf mc $(1)/usr/bin/mcdiff
81 endif
82 ifeq ($(CONFIG_MC_EDITOR),y)
83         ln -sf mc $(1)/usr/bin/mcedit
84 endif
85         $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
86         $(INSTALL_DIR) $(1)/etc/mc/skins
87         $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
88         $(INSTALL_DIR) $(1)/root/.mc/cedit/Syntax
89 endef
90
91 define Package/mc/conffiles
92 /etc/mc/mc.menu
93 /etc/mc/skins/default.ini
94 endef
95
96 $(eval $(call BuildPackage,mc))