3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=997827a9302a85920cfbc1334092ac0c
10 PKG_SOURCE_URL
:=http
://www.chillispot.org
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,CHILLISPOT
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 ac_cv_func_malloc_0_nonnull
=yes \
28 ac_cv_func_memcmp_working
=yes \
29 ac_cv_func_setvbuf_reversed
=no \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
56 $(PKG_BUILD_DIR
)/.built
:
57 rm -rf
$(PKG_INSTALL_DIR
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 $(TARGET_CONFIGURE_OPTS
) \
61 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 install -m0755
-d
$(IDIR_CHILLISPOT
)/etc
/init.d
67 install -m0755 .
/files
/$(PKG_NAME
).init
$(IDIR_CHILLISPOT
)/etc
/init.d
/chilli
68 install -m0755
-d
$(IDIR_CHILLISPOT
)/etc
69 install -m0644
$(PKG_BUILD_DIR
)/doc
/chilli.conf
$(IDIR_CHILLISPOT
)/etc
/
70 install -m0755
-d
$(IDIR_CHILLISPOT
)/usr
/sbin
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/chilli
$(IDIR_CHILLISPOT
)/usr
/sbin
/
72 $(RSTRIP
) $(IDIR_CHILLISPOT
)
73 $(IPKG_BUILD
) $(IDIR_CHILLISPOT
) $(PACKAGE_DIR
)