xref: /OK3568_Linux_fs/buildroot/package/pcre2/pcre2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# pcre2
4#
5################################################################################
6
7PCRE2_VERSION = 10.42
8PCRE2_SITE = https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$(PCRE2_VERSION)
9PCRE2_SOURCE = pcre2-$(PCRE2_VERSION).tar.bz2
10PCRE2_LICENSE = BSD-3-Clause
11PCRE2_LICENSE_FILES = LICENCE
12PCRE2_CPE_ID_VENDOR = pcre
13PCRE2_INSTALL_STAGING = YES
14PCRE2_CONFIG_SCRIPTS = pcre2-config
15
16PCRE2_CONF_OPTS += --enable-pcre2-8
17PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_16),--enable-pcre2-16,--disable-pcre2-16)
18PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_32),--enable-pcre2-32,--disable-pcre2-32)
19
20ifeq ($(BR2_PACKAGE_PCRE2_JIT),y)
21PCRE2_CONF_OPTS += --enable-jit
22else
23PCRE2_CONF_OPTS += --disable-jit
24endif
25
26# disable fork usage if not available
27ifeq ($(BR2_USE_MMU),)
28PCRE2_CONF_OPTS += --disable-pcre2grep-callout
29endif
30
31# needed for qt6base
32HOST_PCRE2_CONF_OPTS = --enable-pcre2-16
33
34$(eval $(autotools-package))
35$(eval $(host-autotools-package))
36