1################################################################################
2#
3# rrdtool
4#
5################################################################################
6
7RRDTOOL_VERSION = 1.8.0
8RRDTOOL_SITE = https://github.com/oetiker/rrdtool-1.x/releases/download/v$(RRDTOOL_VERSION)
9RRDTOOL_LICENSE = GPL-2.0+ with FLOSS license exceptions as explained in COPYRIGHT
10RRDTOOL_LICENSE_FILES = COPYRIGHT LICENSE
11RRDTOOL_DEPENDENCIES = host-pkgconf libglib2 $(TARGET_NLS_DEPENDENCIES)
12# autoreconf needed to avoid link failure due to missing -lintl,
13# autopoint needed as a consequence of autoreconf
14RRDTOOL_AUTORECONF = YES
15RRDTOOL_AUTOPOINT = YES
16RRDTOOL_INSTALL_STAGING = YES
17RRDTOOL_CONF_OPTS = \
18	--disable-examples \
19	--disable-libdbi \
20	--disable-librados \
21	--disable-libwrap \
22	--disable-lua \
23	--disable-perl \
24	--disable-python \
25	--disable-ruby \
26	--disable-tcl
27
28ifeq ($(BR2_PACKAGE_RRDTOOL_RRDGRAPH),y)
29RRDTOOL_DEPENDENCIES += cairo pango
30else
31RRDTOOL_CONF_OPTS += --disable-rrd_graph
32endif
33
34ifeq ($(BR2_PACKAGE_LIBXML2),y)
35RRDTOOL_DEPENDENCIES += libxml2
36else
37RRDTOOL_CONF_OPTS += --disable-rrd_restore
38endif
39
40$(eval $(autotools-package))
41