0426fcec07c05cd2d21ae3cdc0cbf47dd6fd7785
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / protobuf / protobuf.mk
1 ################################################################################
2 #
3 # protobuf
4 #
5 ################################################################################
6
7 PROTOBUF_VERSION = v2.5.0
8 PROTOBUF_SITE = $(call github,google,protobuf,$(PROTOBUF_VERSION))
9 PROTOBUF_LICENSE = BSD-3c
10 PROTOBUF_LICENSE_FILES = COPYING.txt
11 # no configure script
12 PROTOBUF_AUTORECONF = YES
13
14 # N.B. Need to use host protoc during cross compilation.
15 PROTOBUF_DEPENDENCIES = host-protobuf
16 PROTOBUF_CONF_OPTS = --with-protoc=$(HOST_DIR)/usr/bin/protoc
17
18 PROTOBUF_INSTALL_STAGING = YES
19
20 ifeq ($(BR2_PACKAGE_ZLIB),y)
21 PROTOBUF_DEPENDENCIES += zlib
22 endif
23
24 $(eval $(autotools-package))
25 $(eval $(host-autotools-package))