2006-08-06 10:54:09 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nano
|
2007-06-11 08:11:35 +00:00
|
|
|
PKG_VERSION:=2.0.6
|
2006-08-06 10:54:09 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-06-11 08:11:35 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.nano-editor.org/dist/v2.0
|
|
|
|
PKG_MD5SUM:=619107f0fc3c4383d668cef15aa3ca32
|
2006-08-06 10:54:09 +00:00
|
|
|
PKG_CAT:=zcat
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2006-08-06 10:54:09 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nano
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=An enhanced clone of the Pico text editor
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone \\\
|
|
|
|
of the Pico text editor..
|
2006-08-06 10:54:09 +00:00
|
|
|
URL:=http://www.nano-editor.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-tiny \
|
|
|
|
--disable-glibtest \
|
|
|
|
--disable-utf8 \
|
|
|
|
--without-slang \
|
|
|
|
, \
|
|
|
|
ac_cv_header_regex_h=no \
|
|
|
|
)
|
2006-08-06 10:54:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nano/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-08-06 10:54:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/nano $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nano))
|