Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_BUILDDEP+= libxml2 cgilib freetype libart libpng
  8. PKG_MD5SUM:= 19b24f7184a8dbf7b48c1bbb565ad9fb
  9. PKG_DESCR:= Round Robin Database (RRD) management library and tools
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libart libfreetype libpng zlib
  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_STYLE:= gnu
  18. CONFIGURE_ENV+= rd_cv_ieee_works=yes
  19. CONFIGURE_ARGS+= --enable-rrdcgi \
  20. --disable-mmap \
  21. --disable-perl \
  22. --disable-ruby \
  23. --disable-tcl \
  24. --disable-python \
  25. --without-x \
  26. --with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
  27. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/freetype2
  28. BUILD_STYLE:= auto
  29. INSTALL_STYLE:= auto
  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