1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# capnproto 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunCAPNPROTO_VERSION = 0.8.0 8*4882a593SmuzhiyunCAPNPROTO_SITE = $(call github,capnproto,capnproto,v$(CAPNPROTO_VERSION)) 9*4882a593SmuzhiyunCAPNPROTO_LICENSE = MIT 10*4882a593SmuzhiyunCAPNPROTO_LICENSE_FILES = LICENSE 11*4882a593SmuzhiyunCAPNPROTO_CPE_ID_VENDOR = capnproto 12*4882a593SmuzhiyunCAPNPROTO_INSTALL_STAGING = YES 13*4882a593Smuzhiyun# Fetched from Github with no configure script 14*4882a593SmuzhiyunCAPNPROTO_AUTORECONF = YES 15*4882a593SmuzhiyunCAPNPROTO_CONF_OPTS = --with-external-capnp 16*4882a593Smuzhiyun# Needs the capnproto compiler on the host to generate C++ code from message 17*4882a593Smuzhiyun# definitions 18*4882a593SmuzhiyunCAPNPROTO_DEPENDENCIES = host-autoconf host-capnproto 19*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 20*4882a593SmuzhiyunCAPNPROTO_CONF_ENV += LIBS=-latomic 21*4882a593Smuzhiyunendif 22*4882a593Smuzhiyun# The actual source to be compiled is within a 'c++' subdirectory 23*4882a593SmuzhiyunCAPNPROTO_SUBDIR = c++ 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 26*4882a593SmuzhiyunCAPNPROTO_CONF_OPTS += --with-openssl 27*4882a593SmuzhiyunCAPNPROTO_DEPENDENCIES += openssl 28*4882a593Smuzhiyunelse 29*4882a593SmuzhiyunCAPNPROTO_CONF_OPTS += --without-openssl 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun$(eval $(autotools-package)) 33*4882a593Smuzhiyun$(eval $(host-autotools-package)) 34