xref: /OK3568_Linux_fs/buildroot/package/protobuf-c/protobuf-c.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# protobuf-c
4#
5################################################################################
6
7PROTOBUF_C_VERSION = 1.4.0
8PROTOBUF_C_SITE = $(call github,protobuf-c,protobuf-c,v$(PROTOBUF_C_VERSION))
9PROTOBUF_C_DEPENDENCIES = host-protobuf-c
10HOST_PROTOBUF_C_DEPENDENCIES = host-protobuf host-pkgconf
11PROTOBUF_C_MAKE = $(MAKE1)
12PROTOBUF_C_CONF_OPTS = --disable-protoc
13PROTOBUF_C_INSTALL_STAGING = YES
14PROTOBUF_C_LICENSE = BSD-2-Clause
15PROTOBUF_C_LICENSE_FILES = LICENSE
16PROTOBUF_C_AUTORECONF = YES
17HOST_PROTOBUF_C_AUTORECONF = YES
18
19# host-protobuf needs c++11 (since 3.6.0)
20HOST_PROTOBUF_C_CONF_ENV += CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
21
22$(eval $(autotools-package))
23$(eval $(host-autotools-package))
24