2009-07-12 12:14:42 +00:00
|
|
|
#
|
2011-06-02 14:24:21 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2008-11-09 17:31:25 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mg
|
2011-06-02 14:24:21 +00:00
|
|
|
PKG_VERSION:=20110120
|
2008-11-09 17:31:25 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-06-02 14:24:21 +00:00
|
|
|
PKG_SOURCE_URL:=http://homepage.boetes.org/software/mg
|
|
|
|
PKG_MD5SUM:=f2fa8016a491aa2a9d4c5698c593f31b
|
2008-11-09 17:31:25 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mg
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=microscopic GNU Emacs-style editor
|
2011-06-02 14:24:21 +00:00
|
|
|
URL:=http://homepage.boetes.org/software/mg/
|
2009-07-12 12:14:42 +00:00
|
|
|
SUBMENU:=Editors
|
2008-11-09 17:31:25 +00:00
|
|
|
endef
|
2009-07-12 12:14:42 +00:00
|
|
|
|
2008-11-09 17:31:25 +00:00
|
|
|
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" \
|
2009-04-29 12:56:17 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
2009-05-25 14:37:29 +00:00
|
|
|
CC="$(TARGET_CC)"
|
2008-11-09 17:31:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mg/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2009-07-12 12:14:42 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
2008-11-09 17:31:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mg))
|