source: freewrt/package/nano/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was ea27d9a, checked in by Ralph Paßgang <tha@…>, 19 years ago
  • fixed Makefile for rsync,bind & nano (d'oh)... this time it's all tested :)
  • disabled shorewall until the Makefile is "downgraded" to freewrt 1.0 style

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1864 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= nano
10PKG_VERSION:= 2.0.3
11PKG_RELEASE:= 1
12PKG_MD5SUM:= b8e2c1450b36d21f9a82509da3e4d9b1
13
14PKG_SOURCE_URL:= http://www.nano-editor.org/dist/v2.0
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,NANO,nano,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include " \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ac_cv_header_regex_h=no \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
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 --enable-nanorc \
55 );
56 touch $@
57
58$(WRKBUILD)/.built:
59 rm -rf $(WRKINST)
60 mkdir -p $(WRKINST)
61 $(MAKE) -C $(WRKBUILD) \
62 DESTDIR="$(WRKINST)" \
63 all install
64 touch $@
65
66$(IPKG_NANO):
67 install -d -m0755 $(IDIR_NANO)/usr/bin
68 $(CP) $(WRKINST)/usr/bin/nano $(IDIR_NANO)/usr/bin/
69 $(RSTRIP) $(IDIR_NANO)
70 install -d -m0755 ${IDIR_NANO}/etc
71 $(CP) ./files/nanorc ${IDIR_NANO}/etc/
72 $(IPKG_BUILD) $(IDIR_NANO) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.