[packages] ruby: add dependency on ruby-core to ruby-irb (closes: #5112)
[openwrt/svn-archive/archive.git] / utils / mg / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mg
12 PKG_VERSION:=20070529
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xs4all.nl/~hanb/software/mg
17 PKG_MD5SUM:=e1eaef5a61143c12a66e23deaa369e76
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mg
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libncurses
25 TITLE:=microscopic GNU Emacs-style editor
26 URL:=http://www.xs4all.nl/~hanb/software/mg/
27 endef
28
29 define 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.
35 endef
36
37 define Build/Configure
38 (cd $(PKG_BUILD_DIR); \
39 $(TARGET_CONFIGURE_OPTS) \
40 ./configure \
41 );
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 LDFLAGS="$(TARGET_LDFLAGS) -lncurses" \
47 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
48 CC=$(TARGET_CC)
49 endef
50
51 define Package/mg/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,mg))