1################################################################################ 2# 3# ipcalc 4# 5################################################################################ 6 7IPCALC_VERSION = 1.0.1 8IPCALC_SITE = $(call gitlab,ipcalc,ipcalc,$(IPCALC_VERSION)) 9IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2 10IPCALC_LICENSE = GPL-2.0+ 11IPCALC_LICENSE_FILES = COPYING 12 13ifeq ($(BR2_STATIC_LIBS),y) 14IPCALC_CONF_OPTS += -Duse_runtime_linking=disabled 15else 16IPCALC_CONF_OPTS += -Duse_runtime_linking=enabled 17endif 18 19ifeq ($(BR2_PACKAGE_GEOIP),y) 20IPCALC_CONF_OPTS += -Duse_geoip=enabled 21IPCALC_DEPENDENCIES += host-pkgconf geoip 22else 23IPCALC_CONF_OPTS += -Duse_geoip=disabled 24endif 25 26ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y) 27IPCALC_CONF_OPTS += -Duse_maxminddb=enabled 28IPCALC_DEPENDENCIES += host-pkgconf libmaxminddb 29else 30IPCALC_CONF_OPTS += -Duse_maxminddb=disabled 31endif 32 33$(eval $(meson-package)) 34