[packages] pulseaudio: change json dependency
[packages.git] / libs / json-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:=json-c
11 PKG_VERSION:=0.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
17
18 PKG_INSTALL = 1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/json-c
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=A JSON implementation in C
26   URL:=http://oss.metaparadigm.com/json-c/
27 endef
28
29 define Package/json-c/description
30  JSON-C implements a reference counting object model that allows you to \
31  easily construct JSON objects in C, output them as JSON formatted strings \
32  and parse JSON formatted strings back into the C representation of JSON objects.
33 endef
34
35 define Package/json-c/install
36         $(INSTALL_DIR) \
37                 $(1)/usr/lib
38         $(CP) \
39                 $(PKG_INSTALL_DIR)/usr/lib/libjson.so* \
40                 $(1)/usr/lib
41 endef
42
43 define Build/InstallDev
44         $(INSTALL_DIR) \
45                 $(1)/usr/lib \
46                 $(1)/usr/lib/pkgconfig \
47                 $(1)/usr/include/json
48         $(CP) \
49                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc \
50                 $(1)/usr/lib/pkgconfig
51         $(CP) \
52                 $(PKG_INSTALL_DIR)/usr/include/json/* \
53                 $(1)/usr/include/json
54         $(CP) \
55                 $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} \
56                 $(1)/usr/lib
57 endef
58
59 $(eval $(call BuildPackage,json-c))