liburcu: Update to 0.8.6
[feed/packages.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:=libprotobuf-c
11 PKG_VERSION:=v1.0.1
12 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://github.com/protobuf-c/protobuf-c.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=$(PKG_VERSION)
19
20 PKG_INSTALL:=1
21
22 PKG_LICENSE:=BSD-2c
23
24 PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libprotobuf-c
29 TITLE:=Protocol Buffers library
30 SECTION:=libs
31 CATEGORY:=Libraries
32 URL:=http://code.google.com/p/protobuf-c/
33 endef
34
35 define Package/libprotobuf-c/description
36 Runtime library to use Google Protocol Buffers from C applications.
37 Protocol Buffers are a way of encoding structured data in an efficient yet
38 extensible format. Google uses Protocol Buffers for almost all of its
39 internal RPC protocols and file formats.
40 endef
41
42 CONFIGURE_ARGS += \
43 --enable-shared \
44 --enable-static \
45 --disable-protoc
46
47 define Build/Configure
48 cd $(PKG_BUILD_DIR) && ./autogen.sh
49 $(call Build/Configure/Default)
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.{a,la,so*} $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/libprotobuf-c/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.so.* $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libprotobuf-c))