fix rpcbind build, reported by Oliver
[openadk.git] / package / rrdcollect / Makefile
blob9429a3554ff21a7be1442843abf6ed9e74bcdb0c
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= rrdcollect
7 PKG_VERSION:= 0.2.10
8 PKG_RELEASE:= 1
9 PKG_HASH:= 6104ecbb12adc4fb91330d9949adfff4fe98b5a01d2249c3d840174d89704ca1
10 PKG_DESCR:= round-robin database collecting daemon
11 PKG_SECTION:= sys/misc
12 PKG_DEPENDS:= librrd
13 PKG_BUILDDEP:= rrdtool
14 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=rrdcollect/}
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
18 ifneq (${ADK_PACKAGE_LIBRRD},)
19 RRDTOOL_LIBS:= -lart_lgpl_2 -lfreetype -lpng
20 endif
22 include ${ADK_TOPDIR}/mk/package.mk
24 $(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" \
27 ac_cv_func_malloc_0_nonnull=yes
28 CONFIGURE_ARGS+= --enable-exec \
29 --without-rrdtool \
30 --without-libpcre \
31 --with-librrd
32 TARGET_CPPFLAGS+= -DSOCKET_COMM
34 rrdcollect-install:
35 ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
36 ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
37 ${IDIR_RRDCOLLECT}/usr/sbin/
38 ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/etc
39 ${INSTALL_DATA} ./files/rrdcollect.conf \
40 ${IDIR_RRDCOLLECT}/etc/
42 include ${ADK_TOPDIR}/mk/pkg-bottom.mk