source: freewrt/package/chillispot/Makefile@ 2400aa1

freewrt_2_0
Last change on this file since 2400aa1 was 65d016f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

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

  • Property mode set to 100644
File size: 2.1 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:= chillispot
10PKG_VERSION:= 1.0
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 997827a9302a85920cfbc1334092ac0c
13PKG_INIT:= 70
14
15PKG_SOURCE_URL:= http://www.chillispot.org/download
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,CHILLISPOT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 ac_cv_func_malloc_0_nonnull=yes \
29 ac_cv_func_memcmp_working=yes \
30 ac_cv_func_setvbuf_reversed=no \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 --disable-nls \
50 --enable-shared \
51 --disable-static \
52 --with-gnu-ld \
53 );
54 touch $@
55
56$(WRKBUILD)/.built:
57 rm -rf $(WRKINST)
58 mkdir -p $(WRKINST)
59 $(MAKE) -C $(WRKBUILD) \
60 $(TARGET_CONFIGURE_OPTS) \
61 DESTDIR="$(WRKINST)" \
62 all install
63 touch $@
64
65$(IPKG_CHILLISPOT):
66 install -m0755 -d $(IDIR_CHILLISPOT)/etc/init.d
67 install -m0755 ./files/$(PKG_NAME).init \
68 $(IDIR_CHILLISPOT)/etc/init.d/S$(PKG_INIT)chilli
69 install -m0755 -d $(IDIR_CHILLISPOT)/etc
70 install -m0644 $(WRKBUILD)/doc/chilli.conf $(IDIR_CHILLISPOT)/etc/
71 install -m0755 -d $(IDIR_CHILLISPOT)/usr/sbin
72 $(CP) $(WRKINST)/usr/sbin/chilli $(IDIR_CHILLISPOT)/usr/sbin/
73 $(RSTRIP) $(IDIR_CHILLISPOT)
74 $(IPKG_BUILD) $(IDIR_CHILLISPOT) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.