1 ################################################################################
5 ################################################################################
8 VNSTAT_SITE
= http
://humdi.net
/vnstat
10 VNSTAT_LICENSE_FILES
= COPYING
11 VNSTAT_DEPENDENCIES
= host-pkgconf
12 # We're patching configure.ac, so we need to autoreconf
13 VNSTAT_AUTORECONF
= YES
15 ifeq ($(BR2_PACKAGE_GD
)$(BR2_PACKAGE_LIBPNG
),yy
)
16 VNSTAT_DEPENDENCIES
+= gd
17 VNSTAT_CONF_OPTS
= --enable-image-output
19 VNSTAT_CONF_OPTS
= --disable-image-output
22 # vnStat declares an 'install-data-hook' rule that tries to run
23 # 'vnstat --showconfig' on the host to generate a default config file.
24 # That obviously doesn't work when cross-compiling, so avoid it
26 VNSTAT_INSTALL_TARGET_OPTS
= DESTDIR
=$(TARGET_DIR
) install-exec
28 $(eval
$(autotools-package
))