Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.4.8
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= dbe59386db97fd2f2216729facd74ca8
  8. PKG_DESCR:= Round Robin Database (RRD) management library
  9. PKG_SECTION:= libs
  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:= misc
  22. PKGSD_RRDCGI:= RRD CGI
  23. PKGSC_RRDTOOL:= misc
  24. PKGSD_RRDTOOL:= RRD tool
  25. ifeq ($(ADK_STATIC),y)
  26. PKG_OPTS+= libmix
  27. endif
  28. include ${TOPDIR}/mk/package.mk
  29. $(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  30. $(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDCGI}))
  31. $(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDTOOL}))
  32. CONFIGURE_ENV+= rd_cv_ieee_works=yes
  33. CONFIGURE_ARGS+= --enable-rrdcgi \
  34. --disable-mmap \
  35. --disable-perl \
  36. --disable-ruby \
  37. --disable-tcl \
  38. --disable-python \
  39. --disable-libwrap
  40. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/freetype2
  41. TARGET_LDFLAGS+= -lglib-2.0 -lm
  42. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  43. rrdtool-install:
  44. ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
  45. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
  46. ${IDIR_RRDTOOL}/usr/bin/
  47. rrdcgi-install:
  48. ${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
  49. ${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
  50. librrd-install:
  51. ${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/librrd*.so* ${IDIR_LIBRRD}/usr/lib/
  53. include ${TOPDIR}/mk/pkg-bottom.mk