Root/mc/Makefile

Source at commit 1b3135c created 12 years 5 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mc
11PKG_VERSION:=4.7.5.2
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/
16PKG_MD5SUM:=9fdfe7c0fcff362436eb35fcd1adf0fd
17
18PKG_BUILD_PARALLEL:=1
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/nls.mk
22
23define 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>
31endef
32
33define 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.
39endef
40
41CONFIGURE_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
50AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*))
51
52define 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
58endef
59
60define 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
68endef
69
70define Package/mc/conffiles
71/etc/mc/mc.menu
72/etc/mc/skins/default.ini
73endef
74
75$(eval $(call BuildPackage,mc))
76

Archive Download this file



interactive