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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://protobuf-c.googlecode.com/files
16 PKG_MD5SUM:=73ff0c8df50d2eee75269ad8f8c07dc8
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libprotobuf-c
23 TITLE:=Protocol Buffers library
26 URL:=http://code.google.com/p/protobuf-c/
29 define Package/libprotobuf-c/description
30 Runtime library to use Google Protocol Buffers from C applications.
31 Protocol Buffers are a way of encoding structured data in an efficient yet
32 extensible format. Google uses Protocol Buffers for almost all of its
33 internal RPC protocols and file formats.
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include/google/protobuf-c
44 $(PKG_INSTALL_DIR)/usr/include/google/protobuf-c/* \
45 $(1)/usr/include/google/protobuf-c/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.{a,la,so*} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
52 define Package/libprotobuf-c/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.so.* $(1)/usr/lib/
57 $(eval $(call BuildPackage,libprotobuf-c))