2014-11-06 05:15:02 +08: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
|
2023-11-26 02:52:50 +08:00
|
|
|
PKG_VERSION:=4.8.30
|
|
|
|
PKG_RELEASE:=1
|
2021-03-02 00:16:30 +08:00
|
|
|
PKG_MAINTAINER:=
|
2019-09-02 21:15:08 +08:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2019-09-12 20:13:21 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:midnight_commander:midnight_commander
|
2014-11-06 05:15:02 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.midnight-commander.org/
|
2023-11-26 02:52:50 +08:00
|
|
|
PKG_HASH:=5ebc3cb2144b970c5149fda556c4ad50b78780494696cdf2d14a53204c95c7df
|
2014-11-06 05:15:02 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2016-05-19 20:03:14 +08:00
|
|
|
PKG_FIXUP:=autoreconf gettext-version
|
2018-08-13 03:00:25 +08:00
|
|
|
PKG_BUILD_DEPENDS:=MC_VFS:libtirpc
|
2014-11-06 05:15:02 +08:00
|
|
|
|
2014-11-19 02:33:55 +08:00
|
|
|
PKG_CONFIG_DEPENDS := \
|
|
|
|
CONFIG_PACKAGE_MC \
|
|
|
|
CONFIG_MC_DIFFVIEWER \
|
|
|
|
CONFIG_MC_EDITOR \
|
|
|
|
CONFIG_MC_SUBSHELL \
|
|
|
|
CONFIG_MC_LARGEFILE \
|
|
|
|
CONFIG_MC_BACKGROUND \
|
|
|
|
CONFIG_MC_CHARSET \
|
|
|
|
CONFIG_MC_VFS
|
|
|
|
|
2014-11-06 05:15:02 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
define Package/mc
|
2021-08-17 22:12:58 +08:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+glib2 +libncurses +libmount +MC_VFS:libssh2 $(ICONV_DEPENDS)
|
|
|
|
TITLE:=Midnight Commander - a powerful visual file manager
|
|
|
|
URL:=https://www.midnight-commander.org/
|
|
|
|
MENU:=1
|
2014-11-06 05:15:02 +08:00
|
|
|
endef
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
define Package/mc/config
|
2014-11-06 05:15:02 +08:00
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
define Package/mc/description
|
2016-05-13 14:21:13 +08:00
|
|
|
GNU Midnight Commander is a visual file manager.
|
2015-11-15 20:44:25 +08:00
|
|
|
It's a feature rich full-screen text mode application that allows you to copy,
|
2016-05-13 14:21:13 +08:00
|
|
|
move and delete files and whole directory trees, search for files and run commands in the subshell.
|
|
|
|
Internal viewer and editor are included as well.
|
2015-11-15 20:44:25 +08:00
|
|
|
|
2014-11-06 05:15:02 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2017-03-07 01:40:16 +08:00
|
|
|
--enable-silent-rules \
|
|
|
|
--disable-tests \
|
2014-11-06 05:15:02 +08:00
|
|
|
--disable-doxygen-doc \
|
|
|
|
--with-screen=ncurses \
|
|
|
|
--without-x \
|
|
|
|
|
2014-11-16 02:30:39 +08:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_search_addwstr=no \
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_DIFFVIEWER),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --without-diff-viewer
|
2014-11-06 05:15:02 +08:00
|
|
|
endif
|
|
|
|
|
2014-11-16 02:30:39 +08:00
|
|
|
ifeq ($(CONFIG_MC_EDITOR),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --without-internal-edit
|
2014-11-06 05:15:02 +08:00
|
|
|
endif
|
|
|
|
|
2014-11-16 02:30:39 +08:00
|
|
|
ifeq ($(CONFIG_MC_SUBSHELL),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --without-subshell
|
2014-11-06 05:15:02 +08:00
|
|
|
endif
|
|
|
|
|
2014-11-16 02:30:39 +08:00
|
|
|
ifeq ($(CONFIG_MC_LARGEFILE),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --disable-largefile
|
2014-11-16 02:30:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_BACKGROUND),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --disable-background
|
2014-11-16 02:30:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_CHARSET),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --disable-charset
|
2014-11-16 02:30:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MC_VFS),)
|
2018-03-23 21:23:35 +08:00
|
|
|
CONFIGURE_ARGS += --disable-vfs
|
2018-08-13 03:00:25 +08:00
|
|
|
else
|
|
|
|
TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/tirpc
|
2014-11-06 05:15:02 +08:00
|
|
|
endif
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
define Package/mc/install
|
2014-11-06 05:15:02 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/mc
|
2015-11-15 20:44:25 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.charsets $(1)/etc/mc
|
2023-11-26 02:52:50 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.ext.ini $(1)/etc/mc
|
2019-06-24 21:47:06 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.default.keymap $(1)/etc/mc/mc.keymap
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/filehighlight.ini $(1)/etc/mc
|
2016-10-03 14:41:52 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/mc/help
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/hlp/mc.hlp $(1)/usr/share/mc/help
|
2018-03-23 21:23:35 +08: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
|
2021-08-20 16:06:42 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/mc/syntax
|
|
|
|
touch $(1)/usr/share/mc/syntax/Syntax
|
2014-11-16 02:30:39 +08:00
|
|
|
ifeq ($(CONFIG_MC_DIFFVIEWER),y)
|
2014-11-06 05:15:02 +08:00
|
|
|
ln -sf mc $(1)/usr/bin/mcdiff
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MC_EDITOR),y)
|
|
|
|
ln -sf mc $(1)/usr/bin/mcedit
|
|
|
|
endif
|
2018-03-23 21:23:35 +08:00
|
|
|
ifeq ($(CONFIG_MC_VFS),y)
|
2019-06-24 21:47:06 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/vfs/sfs/sfs.ini $(1)/etc/mc
|
2018-03-23 21:23:35 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/mc/extfs.d
|
|
|
|
endif
|
2014-11-06 05:15:02 +08:00
|
|
|
endef
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
define Package/mc/conffiles
|
2014-11-06 05:15:02 +08:00
|
|
|
/etc/mc/mc.menu
|
|
|
|
/etc/mc/skins/default.ini
|
|
|
|
endef
|
|
|
|
|
2021-08-17 22:12:58 +08:00
|
|
|
define Package/mc-skins
|
|
|
|
TITLE:=Midnight Commander - a powerful visual file manager - skins
|
|
|
|
URL:=https://www.midnight-commander.org/
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+mc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mc-skins/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/mc/skins
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/misc/skins/*.ini $(1)/etc/mc/skins/
|
|
|
|
$(RM) $(1)/etc/mc/skins/default.ini
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mc-skins/conffiles
|
|
|
|
/etc/mc/skins/
|
|
|
|
endef
|
|
|
|
|
2017-03-07 20:41:01 +08:00
|
|
|
$(eval $(call BuildPackage,mc))
|
2021-08-17 22:12:58 +08:00
|
|
|
$(eval $(call BuildPackage,mc-skins))
|