[package] fix ccache compilation with mg (#5097)
[packages.git] / utils / mg / Makefile
1
2 # Copyright (C) 2008-2009 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:=mg
11 PKG_VERSION:=20070529
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.xs4all.nl/~hanb/software/mg
16 PKG_MD5SUM:=e1eaef5a61143c12a66e23deaa369e76
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mg
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=+libncurses
24   TITLE:=microscopic GNU Emacs-style editor
25   URL:=http://www.xs4all.nl/~hanb/software/mg/
26 endef
27         
28 define Package/mg/description
29         This program is intended to be a small, fast, and portable
30         editor for people who can't (or don't want to) run real
31         Emacs for one reason or another.  It is compatible with GNU
32         because there shouldn't be any reason to learn more than
33         one Emacs flavor.
34 endef
35
36 define Build/Configure
37         (cd $(PKG_BUILD_DIR); \
38                 $(TARGET_CONFIGURE_OPTS) \
39                 ./configure \
40         );
41 endef
42
43 define Build/Compile
44         $(MAKE) -C $(PKG_BUILD_DIR) \
45                 LDFLAGS="$(TARGET_LDFLAGS) -lncurses" \
46                 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
47                 CC="$(TARGET_CC)"
48 endef
49
50 define Package/mg/install
51         $(INSTALL_DIR) $(1)/usr/bin
52         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,mg))