Port nano to -ng
[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:=1.3.8
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=20633397bf5d462255f37dfcc7cad4e7
15
16 PKG_SOURCE_URL:=http://www.ewtoo.org/~astyanax/nano/dist/v1.3 \
17 http://www.nano-editor.org/dist/v1.3
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_CAT:=zcat
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 DESCRIPTION:=GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone of the Pico text editor..
31 URL:=http://www.nano-editor.org/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,--enable-shared \
36 --disable-static \
37 --with-gnu-ld \
38 --disable-rpath \
39 --enable-tiny \
40 --disable-glibtest \
41 --disable-utf8 \
42 --without-slang,ac_cv_header_regex_h=no)
43 endef
44
45 define Build/Compile
46 rm -rf $(PKG_INSTALL_DIR)
47 mkdir -p $(PKG_INSTALL_DIR)
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/nano/install
54 install -d -m0755 $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nano $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,nano))