a99b5cdfb3
Also: - Remove no longer needed patch (merged upstream). - Adapt vnstat.mk to the new autotools-based build system. - Include patch to improve gd library usability check + add configure option to explicitly disable that check. Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
28 lines
845 B
Makefile
28 lines
845 B
Makefile
################################################################################
|
|
#
|
|
# vnstat
|
|
#
|
|
################################################################################
|
|
|
|
VNSTAT_VERSION = 1.15
|
|
VNSTAT_SITE = http://humdi.net/vnstat
|
|
VNSTAT_LICENSE = GPLv2
|
|
VNSTAT_LICENSE_FILES = COPYING
|
|
# We're patching configure.ac, so we need to autoreconf
|
|
VNSTAT_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
|
VNSTAT_DEPENDENCIES = gd
|
|
VNSTAT_CONF_OPTS = --enable-image-output
|
|
else
|
|
VNSTAT_CONF_OPTS = --disable-image-output
|
|
endif
|
|
|
|
# vnStat declares an 'install-data-hook' rule that tries to run
|
|
# 'vnstat --showconfig' on the host to generate a default config file.
|
|
# That obviously doesn't work when cross-compiling, so avoid it
|
|
# entirely.
|
|
VNSTAT_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
|
|
|
$(eval $(autotools-package))
|