Merge pull request #1148 from oneru/master
[feed/packages.git] / utils / nano / Makefile
1 #
2 # Copyright (C) 2007-2015 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.4.1
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-3.0+
14 PKG_LICENSE_FILES:=COPYING
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.nano-editor.org/dist/v2.4
18 PKG_MD5SUM:=1c612b478f976abf8ef926480c7a3684
19
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nano
26 SUBMENU:=Editors
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=An enhanced clone of the Pico text editor
30 URL:=http://www.nano-editor.org/
31 MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
32 DEPENDS:=+libncurses
33 endef
34
35 define Package/nano/description
36 GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone
37 of the Pico text editor.
38 endef
39
40 CONFIGURE_ARGS += \
41 --enable-tiny \
42 --disable-glibtest \
43 --disable-utf8 \
44 --without-slang \
45 --disable-color \
46
47 CONFIGURE_VARS += \
48 ac_cv_header_regex_h=no \
49
50 define Package/nano/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,nano))
56