upgrade kernel, quagga and openvpn, add licensing info to diag module, fix up jffs2
[openwrt.git] / package / chillispot / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=chillispot
6 PKG_VERSION:=1.0RC2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=1b924c0bd592253b1d13af4885ea041a
9
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)
13 PKG_CAT:=zcat
14 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
15 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
16
17 $(DL_DIR)/$(PKG_SOURCE):
18 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
19
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
23
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 \
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_LARGEFILE) \
50 $(DISABLE_NLS) \
51 );
52 touch $(PKG_BUILD_DIR)/.configured
53
54 $(PKG_BUILD_DIR)/src/chilli: $(PKG_BUILD_DIR)/.configured
55 $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
56
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)
68
69 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
70 $(IPKG) install $(PKG_IPK)
71
72 source: $(DL_DIR)/$(PKG_SOURCE)
73 prepare: $(PKG_BUILD_DIR)/.unpacked
74 compile: $(PKG_IPK)
75 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
76
77 clean:
78 rm -rf $(PKG_BUILD_DIR)
79 rm -f $(PKG_IPK)
This page took 0.054251 seconds and 5 git commands to generate.