Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= rrdtool
  5. PKG_VERSION:= 1.4.8
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= dbe59386db97fd2f2216729facd74ca8
  8. PKG_DESCR:= round robin database management library
  9. PKG_SECTION:= libs/misc
  10. PKG_DEPENDS:= libart libfreetype libpng zlib
  11. PKG_DEPENDS+= glib cairo pango
  12. PKG_BUILDDEP:= libxml2 cgilib freetype libart libpng
  13. PKG_BUILDDEP+= glib cairo pango
  14. PKG_URL:= http://oss.oetiker.ch/
  15. PKG_SITES:= http://oss.oetiker.ch/rrdtool/pub/
  16. PKG_LIBNAME:= librrd
  17. PKG_OPTS:= dev
  18. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  19. PKG_ARCH_DEPENDS:= !m68k
  20. PKG_SUBPKGS:= LIBRRD RRDCGI RRDTOOL
  21. PKGSC_RRDCGI:= sys/misc
  22. PKGSD_RRDCGI:= RRD CGI
  23. PKGSC_RRDTOOL:= sys/misc
  24. PKGSD_RRDTOOL:= RRD tool
  25. include ${ADK_TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  27. $(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDCGI}))
  28. $(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDTOOL}))
  29. CONFIGURE_ENV+= rd_cv_ieee_works=yes
  30. CONFIGURE_ARGS+= --enable-rrdcgi \
  31. --disable-mmap \
  32. --disable-perl \
  33. --disable-ruby \
  34. --disable-tcl \
  35. --disable-python \
  36. --disable-libwrap
  37. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/freetype2
  38. TARGET_LDFLAGS+= -lglib-2.0 -lm
  39. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  40. rrdtool-install:
  41. ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
  43. ${IDIR_RRDTOOL}/usr/bin/
  44. rrdcgi-install:
  45. ${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
  46. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
  47. librrd-install:
  48. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/librrd*.so* ${IDIR_LIBRRD}/usr/lib/
  50. include ${ADK_TOPDIR}/mk/pkg-bottom.mk