xref: /OK3568_Linux_fs/buildroot/package/libpsl/libpsl.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# libpsl
4#
5################################################################################
6
7LIBPSL_VERSION = 0.21.1
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_DEPENDENCIES = host-pkgconf
12LIBPSL_INSTALL_STAGING = YES
13
14# The order of checks is the same as done by libpsl when configured.
15ifeq ($(BR2_PACKAGE_LIBIDN2)$(BR2_PACKAGE_LIBUNISTRING),yy)
16LIBPSL_CONF_OPTS += -Druntime=libidn2 -Dbuiltin=libidn2
17LIBPSL_DEPENDENCIES += libidn2 libunistring
18else ifeq ($(BR2_PACKAGE_ICU),y)
19LIBPSL_CONF_OPTS += -Druntime=libicu -Dbuiltin=libicu
20LIBPSL_DEPENDENCIES += icu
21else
22LIBPSL_CONF_OPTS += -Druntime=libidn -Dbuiltin=libidn
23LIBPSL_DEPENDENCIES += libidn libunistring
24endif
25
26$(eval $(meson-package))
27