1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# pcre 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunPCRE_VERSION = 8.45 8*4882a593SmuzhiyunPCRE_SITE = http://downloads.sourceforge.net/project/pcre/pcre/$(PCRE_VERSION) 9*4882a593SmuzhiyunPCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2 10*4882a593SmuzhiyunPCRE_LICENSE = BSD-3-Clause 11*4882a593SmuzhiyunPCRE_LICENSE_FILES = LICENCE 12*4882a593SmuzhiyunPCRE_CPE_ID_VENDOR = pcre 13*4882a593SmuzhiyunPCRE_INSTALL_STAGING = YES 14*4882a593SmuzhiyunPCRE_CONFIG_SCRIPTS = pcre-config 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# They're required for host-libglib2 17*4882a593SmuzhiyunHOST_PCRE_CONF_OPTS = --enable-unicode-properties 18*4882a593Smuzhiyun 19*4882a593Smuzhiyunifneq ($(BR2_INSTALL_LIBSTDCPP),y) 20*4882a593Smuzhiyun# pcre will use the host g++ if a cross version isn't available 21*4882a593SmuzhiyunPCRE_CONF_OPTS = --disable-cpp 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunPCRE_CONF_OPTS += --enable-pcre8 25*4882a593SmuzhiyunPCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_16),--enable-pcre16,--disable-pcre16) 26*4882a593SmuzhiyunPCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32) 27*4882a593SmuzhiyunPCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf) 28*4882a593SmuzhiyunPCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties) 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun$(eval $(autotools-package)) 31*4882a593Smuzhiyun$(eval $(host-autotools-package)) 32