xref: /OK3568_Linux_fs/buildroot/package/rrdtool/rrdtool.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# rrdtool
4#
5################################################################################
6
7RRDTOOL_VERSION = 1.7.2
8RRDTOOL_SITE = http://oss.oetiker.ch/rrdtool/pub
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# gettextize needed as a consequence of autoreconf
14RRDTOOL_AUTORECONF = YES
15RRDTOOL_GETTEXTIZE = 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