Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_SITES:= http://oss.oetiker.ch/rrdtool/pub/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_ENV+= rd_cv_ieee_works=yes
  18. CONFIGURE_ARGS+= --enable-rrdcgi \
  19. --disable-mmap \
  20. --disable-perl \
  21. --disable-ruby \
  22. --disable-tcl \
  23. --disable-python \
  24. --without-x \
  25. --with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
  26. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/freetype2
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
  30. ${IDIR_RRDTOOL}/usr/bin/
  31. ${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
  32. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
  33. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/librrd.so.* ${IDIR_LIBRRD}/usr/lib/
  35. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/share/rrdtool/fonts
  36. ${CP} ${WRKBUILD}/src/DejaVuSansMono-Roman.ttf \
  37. ${IDIR_LIBRRD}/usr/share/rrdtool/fonts/
  38. include ${TOPDIR}/mk/pkg-bottom.mk