OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
Date: | 2011-08-20 11:50:04 (12 years 7 months ago) |
---|---|
Author: | kyak |
Commit: | 7f56d7c672659e53b26b0af2d352304c6c2aa09b |
Message: | mc: override the upstream version to include wide char support See this bug report: https://dev.openwrt.org/ticket/9786 |
Files: |
mc/Makefile (1 diff) |
Change Details
mc/Makefile | ||
---|---|---|
1 | # | |
2 | # Copyright (C) 2006-2011 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.7.5.2 | |
12 | PKG_RELEASE:=4 | |
13 | ||
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |
15 | PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/ | |
16 | PKG_MD5SUM:=9fdfe7c0fcff362436eb35fcd1adf0fd | |
17 | ||
18 | PKG_BUILD_PARALLEL:=1 | |
19 | ||
20 | include $(INCLUDE_DIR)/package.mk | |
21 | include $(INCLUDE_DIR)/nls.mk | |
22 | ||
23 | define Package/mc | |
24 | SECTION:=utils | |
25 | CATEGORY:=Utilities | |
26 | DEPENDS:=+glib2 +PACKAGE_libncursesw:libncursesw +PACKAGE_libncursesw:libncurses +libiconv | |
27 | TITLE:=midnight commander - a powerful file manager | |
28 | URL:=http://www.midnight-commander.org/ | |
29 | SUBMENU:=filemanager | |
30 | MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net> | |
31 | endef | |
32 | ||
33 | define Package/mc/description | |
34 | GNU Midnight Commander is a visual file manager, licensed under GNU General | |
35 | Public License and therefore qualifies as Free Software. It's a feature rich | |
36 | full-screen text mode application that allows you to copy, move and delete | |
37 | files and whole directory trees, search for files and run commands in the | |
38 | subshell. | |
39 | endef | |
40 | ||
41 | CONFIGURE_ARGS += \ | |
42 | --enable-utf8 \ | |
43 | --disable-vfs \ | |
44 | $(if $(CONFIG_PACKAGE_libncursesw),--with-screen=ncursesw,--with-screen=ncurses) \ | |
45 | --without-edit \ | |
46 | --without-gpm-mouse \ | |
47 | --without-subshell \ | |
48 | --without-x | |
49 | ||
50 | AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*)) | |
51 | ||
52 | define Build/Prepare | |
53 | $(Build/Prepare/Default) | |
54 | for script in config.guess config.sub depcomp install-sh missing; do \ | |
55 | rm -f $(PKG_BUILD_DIR)/config/$$$$script; \ | |
56 | ln -s $(AM_HOST)/$$$$script $(PKG_BUILD_DIR)/config/$$$$script; \ | |
57 | done | |
58 | endef | |
59 | ||
60 | define Package/mc/install | |
61 | $(INSTALL_DIR) $(1)/usr/bin | |
62 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin/ | |
63 | $(INSTALL_DIR) $(1)/etc/mc | |
64 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc | |
65 | $(INSTALL_DIR) $(1)/etc/mc/skins | |
66 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/skins/default.ini $(1)/etc/mc/skins | |
67 | $(INSTALL_DIR) $(1)/root/.mc | |
68 | endef | |
69 | ||
70 | define Package/mc/conffiles | |
71 | /etc/mc/mc.menu | |
72 | /etc/mc/skins/default.ini | |
73 | endef | |
74 | ||
75 | $(eval $(call BuildPackage,mc)) |