2020-10-14 21:06:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ipcalc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-10-19 19:52:14 +02:00
|
|
|
IPCALC_VERSION = 1.0.1
|
2021-03-28 21:13:53 +02:00
|
|
|
IPCALC_SITE = $(call gitlab,ipcalc,ipcalc,$(IPCALC_VERSION))
|
2020-10-14 21:06:14 +02:00
|
|
|
IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2
|
|
|
|
IPCALC_LICENSE = GPL-2.0+
|
|
|
|
IPCALC_LICENSE_FILES = COPYING
|
|
|
|
|
2021-10-30 23:54:14 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
IPCALC_CONF_OPTS += -Duse_runtime_linking=disabled
|
|
|
|
else
|
|
|
|
IPCALC_CONF_OPTS += -Duse_runtime_linking=enabled
|
|
|
|
endif
|
|
|
|
|
2021-10-20 18:54:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
|
|
|
IPCALC_CONF_OPTS += -Duse_geoip=enabled
|
|
|
|
IPCALC_DEPENDENCIES += host-pkgconf geoip
|
|
|
|
else
|
|
|
|
IPCALC_CONF_OPTS += -Duse_geoip=disabled
|
|
|
|
endif
|
2021-10-20 18:54:45 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
|
|
|
IPCALC_CONF_OPTS += -Duse_maxminddb=enabled
|
|
|
|
IPCALC_DEPENDENCIES += host-pkgconf libmaxminddb
|
|
|
|
else
|
|
|
|
IPCALC_CONF_OPTS += -Duse_maxminddb=disabled
|
|
|
|
endif
|
2020-10-14 21:06:14 +02:00
|
|
|
|
|
|
|
$(eval $(meson-package))
|