2c9d505fba
Switch to https download site to save a redirect. Optionally depend on the jansson for the newly introduced JSON output support. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
37 lines
1009 B
Makefile
37 lines
1009 B
Makefile
################################################################################
|
|
#
|
|
# nftables
|
|
#
|
|
################################################################################
|
|
|
|
NFTABLES_VERSION = 0.9.0
|
|
NFTABLES_SOURCE = nftables-$(NFTABLES_VERSION).tar.bz2
|
|
NFTABLES_SITE = https://www.netfilter.org/projects/nftables/files
|
|
NFTABLES_DEPENDENCIES = gmp libmnl libnftnl host-bison host-flex \
|
|
host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
|
NFTABLES_LICENSE = GPL-2.0
|
|
NFTABLES_LICENSE_FILES = COPYING
|
|
NFTABLES_CONF_OPTS = --disable-man-doc --disable-pdf-doc
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
NFTABLES_DEPENDENCIES += readline
|
|
NFTABLES_LIBS += -lncurses
|
|
else
|
|
NFTABLES_CONF_OPTS += --without-cli
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANSSON),y)
|
|
NFTABLES_DEPENDENCIES += jansson
|
|
NFTABLES_CONF_OPTS += --with-json
|
|
else
|
|
NFTABLES_CONF_OPTS += --without-json
|
|
endif
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_LIBNFTNL_JSON),yy)
|
|
NFTABLES_LIBS += -ljansson -lm
|
|
endif
|
|
|
|
NFTABLES_CONF_ENV = LIBS="$(NFTABLES_LIBS)"
|
|
|
|
$(eval $(autotools-package))
|