0922bc690d
Add upstream patch fixing conflict with musl defined major/minor macros. Fixes: http://autobuild.buildroot.net/results/fc5/fc5ea266eecb6ecab011ea3542f0bb680fb8fb3b/ http://autobuild.buildroot.net/results/3b3/3b3fe16978f19e65a6c6dc1712d72cb349eed0d5/ http://autobuild.buildroot.net/results/1da/1dac9d5e49342700036c90ed4785fff7398b8966/ Cc: Mario J. Rugiero <mrugiero@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Mario J. Rugiero <mrugiero@gmail.com> Tested-by: Mario J. Rugiero <mrugiero@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
992 B
Makefile
30 lines
992 B
Makefile
################################################################################
|
|
#
|
|
# protobuf
|
|
#
|
|
################################################################################
|
|
|
|
# When bumping this package, make sure to also verify if the
|
|
# python-protobuf package still works, as they share the same
|
|
# version/site variables.
|
|
PROTOBUF_VERSION = 3.2.0
|
|
PROTOBUF_SOURCE = protobuf-cpp-$(PROTOBUF_VERSION).tar.gz
|
|
PROTOBUF_SITE = https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)
|
|
PROTOBUF_LICENSE = BSD-3-Clause
|
|
PROTOBUF_LICENSE_FILES = LICENSE
|
|
|
|
# N.B. Need to use host protoc during cross compilation.
|
|
PROTOBUF_DEPENDENCIES = host-protobuf
|
|
PROTOBUF_CONF_OPTS = --with-protoc=$(HOST_DIR)/usr/bin/protoc
|
|
|
|
PROTOBUF_INSTALL_STAGING = YES
|
|
|
|
PROTOBUF_PATCH = https://github.com/google/protobuf/commit/416f90939d4de58fe1a4e2489120010313183291.patch
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
PROTOBUF_DEPENDENCIES += zlib
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|