packages: ipv6/tayga: move static mappings to 'firewall' config
[openwrt/svn-archive/archive.git] / libs / protobuf-c / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=protobuf-c
11 PKG_VERSION:=0.15
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://protobuf-c.googlecode.com/files
16 PKG_MD5SUM:=73ff0c8df50d2eee75269ad8f8c07dc8
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libprotobuf-c
23 TITLE:=Protocol Buffers library
24 SECTION:=libs
25 CATEGORY:=Libraries
26 URL:=http://code.google.com/p/protobuf-c/
27 endef
28
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.
34 endef
35
36 CONFIGURE_ARGS += \
37 --enable-shared \
38 --enable-static \
39 --disable-protoc
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include/google/protobuf-c
43 $(CP) \
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/
50 endef
51
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/
55 endef
56
57 $(eval $(call BuildPackage,libprotobuf-c))