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://oss.metaparadigm.com/json-c/$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
20 include $(INCLUDE_DIR)/package.mk
25 TITLE:=A JSON implementation in C
26 URL:=http://oss.metaparadigm.com/json-c/
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.
35 define Package/json-c/install
39 $(PKG_INSTALL_DIR)/usr/lib/libjson.so* \
43 define Build/InstallDev
46 $(1)/usr/lib/pkgconfig \
49 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc \
50 $(1)/usr/lib/pkgconfig
52 $(PKG_INSTALL_DIR)/usr/include/json/* \
55 $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} \
59 $(eval $(call BuildPackage,json-c))