2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-15 09:51:27 +01:00
|
|
|
#
|
|
|
|
# protobuf
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2016-10-22 16:00:19 +02:00
|
|
|
# When bumping this package, make sure to also verify if the
|
|
|
|
# python-protobuf package still works, as they share the same
|
|
|
|
# version/site variables.
|
2017-05-12 09:35:03 +02:00
|
|
|
PROTOBUF_VERSION = 3.3.0
|
2017-04-21 18:06:37 +02:00
|
|
|
PROTOBUF_SOURCE = protobuf-cpp-$(PROTOBUF_VERSION).tar.gz
|
|
|
|
PROTOBUF_SITE = https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)
|
2017-03-30 15:43:38 +02:00
|
|
|
PROTOBUF_LICENSE = BSD-3-Clause
|
2015-11-04 22:05:10 +01:00
|
|
|
PROTOBUF_LICENSE_FILES = LICENSE
|
2012-03-15 09:51:27 +01:00
|
|
|
|
|
|
|
# N.B. Need to use host protoc during cross compilation.
|
|
|
|
PROTOBUF_DEPENDENCIES = host-protobuf
|
2017-07-05 13:14:19 +02:00
|
|
|
PROTOBUF_CONF_OPTS = --with-protoc=$(HOST_DIR)/bin/protoc
|
2012-03-15 09:51:27 +01:00
|
|
|
|
2017-05-15 22:38:32 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
PROTOBUF_CONF_ENV += LIBS=-latomic
|
|
|
|
endif
|
|
|
|
|
2012-03-15 09:51:27 +01:00
|
|
|
PROTOBUF_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
PROTOBUF_DEPENDENCIES += zlib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|