1
0

Makefile 2.0 KB

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