2 # Copyright (C) 2007-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://github.com/google/protobuf/releases/download/v$(PKG_VERSION)
16 PKG_MD5SUM:=11aaac2d704eef8efd1867a807865d85
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
21 PKG_BUILD_DEPENDS:=protobuf/host
22 PKG_USE_MIPS16:=0# MIPS16 prevents protobuf's usage of the 'sync' asm-opcode
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
29 define Package/protobuf
32 TITLE:=A structured data encoding library
33 URL:=http://code.google.com/p/protobuf/
34 DEPENDS:=+zlib +libpthread +libstdcpp
35 MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
38 define Package/protobuf/description
39 Protocol Buffers are a way of encoding structured data in an efficient
40 yet extensible format. Google uses Protocol Buffers for almost all
41 of its internal RPC protocols and file formats.
44 CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR)/host/bin/protoc
46 define Build/InstallDev
52 $(PKG_INSTALL_DIR)/usr/include/* \
56 $(PKG_INSTALL_DIR)/usr/lib/* \
60 define Package/protobuf/install
65 $(PKG_INSTALL_DIR)/usr/lib/libprotoc.so* \
69 $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-lite.so* \
73 $(PKG_INSTALL_DIR)/usr/lib/libprotobuf.so* \
77 $(eval $(call BuildPackage,protobuf))
78 $(eval $(call HostBuild))