1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# raptor 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunRAPTOR_VERSION = 2.0.15 8*4882a593SmuzhiyunRAPTOR_SOURCE = raptor2-$(RAPTOR_VERSION).tar.gz 9*4882a593SmuzhiyunRAPTOR_SITE = http://download.librdf.org/source 10*4882a593SmuzhiyunRAPTOR_DEPENDENCIES = libxml2 libxslt 11*4882a593SmuzhiyunRAPTOR_LICENSE = GPL-2.0+ or LGPL-2.1+ or Apache-2.0+ 12*4882a593SmuzhiyunRAPTOR_LICENSE_FILES = LICENSE.txt 13*4882a593SmuzhiyunRAPTOR_CPE_ID_VENDOR = librdf 14*4882a593SmuzhiyunRAPTOR_CPE_ID_PRODUCT = raptor_rdf_syntax_library 15*4882a593SmuzhiyunRAPTOR_INSTALL_STAGING = YES 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# Flag is added to make sure the patch is applied for the configure.ac of raptor. 18*4882a593SmuzhiyunRAPTOR_AUTORECONF = YES 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun# 0002-Calcualte-max-nspace-declarations-correctly-for-XML-.patch 21*4882a593SmuzhiyunRAPTOR_IGNORE_CVES += CVE-2017-18926 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunRAPTOR_CONF_OPTS =\ 24*4882a593Smuzhiyun --with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config \ 25*4882a593Smuzhiyun --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCURL),y) 28*4882a593SmuzhiyunRAPTOR_DEPENDENCIES += libcurl 29*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-curl-config=$(STAGING_DIR)/usr/bin/curl-config 30*4882a593Smuzhiyunelse 31*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-curl-config=no 32*4882a593Smuzhiyunendif 33*4882a593Smuzhiyun 34*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_YAJL),y) 35*4882a593SmuzhiyunRAPTOR_DEPENDENCIES += yajl 36*4882a593SmuzhiyunRAPTOR_CONF_ENV += LIBS="-lm" 37*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-yajl=$(STAGING_DIR)/usr 38*4882a593Smuzhiyunelse 39*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-yajl=no 40*4882a593Smuzhiyunendif 41*4882a593Smuzhiyun 42*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ICU),y) 43*4882a593SmuzhiyunRAPTOR_DEPENDENCIES += icu 44*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-icu-config=$(STAGING_DIR)/usr/bin/icu-config 45*4882a593Smuzhiyunelse 46*4882a593SmuzhiyunRAPTOR_CONF_OPTS += --with-icu-config=no 47*4882a593Smuzhiyunendif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun$(eval $(autotools-package)) 50