3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=9ad5f4181ae2e9e2d5ccb165c37dfdde
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
18 $(eval
$(call PKG_template
,CHILLISPOT
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
26 ac_cv_func_malloc_0_nonnull
=yes \
27 ac_cv_func_memcmp_working
=yes \
28 ac_cv_func_setvbuf_reversed
=no \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 $(TARGET_CONFIGURE_OPTS
)
55 mkdir
-p
$(PKG_INSTALL_DIR
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 touch
$(PKG_BUILD_DIR
)/.built
62 install -m0755
-d
$(IDIR_CHILLISPOT
)/etc
/init.d
63 install -m0755 .
/ipkg
/$(PKG_NAME
).init
$(IDIR_CHILLISPOT
)/etc
/init.d
/chilli
64 install -m0755
-d
$(IDIR_CHILLISPOT
)/etc
65 install -m0644
$(PKG_BUILD_DIR
)/doc
/chilli.conf
$(IDIR_CHILLISPOT
)/etc
/
66 install -m0755
-d
$(IDIR_CHILLISPOT
)/usr
/sbin
67 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/chilli
$(IDIR_CHILLISPOT
)/usr
/sbin
/
68 $(RSTRIP
) $(IDIR_CHILLISPOT
)
69 $(IPKG_BUILD
) $(IDIR_CHILLISPOT
) $(PACKAGE_DIR
)