Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= rrdtool
  5. PKG_VERSION:= 1.2.30
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 19b24f7184a8dbf7b48c1bbb565ad9fb
  8. PKG_DESCR:= Round Robin Database (RRD) management library and tools
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libart libfreetype libpng zlib
  11. PKG_BUILDDEP+= libxml2 cgilib freetype libart libpng
  12. PKG_URL:= http://oss.oetiker.ch/
  13. PKG_SITES:= http://oss.oetiker.ch/rrdtool/pub/
  14. PKG_SECTION_RRDCGI:= misc
  15. PKG_SECTION_RRDTOOL:= misc
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION_RRDCGI}))
  19. $(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION_RRDTOOL}))
  20. CONFIGURE_ENV+= rd_cv_ieee_works=yes
  21. CONFIGURE_ARGS+= --enable-rrdcgi \
  22. --disable-mmap \
  23. --disable-perl \
  24. --disable-ruby \
  25. --disable-tcl \
  26. --disable-python \
  27. --without-x \
  28. --with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
  29. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/freetype2
  30. post-install:
  31. ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
  32. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
  33. ${IDIR_RRDTOOL}/usr/bin/
  34. ${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
  35. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
  36. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/librrd.so.* ${IDIR_LIBRRD}/usr/lib/
  38. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/share/rrdtool/fonts
  39. ${CP} ${WRKBUILD}/src/DejaVuSansMono-Roman.ttf \
  40. ${IDIR_LIBRRD}/usr/share/rrdtool/fonts/
  41. include ${TOPDIR}/mk/pkg-bottom.mk