2007-07-26 14:45:41 +00:00
|
|
|
#
|
2012-02-02 13:16:56 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2007-07-26 14:45:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mc
|
2011-08-30 21:02:36 +00:00
|
|
|
PKG_VERSION:=4.7.5.3
|
2012-02-02 13:16:56 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-07-26 14:45:41 +00:00
|
|
|
|
2011-08-30 21:02:36 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-10-06 02:16:30 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
|
2011-08-30 21:02:36 +00:00
|
|
|
PKG_MD5SUM:=6a67e139e0032d8a871455a80d490941
|
2011-04-26 12:26:30 +00:00
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2012-02-02 13:16:56 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2007-07-26 14:45:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-03-28 22:03:31 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-07-26 14:45:41 +00:00
|
|
|
|
|
|
|
define Package/mc
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2012-03-26 15:57:39 +00:00
|
|
|
DEPENDS:=+glib2 +libncurses $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
|
2007-07-26 14:49:52 +00:00
|
|
|
TITLE:=midnight commander - a powerful file manager
|
2009-10-06 02:16:30 +00:00
|
|
|
URL:=http://www.midnight-commander.org/
|
2007-10-18 19:13:05 +00:00
|
|
|
SUBMENU:=filemanager
|
2011-04-26 12:26:30 +00:00
|
|
|
MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
|
2011-08-30 21:02:36 +00:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mc/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
2007-07-26 14:45:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/mc/description
|
2011-04-26 12:26:30 +00:00
|
|
|
GNU Midnight Commander is a visual file manager, licensed under GNU General
|
|
|
|
Public License and therefore qualifies as Free Software. It's a feature rich
|
|
|
|
full-screen text mode application that allows you to copy, move and delete
|
|
|
|
files and whole directory trees, search for files and run commands in the
|
|
|
|
subshell.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-07-26 14:45:41 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2011-04-26 12:26:30 +00:00
|
|
|
--enable-utf8 \
|
2011-08-30 21:02:36 +00:00
|
|
|
--disable-doxygen-doc \
|
2011-04-26 12:26:30 +00:00
|
|
|
--with-screen=ncurses \
|
2007-07-26 14:45:41 +00:00
|
|
|
--without-gpm-mouse \
|
2011-07-21 23:26:27 +00:00
|
|
|
--without-x \
|
|
|
|
ac_cv_search_addwstr=no
|
2010-02-19 03:06:29 +00:00
|
|
|
|
2011-08-30 21:02:36 +00:00
|
|
|
ifeq ($(CONFIG_MC_DIFF_VIEWER),n)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-diff-viewer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_EDITOR),n)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-edit
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_SUBSHELL),n)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-subshell
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_DISABLE_VFS),y)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-vfs
|
|
|
|
endif
|
|
|
|
|
2007-07-26 14:45:41 +00:00
|
|
|
define Package/mc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2011-08-30 21:02:36 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
|
2011-04-26 12:26:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/mc
|
2011-08-30 21:02:36 +00:00
|
|
|
ifeq ($(CONFIG_MC_DIFF_VIEWER),y)
|
|
|
|
ln -sf mc $(1)/usr/bin/mcdiff
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MC_EDITOR),y)
|
|
|
|
ln -sf mc $(1)/usr/bin/mcedit
|
|
|
|
endif
|
2011-04-26 12:26:30 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
|
|
|
|
$(INSTALL_DIR) $(1)/etc/mc/skins
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
|
2012-02-02 13:16:56 +00:00
|
|
|
$(INSTALL_DIR) $(1)/root/.mc/cedit/Syntax
|
2011-04-26 12:26:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mc/conffiles
|
|
|
|
/etc/mc/mc.menu
|
|
|
|
/etc/mc/skins/default.ini
|
2007-07-26 14:45:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mc))
|