Convert libnet to new packaging style
[openwrt.git] / package / chillispot / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=chillispot
6 PKG_VERSION:=1.0RC3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9ad5f4181ae2e9e2d5ccb165c37dfdde
9
10 PKG_SOURCE_URL:=http://www.chillispot.org/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18 $(eval $(call PKG_template,CHILLISPOT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
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 \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 );
50 touch $@
51
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)" \
58 install
59 touch $(PKG_BUILD_DIR)/.built
60
61 $(IPKG_CHILLISPOT):
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)
This page took 0.044011 seconds and 5 git commands to generate.