libmicrohttpd: build parallel
[feed/packages.git] / utils / mc / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mc
11 PKG_VERSION:=4.8.15
12 PKG_RELEASE:=2
13 PKG_MAINTAINER:=Dirk Brenken <dirk@brenken.org>
14 PKG_LICENSE:=GPL-3.0+
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=http://ftp.midnight-commander.org/
18 PKG_MD5SUM:=7c1935433866fdf59a3c2d9b7dae81ad
19 PKG_BUILD_PARALLEL:=1
20 PKG_FIXUP:=autoreconf
21
22 PKG_CONFIG_DEPENDS := \
23 CONFIG_PACKAGE_MC \
24 CONFIG_MC_DIFFVIEWER \
25 CONFIG_MC_EDITOR \
26 CONFIG_MC_SUBSHELL \
27 CONFIG_MC_LARGEFILE \
28 CONFIG_MC_BACKGROUND \
29 CONFIG_MC_CHARSET \
30 CONFIG_MC_VFS
31
32 include $(INCLUDE_DIR)/package.mk
33 include $(INCLUDE_DIR)/nls.mk
34
35 define Package/$(PKG_NAME)
36 SECTION:=utils
37 CATEGORY:=Utilities
38 DEPENDS:=+glib2 +libncurses +libmount +MC_VFS:libssh2 $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
39 TITLE:=Midnight Commander - a powerful visual file manager
40 URL:=http://www.midnight-commander.org/
41 MENU:=1
42 endef
43
44 define Package/$(PKG_NAME)/config
45 source "$(SOURCE)/Config.in"
46 endef
47
48 define Package/$(PKG_NAME)/description
49 GNU Midnight Commander is a visual file manager,
50 licensed under GNU General Public License and therefore qualifies as Free Software.
51 It's a feature rich full-screen text mode application that allows you to copy,
52 move and delete files and whole directory trees, search for files
53 and run commands in the subshell. Internal viewer and editor are included.
54
55 endef
56
57 CONFIGURE_ARGS += \
58 --disable-doxygen-doc \
59 --with-homedir=/etc/mc \
60 --with-included-gettext \
61 --with-screen=ncurses \
62 --without-gpm-mouse \
63 --without-x \
64
65 CONFIGURE_VARS += \
66 ac_cv_search_addwstr=no \
67
68 ifeq ($(CONFIG_MC_DIFFVIEWER),)
69 CONFIGURE_ARGS += \
70 --without-diff-viewer
71 endif
72
73 ifeq ($(CONFIG_MC_EDITOR),)
74 CONFIGURE_ARGS += \
75 --without-internal-edit
76 endif
77
78 ifeq ($(CONFIG_MC_SUBSHELL),)
79 CONFIGURE_ARGS += \
80 --without-subshell
81 endif
82
83 ifeq ($(CONFIG_MC_LARGEFILE),)
84 CONFIGURE_ARGS += \
85 --disable-largefile
86 endif
87
88 ifeq ($(CONFIG_MC_BACKGROUND),)
89 CONFIGURE_ARGS += \
90 --disable-background
91 endif
92
93 ifeq ($(CONFIG_MC_CHARSET),)
94 CONFIGURE_ARGS += \
95 --disable-charset
96 endif
97
98 ifeq ($(CONFIG_MC_VFS),)
99 CONFIGURE_ARGS += \
100 --disable-vfs
101 endif
102
103 define Package/$(PKG_NAME)/install
104 $(INSTALL_DIR) $(1)/usr/bin
105 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
106 $(INSTALL_DIR) $(1)/etc/mc
107 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.charsets $(1)/etc/mc
108 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.keymap $(1)/etc/mc
109 $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.ext $(1)/etc/mc
110 ifeq ($(CONFIG_MC_DIFFVIEWER),y)
111 ln -sf mc $(1)/usr/bin/mcdiff
112 endif
113 ifeq ($(CONFIG_MC_EDITOR),y)
114 ln -sf mc $(1)/usr/bin/mcedit
115 endif
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
120 endef
121
122 define Package/$(PKG_NAME)/conffiles
123 /etc/mc/mc.menu
124 /etc/mc/skins/default.ini
125 endef
126
127 $(eval $(call BuildPackage,$(PKG_NAME)))