Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_SITES:= http://oss.oetiker.ch/rrdtool/pub/
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. $(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE:= gnu
  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. BUILD_STYLE:= auto
  28. INSTALL_STYLE:= auto
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
  32. ${IDIR_RRDTOOL}/usr/bin/
  33. ${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
  35. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/librrd.so.* ${IDIR_LIBRRD}/usr/lib/
  37. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/share/rrdtool/fonts
  38. ${CP} ${WRKBUILD}/src/DejaVuSansMono-Roman.ttf \
  39. ${IDIR_LIBRRD}/usr/share/rrdtool/fonts/
  40. include ${TOPDIR}/mk/pkg-bottom.mk