2934c29f370d365f73830e057b5c2ff4930566f2
[librewrt/.git] / Makefile
1 #
2 # Copyright (C) 2007-2010 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:=nano
11 PKG_VERSION:=2.2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.nano-editor.org/dist/v2.2
16 PKG_MD5SUM:=6304308afb1f7ef4a5e93eb99206632a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nano
23   SUBMENU:=Editors
24   SECTION:=utils
25   CATEGORY:=Utilities
26   TITLE:=An enhanced clone of the Pico text editor
27   URL:=http://www.nano-editor.org/
28   MAINTAINER:=Bernhard Loos <bernhardloos@googlemail.com>
29   DEPENDS:=+libncurses
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 CONFIGURE_ARGS += \
38         --enable-tiny \
39         --disable-glibtest \
40         --disable-utf8 \
41         --without-slang \
42
43 CONFIGURE_VARS += \
44         ac_cv_header_regex_h=no \
45
46 define Package/nano/install
47         $(INSTALL_DIR) $(1)/usr/bin
48         $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,nano))