DESCRIPTION:= is obselete
[packages.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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nano
26   SECTION:=utils
27   CATEGORY:=Utilities
28   DEPENDS:=+libncurses
29   TITLE:=An enhanced clone of the Pico text editor
30   URL:=http://www.nano-editor.org/
31 endef
32
33 define Package/nano/description
34         GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone 
35         of the Pico text editor..
36 endef
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --enable-tiny \
41                 --disable-glibtest \
42                 --disable-utf8 \
43                 --without-slang \
44                 , \
45                 ac_cv_header_regex_h=no \
46         )
47 endef
48
49 define Build/Compile    
50         $(MAKE) -C $(PKG_BUILD_DIR) \
51                 DESTDIR="$(PKG_INSTALL_DIR)" \
52                 all install
53 endef
54
55 define Package/nano/install     
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(CP) $(PKG_INSTALL_DIR)/usr/bin/nano $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,nano))