From 2efeb839611525f8eef5c6bb20fc00ea4043eeab Mon Sep 17 00:00:00 2001 From: Joris Lijssens Date: Thu, 17 Dec 2015 15:33:56 +0100 Subject: [PATCH] netsniff-ng: add optional dependencies on geoip, ncurses and zlib [Thomas: rework commit title.] Signed-off-by: Joris Lijssens Signed-off-by: Thomas Petazzoni --- package/netsniff-ng/netsniff-ng.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/netsniff-ng/netsniff-ng.mk b/package/netsniff-ng/netsniff-ng.mk index 40eecab8cd..5774ccd63c 100644 --- a/package/netsniff-ng/netsniff-ng.mk +++ b/package/netsniff-ng/netsniff-ng.mk @@ -16,6 +16,18 @@ NETSNIFF_NG_DEPENDENCIES = \ libnl libpcap libcli libnetfilter_conntrack \ liburcu libnet +ifeq ($(BR2_PACKAGE_GEOIP),y) +NETSNIFF_NG_DEPENDENCIES += geoip +endif + +ifeq ($(BR2_PACKAGE_NCURSES),y) +NETSNIFF_NG_DEPENDENCIES += ncurses +endif + +ifeq ($(BR2_PACKAGE_ZLIB),y) +NETSNIFF_NG_DEPENDENCIES += zlib +endif + # hand-written configure script and makefile define NETSNIFF_NG_CONFIGURE_CMDS (cd $(@D); \