You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mc
  9. PKG_VERSION:=4.8.13
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Brenken <dibdot@gmail.com>
  12. PKG_LICENSE:=GPL-3.0+
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=http://ftp.midnight-commander.org/
  15. PKG_MD5SUM:=d967caa12765eb86e52a6a63ca202500
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/mc
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+glib2 +libncurses $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
  24. TITLE:=Midnight Commander - a powerful visual file manager
  25. URL:=http://www.midnight-commander.org/
  26. MENU:=1
  27. endef
  28. define Package/mc/config
  29. source "$(SOURCE)/Config.in"
  30. endef
  31. define Package/mc/description
  32. GNU Midnight Commander is a visual file manager,
  33. licensed under GNU General Public License and therefore qualifies as Free Software.
  34. It's a feature rich full-screen text mode application that allows you to copy,
  35. move and delete files and whole directory trees, search for files
  36. and run commands in the subshell. Internal viewer and editor are included.
  37. endef
  38. CONFIGURE_ARGS += \
  39. --enable-utf8 \
  40. --disable-doxygen-doc \
  41. --disable-vfs-sftp \
  42. --with-screen=ncurses \
  43. --without-gpm-mouse \
  44. --without-x \
  45. ac_cv_search_addwstr=no
  46. ifeq ($(CONFIG_MC_DIFF_VIEWER),n)
  47. CONFIGURE_ARGS += \
  48. --without-diff-viewer
  49. endif
  50. ifeq ($(CONFIG_MC_EDITOR),n)
  51. CONFIGURE_ARGS += \
  52. --without-edit
  53. endif
  54. ifeq ($(CONFIG_MC_SUBSHELL),n)
  55. CONFIGURE_ARGS += \
  56. --without-subshell
  57. endif
  58. ifeq ($(CONFIG_MC_DISABLE_VFS),y)
  59. CONFIGURE_ARGS += \
  60. --without-vfs
  61. endif
  62. define Package/mc/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
  65. $(INSTALL_DIR) $(1)/etc/mc
  66. ifeq ($(CONFIG_MC_DIFF_VIEWER),y)
  67. ln -sf mc $(1)/usr/bin/mcdiff
  68. endif
  69. ifeq ($(CONFIG_MC_EDITOR),y)
  70. ln -sf mc $(1)/usr/bin/mcedit
  71. endif
  72. $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc
  73. $(INSTALL_DIR) $(1)/etc/mc/skins
  74. $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins
  75. $(INSTALL_DIR) $(1)/root/.mc/cedit/Syntax
  76. endef
  77. define Package/mc/conffiles
  78. /etc/mc/mc.menu
  79. /etc/mc/skins/default.ini
  80. endef
  81. $(eval $(call BuildPackage,mc))