[Buildroot] [git commit] package/ipcalc: add geoip support

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Oct 20 21:36:39 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=d904c4d22d97b3d263cfbfde9da8fab5717032ff
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/ipcalc/ipcalc.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/ipcalc/ipcalc.mk b/package/ipcalc/ipcalc.mk
index 145b6904b9..8a43200456 100644
--- a/package/ipcalc/ipcalc.mk
+++ b/package/ipcalc/ipcalc.mk
@@ -10,7 +10,12 @@ IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2
 IPCALC_LICENSE = GPL-2.0+
 IPCALC_LICENSE_FILES = COPYING
 
-IPCALC_CONF_OPTS = -Duse_geoip=disabled
+ifeq ($(BR2_PACKAGE_GEOIP),y)
+IPCALC_CONF_OPTS += -Duse_geoip=enabled
+IPCALC_DEPENDENCIES += host-pkgconf geoip
+else
+IPCALC_CONF_OPTS += -Duse_geoip=disabled
+endif
 
 ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
 IPCALC_CONF_OPTS += -Duse_maxminddb=enabled


More information about the buildroot mailing list