Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= rrdcollect
  5. PKG_VERSION:= 0.2.9
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1e94eb0f8d55ebf0f042c10baebc2d3d
  8. PKG_DESCR:= Round-Robin Database (RRD) collecting daemon
  9. PKG_SECTION:= admin
  10. PKG_DEPENDS:= librrd
  11. PKG_BUILDDEP:= rrdtool
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=rrdcollect/}
  13. ifneq (${ADK_PACKAGE_LIBRRD},)
  14. RRDTOOL_LIBS:= -lart_lgpl_2 -lfreetype -lpng
  15. endif
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" \
  19. ac_cv_func_malloc_0_nonnull=yes
  20. CONFIGURE_ARGS+= --enable-exec \
  21. --without-rrdtool \
  22. --with-librrd \
  23. --without-libpcre
  24. TARGET_CPPFLAGS+= -DSOCKET_COMM
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  27. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
  28. ${IDIR_RRDCOLLECT}/usr/sbin/
  29. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/etc
  30. ${INSTALL_DATA} ./files/rrdcollect.conf \
  31. ${IDIR_RRDCOLLECT}/etc/
  32. include ${TOPDIR}/mk/pkg-bottom.mk