nuke $Id$ in /packages as well
[openwrt.org/packages.git] / utils / mg / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=mg
PKG_VERSION:=20070529
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.xs4all.nl/~hanb/software/mg
PKG_MD5SUM:=e1eaef5a61143c12a66e23deaa369e76
 
include $(INCLUDE_DIR)/package.mk
 
define Package/mg
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+libncurses
  TITLE:=microscopic GNU Emacs-style editor
  URL:=http://www.xs4all.nl/~hanb/software/mg/
endef
        
define Package/mg/description
        This program is intended to be a small, fast, and portable
        editor for people who can't (or don't want to) run real
        Emacs for one reason or another.  It is compatible with GNU
        because there shouldn't be any reason to learn more than
        one Emacs flavor.
endef
 
define Build/Configure
        (cd $(PKG_BUILD_DIR); \
                $(TARGET_CONFIGURE_OPTS) \
                ./configure \
        );
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                LDFLAGS="$(TARGET_LDFLAGS) -lncurses" \
                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
                CC=$(TARGET_CC)
endef
 
define Package/mg/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
endef
 
$(eval $(call BuildPackage,mg))
 
comments