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
)-cpp-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/google
/protobuf
/releases
/download
/v
$(PKG_VERSION
)
16 PKG_MD5SUM
:=bd5e3eed635a8d32e2b99658633815ef
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
:=https
://github.com
/google
/protobuf
34 DEPENDS
:=+zlib
+libpthread
+libstdcpp
35 MAINTAINER
:=Per Sandström
<per.j.sandstrom@gmail.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_HOSTPKG
)/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
))