1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# pcre2 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunPCRE2_VERSION = 10.42 8*4882a593SmuzhiyunPCRE2_SITE = https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$(PCRE2_VERSION) 9*4882a593SmuzhiyunPCRE2_SOURCE = pcre2-$(PCRE2_VERSION).tar.bz2 10*4882a593SmuzhiyunPCRE2_LICENSE = BSD-3-Clause 11*4882a593SmuzhiyunPCRE2_LICENSE_FILES = LICENCE 12*4882a593SmuzhiyunPCRE2_CPE_ID_VENDOR = pcre 13*4882a593SmuzhiyunPCRE2_INSTALL_STAGING = YES 14*4882a593SmuzhiyunPCRE2_CONFIG_SCRIPTS = pcre2-config 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunPCRE2_CONF_OPTS += --enable-pcre2-8 17*4882a593SmuzhiyunPCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_16),--enable-pcre2-16,--disable-pcre2-16) 18*4882a593SmuzhiyunPCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_32),--enable-pcre2-32,--disable-pcre2-32) 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PCRE2_JIT),y) 21*4882a593SmuzhiyunPCRE2_CONF_OPTS += --enable-jit 22*4882a593Smuzhiyunelse 23*4882a593SmuzhiyunPCRE2_CONF_OPTS += --disable-jit 24*4882a593Smuzhiyunendif 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun# disable fork usage if not available 27*4882a593Smuzhiyunifeq ($(BR2_USE_MMU),) 28*4882a593SmuzhiyunPCRE2_CONF_OPTS += --disable-pcre2grep-callout 29*4882a593Smuzhiyunendif 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun# needed for qt6base 32*4882a593SmuzhiyunHOST_PCRE2_CONF_OPTS = --enable-pcre2-16 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun$(eval $(autotools-package)) 35*4882a593Smuzhiyun$(eval $(host-autotools-package)) 36