source: packages/utils/mg/Makefile @ 27093

Last change on this file since 27093 was 27093, checked in by florian, 5 years ago

[package] mg: update to 20110120

patch from Justus Winter

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2008-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:=mg
11PKG_VERSION:=20110120
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://homepage.boetes.org/software/mg
16PKG_MD5SUM:=f2fa8016a491aa2a9d4c5698c593f31b
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/mg
21  SECTION:=utils
22  CATEGORY:=Utilities
23  DEPENDS:=+libncurses
24  TITLE:=microscopic GNU Emacs-style editor
25  URL:=http://homepage.boetes.org/software/mg/
26  SUBMENU:=Editors
27endef
28
29define Package/mg/description
30        This program is intended to be a small, fast, and portable
31        editor for people who can't (or don't want to) run real
32        Emacs for one reason or another.  It is compatible with GNU
33        because there shouldn't be any reason to learn more than
34        one Emacs flavor.
35endef
36
37define Build/Configure
38        (cd $(PKG_BUILD_DIR); \
39                $(TARGET_CONFIGURE_OPTS) \
40                ./configure \
41        );
42endef
43
44define Build/Compile
45        $(MAKE) -C $(PKG_BUILD_DIR) \
46                LDFLAGS="$(TARGET_LDFLAGS) -lncurses" \
47                CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
48                CC="$(TARGET_CC)"
49endef
50
51define Package/mg/install
52        $(INSTALL_DIR) $(1)/usr/bin
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
54endef
55
56$(eval $(call BuildPackage,mg))
Note: See TracBrowser for help on using the repository browser.