noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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.2.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 PKG_FIXUP:=autoreconf
22
23 PKG_LICENSE:=BSD-2c
24
25 PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libprotobuf-c
30 TITLE:=Protocol Buffers library
31 SECTION:=libs
32 CATEGORY:=Libraries
33 URL:=http://code.google.com/p/protobuf-c/
34 endef
35
36 define Package/libprotobuf-c/description
37 Runtime library to use Google Protocol Buffers from C applications.
38 Protocol Buffers are a way of encoding structured data in an efficient yet
39 extensible format. Google uses Protocol Buffers for almost all of its
40 internal RPC protocols and file formats.
41 endef
42
43 CONFIGURE_ARGS += \
44 --enable-shared \
45 --enable-static \
46 --disable-protoc
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.{a,la,so*} $(1)/usr/lib/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libprotobuf-c/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libprotobuf-c.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libprotobuf-c))