add nano
[openwrt.git] / package / nano / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=nano
4 PKG_VERSION:=1.3.8
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=20633397bf5d462255f37dfcc7cad4e7
7
8 PKG_SOURCE_URL:=http://www.ewtoo.org/~astyanax/nano/dist/v1.3 \
9 http://www.nano-editor.org/dist/v1.3
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_CAT:=zcat
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,NANO,nano,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
20 (cd $(PKG_BUILD_DIR); \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include " \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ac_cv_header_regex_h=no \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 $(DISABLE_LARGEFILE) \
45 $(DISABLE_NLS) \
46 --enable-shared \
47 --disable-static \
48 --with-gnu-ld \
49 --disable-rpath \
50 --enable-tiny \
51 --disable-glibtest \
52 --disable-utf8 \
53 --without-slang \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 all install
63 touch $@
64
65 $(IPKG_NANO):
66 install -d -m0755 $(IDIR_NANO)/usr/bin
67 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nano $(IDIR_NANO)/usr/bin/
68 $(RSTRIP) $(IDIR_NANO)
69 $(IPKG_BUILD) $(IDIR_NANO) $(PACKAGE_DIR)
70
71 mostlyclean:
72 -$(MAKE) -C $(PKG_BUILD_DIR) clean
73 rm -f $(PKG_BUILD_DIR)/.built
74
This page took 0.040134 seconds and 5 git commands to generate.