remove PKG_CAT from packages
[openwrt/svn-archive/archive.git] / utils / nano / Makefile
1 #
2 # Copyright (C) 2006 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:=nano
12 PKG_VERSION:=2.0.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.nano-editor.org/dist/v2.0
17 PKG_MD5SUM:=619107f0fc3c4383d668cef15aa3ca32
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/nano
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libncurses
28 TITLE:=An enhanced clone of the Pico text editor
29 URL:=http://www.nano-editor.org/
30 endef
31
32 define Package/nano/description
33 GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone
34 of the Pico text editor..
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-tiny \
40 --disable-glibtest \
41 --disable-utf8 \
42 --without-slang \
43 , \
44 ac_cv_header_regex_h=no \
45 )
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/nano/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nano $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,nano))