1################################################################################ 2# 3# libpsl 4# 5################################################################################ 6 7LIBPSL_VERSION = 0.21.5 8LIBPSL_SITE = https://github.com/rockdaboot/libpsl/releases/download/$(LIBPSL_VERSION) 9LIBPSL_LICENSE = MIT, BSD-3-Clause 10LIBPSL_LICENSE_FILES = COPYING src/LICENSE.chromium 11LIBPSL_CONF_OPTS = -Dbuiltin=true 12LIBPSL_DEPENDENCIES = host-pkgconf 13LIBPSL_INSTALL_STAGING = YES 14 15ifeq ($(BR2_ENABLE_LOCALE),) 16LIBPSL_DEPENDENCIES += libiconv 17endif 18 19# The order of checks is the same as done by libpsl when configured. 20ifeq ($(BR2_PACKAGE_LIBIDN2)$(BR2_PACKAGE_LIBUNISTRING),yy) 21LIBPSL_CONF_OPTS += -Druntime=libidn2 22LIBPSL_DEPENDENCIES += libidn2 libunistring 23else ifeq ($(BR2_PACKAGE_ICU),y) 24LIBPSL_CONF_OPTS += -Druntime=libicu 25LIBPSL_DEPENDENCIES += icu 26else 27LIBPSL_CONF_OPTS += -Druntime=libidn 28LIBPSL_DEPENDENCIES += libidn libunistring 29endif 30 31$(eval $(meson-package)) 32