Browse Source

mc: fix warnings with enabled vfs support

* vfs support needs an additional ini file and another directory by
  default (/usr/lib/mc/extfs.d), backport of a turris fix.
* cleanup makefile

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 7 years ago
parent
commit
7edf9931b7
1 changed files with 16 additions and 21 deletions
  1. +16
    -21
      utils/mc/Makefile

+ 16
- 21
utils/mc/Makefile View File

@ -1,6 +1,4 @@
# #
# Copyright (C) 2006-2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
@ -9,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mc PKG_NAME:=mc
PKG_VERSION:=4.8.20 PKG_VERSION:=4.8.20
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
PKG_LICENSE:=GPL-3.0+ PKG_LICENSE:=GPL-3.0+
@ -66,38 +64,31 @@ CONFIGURE_VARS += \
ac_cv_search_addwstr=no \ ac_cv_search_addwstr=no \
ifeq ($(CONFIG_MC_DIFFVIEWER),) ifeq ($(CONFIG_MC_DIFFVIEWER),)
CONFIGURE_ARGS += \
--without-diff-viewer
CONFIGURE_ARGS += --without-diff-viewer
endif endif
ifeq ($(CONFIG_MC_EDITOR),) ifeq ($(CONFIG_MC_EDITOR),)
CONFIGURE_ARGS += \
--without-internal-edit
CONFIGURE_ARGS += --without-internal-edit
endif endif
ifeq ($(CONFIG_MC_SUBSHELL),) ifeq ($(CONFIG_MC_SUBSHELL),)
CONFIGURE_ARGS += \
--without-subshell
CONFIGURE_ARGS += --without-subshell
endif endif
ifeq ($(CONFIG_MC_LARGEFILE),) ifeq ($(CONFIG_MC_LARGEFILE),)
CONFIGURE_ARGS += \
--disable-largefile
CONFIGURE_ARGS += --disable-largefile
endif endif
ifeq ($(CONFIG_MC_BACKGROUND),) ifeq ($(CONFIG_MC_BACKGROUND),)
CONFIGURE_ARGS += \
--disable-background
CONFIGURE_ARGS += --disable-background
endif endif
ifeq ($(CONFIG_MC_CHARSET),) ifeq ($(CONFIG_MC_CHARSET),)
CONFIGURE_ARGS += \
--disable-charset
CONFIGURE_ARGS += --disable-charset
endif endif
ifeq ($(CONFIG_MC_VFS),) ifeq ($(CONFIG_MC_VFS),)
CONFIGURE_ARGS += \
--disable-vfs
CONFIGURE_ARGS += --disable-vfs
endif endif
define Package/mc/install define Package/mc/install
@ -109,16 +100,20 @@ define Package/mc/install
$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.ext $(1)/etc/mc $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.ext $(1)/etc/mc
$(INSTALL_DIR) $(1)/usr/share/mc/help $(INSTALL_DIR) $(1)/usr/share/mc/help
$(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/hlp/mc.hlp $(1)/usr/share/mc/help $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/hlp/mc.hlp $(1)/usr/share/mc/help
$(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
$(INSTALL_DIR) $(1)/etc/mc/mcedit/Syntax
ifeq ($(CONFIG_MC_DIFFVIEWER),y) ifeq ($(CONFIG_MC_DIFFVIEWER),y)
ln -sf mc $(1)/usr/bin/mcdiff ln -sf mc $(1)/usr/bin/mcdiff
endif endif
ifeq ($(CONFIG_MC_EDITOR),y) ifeq ($(CONFIG_MC_EDITOR),y)
ln -sf mc $(1)/usr/bin/mcedit ln -sf mc $(1)/usr/bin/mcedit
endif endif
$(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
$(INSTALL_DIR) $(1)/etc/mc/mcedit/Syntax
ifeq ($(CONFIG_MC_VFS),y)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/vfs/extfs/helpers/sfs.ini $(1)/etc/mc
$(INSTALL_DIR) $(1)/usr/lib/mc/extfs.d
endif
endef endef
define Package/mc/conffiles define Package/mc/conffiles


Loading…
Cancel
Save