fix rrdcollect selection
[openwrt.git] / package / rrdcollect / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=rrdcollect
6 PKG_VERSION:=0.2.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=5e4305c612bc3cccbaf802c275c81a11
9
10 PKG_SOURCE_URL:=@SF/rrdcollect
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,RRDCOLLECT,rrdcollect,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS) -DSOCKET_COMM" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
27 LIBS="-lart_lgpl_2 -lfreetype -lpng -lz" \
28 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
29 ac_cv_func_malloc_0_nonnull=yes \
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 --sbindir=/usr/sbin \
40 --libexecdir=/usr/lib \
41 --sysconfdir=/etc \
42 --datadir=/usr/share \
43 --localstatedir=/var \
44 --mandir=/usr/man \
45 --infodir=/usr/info \
46 $(DISABLE_NLS) \
47 $(DISABLE_LARGEFILE) \
48 --enable-shared \
49 --disable-static \
50 --enable-exec \
51 --without-rrdtool \
52 --with-librrd \
53 --without-libpcre \
54 --without-libpcap \
55 );
56 touch $@
57
58 $(PKG_BUILD_DIR)/.built:
59 rm -rf $(PKG_INSTALL_DIR)
60 mkdir -p $(PKG_INSTALL_DIR)
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_RRDCOLLECT):
67 install -d -m0755 $(IDIR_RRDCOLLECT)/etc
68 install -m0644 ./files/rrdcollect.conf $(IDIR_RRDCOLLECT)/etc
69 install -d -m0755 $(IDIR_RRDCOLLECT)/etc/init.d
70 install -m0755 ./files/rrdcollect.init $(IDIR_RRDCOLLECT)/etc/init.d/rrdcollect
71 ln -sf rrdcollect $(IDIR_RRDCOLLECT)/etc/init.d/S98rrdcollect
72 install -d -m0755 $(IDIR_RRDCOLLECT)/usr/sbin
73 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/rrdcollect $(IDIR_RRDCOLLECT)/usr/sbin/
74 $(RSTRIP) $(IDIR_RRDCOLLECT)
75 $(IPKG_BUILD) $(IDIR_RRDCOLLECT) $(PACKAGE_DIR)
76
This page took 0.048208 seconds and 5 git commands to generate.