3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=1b924c0bd592253b1d13af4885ea041a
10 PKG_SOURCE_URL
:=http
://www.chillispot.org
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
15 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
17 $(DL_DIR
)/$(PKG_SOURCE
):
18 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
20 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE
)
21 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
22 touch
$(PKG_BUILD_DIR
)/.unpacked
24 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.unpacked
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 ac_cv_func_malloc_0_nonnull
=yes \
29 ac_cv_func_memcmp_working
=yes \
30 ac_cv_func_setvbuf_reversed
=no \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
52 touch
$(PKG_BUILD_DIR
)/.configured
54 $(PKG_BUILD_DIR
)/src
/chilli
: $(PKG_BUILD_DIR
)/.configured
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(TARGET_CONFIGURE_OPTS
)
57 $(PKG_IPK
): $(PKG_BUILD_DIR
)/src
/chilli
58 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) $(PKG_NAME
).control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
59 mkdir
-p
$(PKG_IPK_DIR
)/usr
/sbin
60 cp
$(PKG_BUILD_DIR
)/src
/chilli
$(PKG_IPK_DIR
)/usr
/sbin
/
61 $(STRIP
) $(PKG_IPK_DIR
)/usr
/sbin
/*
62 mkdir
-p
$(PKG_IPK_DIR
)/etc
63 cp
$(PKG_BUILD_DIR
)/doc
/chilli.conf
$(PKG_IPK_DIR
)/etc
64 cp
-a .
/ipkg
/* $(PKG_IPK_DIR
)/
65 find
$(PKG_IPK_DIR
) -name CVS | xargs
rm -rf
66 mkdir
-p
$(PACKAGE_DIR
)
67 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
69 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
70 $(IPKG
) install $(PKG_IPK
)
72 source
: $(DL_DIR
)/$(PKG_SOURCE
)
73 prepare
: $(PKG_BUILD_DIR
)/.unpacked
75 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
78 rm -rf
$(PKG_BUILD_DIR
)