2 # Copyright (C) 2007 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
:=http
://protobuf.googlecode.com
/files
16 PKG_MD5SUM
:=ed436802019c9e1f40cc750eaf78f318
18 PKG_BUILD_DEPENDS
:=protobuf
/host
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/host-build.mk
25 define Package
/protobuf
28 TITLE
:=A structured data encoding library
29 URL
:=http
://code.google.com
/p
/protobuf
/
30 DEPENDS
:=+zlib
+libpthread
+libstdcpp
31 MAINTAINER
:=Obinou
<obconseil@gmail.com
>
34 define Package
/protobuf
/description
35 Protocol Buffers are a way of encoding structured data in an efficient
36 yet extensible format. Google uses Protocol Buffers for almost
all
37 of its internal RPC protocols and file formats.
40 CONFIGURE_ARGS
+= --with-protoc
=$(STAGING_DIR_HOST
)/bin
/protoc
42 define Build
/InstallDev
48 $(PKG_INSTALL_DIR
)/usr
/include/* \
52 $(PKG_INSTALL_DIR
)/usr
/lib
/* \
56 define Package
/protobuf
/install
61 $(PKG_INSTALL_DIR
)/usr
/lib
/libprotoc.so
* \
65 $(PKG_INSTALL_DIR
)/usr
/lib
/libprotobuf-lite.so
* \
69 $(PKG_INSTALL_DIR
)/usr
/lib
/libprotobuf.so
* \
73 $(eval
$(call BuildPackage
,protobuf
))
74 $(eval
$(call HostBuild
))