Makefile 1.9 KB

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