disable jpeg and xpm explicitly
[openwrt.git] / openwrt / 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
19 $(eval $(call PKG_template,CHILLISPOT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
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" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ac_cv_func_malloc_0_nonnull=yes \
28 ac_cv_func_memcmp_working=yes \
29 ac_cv_func_setvbuf_reversed=no \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 );
51 touch $@
52
53 $(PKG_BUILD_DIR)/.built:
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 $(TARGET_CONFIGURE_OPTS) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 all install
60 touch $@
61
62 $(IPKG_CHILLISPOT):
63 install -m0755 -d $(IDIR_CHILLISPOT)/etc/init.d
64 install -m0755 ./files/$(PKG_NAME).init $(IDIR_CHILLISPOT)/etc/init.d/chilli
65 install -m0755 -d $(IDIR_CHILLISPOT)/etc
66 install -m0644 $(PKG_BUILD_DIR)/doc/chilli.conf $(IDIR_CHILLISPOT)/etc/
67 install -m0755 -d $(IDIR_CHILLISPOT)/usr/sbin
68 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/chilli $(IDIR_CHILLISPOT)/usr/sbin/
69 $(RSTRIP) $(IDIR_CHILLISPOT)
70 $(IPKG_BUILD) $(IDIR_CHILLISPOT) $(PACKAGE_DIR)
This page took 0.044955 seconds and 5 git commands to generate.