2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Brenken
<dev@brenken.org
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
17 PKG_SOURCE_URL
:=http
://ftp.midnight-commander.org
/
18 PKG_MD5SUM
:=f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece
20 PKG_FIXUP
:=autoreconf gettext-version
22 PKG_CONFIG_DEPENDS
:= \
24 CONFIG_MC_DIFFVIEWER \
28 CONFIG_MC_BACKGROUND \
32 include $(INCLUDE_DIR
)/package.mk
33 include $(INCLUDE_DIR
)/nls.mk
35 define Package
/$(PKG_NAME
)
38 DEPENDS
:=+glib2
+libncurses
+libmount
+MC_VFS
:libssh2
$(LIBRPC_DEPENDS
) $(ICONV_DEPENDS
)
39 TITLE
:=Midnight Commander
- a powerful visual file manager
40 URL
:=https
://www.midnight-commander.org
/
44 define Package
/$(PKG_NAME
)/config
45 source
"$(SOURCE)/Config.in"
48 define Package
/$(PKG_NAME
)/description
49 GNU Midnight Commander is a visual file manager.
50 It
's a feature rich full-screen text mode application that allows you to copy,
51 move and delete files and whole directory trees, search for files and run commands in the subshell.
52 Internal viewer and editor are included as well.
57 --disable-doxygen-doc \
58 --with-homedir=/etc/mc \
59 --with-screen=ncurses \
64 ac_cv_search_addwstr=no \
66 ifeq ($(CONFIG_MC_DIFFVIEWER),)
71 ifeq ($(CONFIG_MC_EDITOR),)
73 --without-internal-edit
76 ifeq ($(CONFIG_MC_SUBSHELL),)
81 ifeq ($(CONFIG_MC_LARGEFILE),)
86 ifeq ($(CONFIG_MC_BACKGROUND),)
91 ifeq ($(CONFIG_MC_CHARSET),)
96 ifeq ($(CONFIG_MC_VFS),)
101 define Package/$(PKG_NAME)/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
104 $(INSTALL_DIR) $(1)/etc/mc
105 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.charsets $(1)/etc/mc
106 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.default.keymap $(1)/etc/mc
107 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.ext $(1)/etc/mc
108 $(INSTALL_DIR) $(1)/usr/share/mc/help
109 $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/hlp/mc.hlp $(1)/usr/share/mc/help
110 ifeq ($(CONFIG_MC_DIFFVIEWER),y)
111 ln -sf mc $(1)/usr/bin/mcdiff
113 ifeq ($(CONFIG_MC_EDITOR),y)
114 ln -sf mc $(1)/usr/bin/mcedit
116 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
117 $(INSTALL_DIR) $(1)/etc/mc/skins
118 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
119 $(INSTALL_DIR) $(1)/etc/mc/mcedit/Syntax
122 define Package/$(PKG_NAME)/conffiles
124 /etc/mc/skins/default.ini
127 $(eval $(call BuildPackage,$(PKG_NAME)))