2 # Copyright (C) 2011 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
10 PKG_NAME
:=libprotobuf-c
14 PKG_SOURCE
:=protobuf-c-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/protobuf-c
/protobuf-c
/releases
/download
/v
$(PKG_VERSION
)
16 PKG_HASH
:=51472d3a191d6d7b425e32b612e477c06f73fe23e07f6a6a839b11808e9d2267
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/protobuf-c-
$(PKG_VERSION
)
18 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/protobuf-c-
$(PKG_VERSION
)
20 PKG_MAINTAINER
:=Rosen Penev
<rosenp@gmail.com
>
23 PKG_BUILD_DEPENDS
:=protobuf-c
/host
24 HOST_BUILD_DEPENDS
:=protobuf
/host
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/host-build.mk
32 define Package
/libprotobuf-c
33 TITLE
:=Protocol Buffers library
36 URL
:=https
://github.com
/protobuf-c
/protobuf-c
39 define Package
/libprotobuf-c
/description
40 Runtime library to use Google Protocol Buffers from C applications.
41 Protocol Buffers are a way of encoding structured data in an efficient yet
42 extensible format. Google uses Protocol Buffers for almost
all of its
43 internal RPC protocols and file formats.
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libprotobuf-c.
{a
,la
,so
*} $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
60 define Package
/libprotobuf-c
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libprotobuf-c.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libprotobuf-c
))
66 $(eval
$(call HostBuild
))