1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= bd37614137d7a8dc523359648eb2a81631a34fd91a82ed5581916a52c08433f4
10 PKG_DESCR
:= round robin database management library
11 PKG_SECTION
:= libs
/misc
12 PKG_DEPENDS
:= libart libfreetype libpng zlib
13 PKG_DEPENDS
+= glib cairo pango
14 PKG_BUILDDEP
:= libxml2 cgilib freetype libart libpng
15 PKG_BUILDDEP
+= glib cairo pango
16 PKG_URL
:= http
://oss.oetiker.ch
/
17 PKG_SITES
:= https
://github.com
/oetiker
/rrdtool-1.x
/releases
/download
/v
$(PKG_VERSION
)/
21 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
23 PKG_CFLINE_RRDTOOL
:= select ADK_PACKAGE_CAIRO_WITH_PNG@
25 PKG_SUBPKGS
:= LIBRRD RRDCGI RRDTOOL
26 PKGSC_RRDCGI
:= sys
/misc
27 PKGSD_RRDCGI
:= RRD CGI
28 PKGSC_RRDTOOL
:= sys
/misc
29 PKGSD_RRDTOOL
:= RRD tool
31 include ${ADK_TOPDIR}/mk
/package.mk
33 $(eval
$(call PKG_template
,LIBRRD
,librrd
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
34 $(eval
$(call PKG_template
,RRDCGI
,rrdcgi
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDCGI}))
35 $(eval
$(call PKG_template
,RRDTOOL
,rrdtool
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_RRDTOOL}))
37 CONFIGURE_ENV
+= rd_cv_ieee_works
=yes
38 CONFIGURE_ARGS
+= --enable-rrdcgi \
47 TARGET_CPPFLAGS
+= -I
${STAGING_TARGET_DIR}/usr
/include/freetype2
48 TARGET_LDFLAGS
+= -lglib-2.0
-lm
51 ${INSTALL_DIR} ${IDIR_RRDTOOL}/usr
/bin
52 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/rrdtool
${WRKINST}/usr
/bin
/rrdupdate \
53 ${IDIR_RRDTOOL}/usr
/bin
/
56 ${INSTALL_DIR} ${IDIR_RRDCGI}/usr
/bin
57 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/rrdcgi
${IDIR_RRDCGI}/usr
/bin
/
60 ${INSTALL_DIR} ${IDIR_LIBRRD}/usr
/lib
61 ${CP} ${WRKINST}/usr
/lib
/librrd
*.so
* ${IDIR_LIBRRD}/usr
/lib
/
63 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk