2011-02-07 18:16:31 +00:00
|
|
|
#
|
2014-01-12 12:06:57 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2011-02-07 18:16:31 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=json-c
|
2015-03-11 15:54:33 +00:00
|
|
|
PKG_VERSION:=0.12
|
|
|
|
PKG_RELEASE:=1
|
2011-02-07 18:16:31 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2013-05-29 10:31:53 +00:00
|
|
|
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
|
2015-03-11 15:54:33 +00:00
|
|
|
PKG_MD5SUM:=3ca4bbb881dfc4017e8021b5e0a8c491
|
2011-02-07 18:16:31 +00:00
|
|
|
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
2011-03-06 21:42:48 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-02-07 18:16:31 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2016-06-07 06:58:31 +00:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2012-10-08 11:41:02 +00:00
|
|
|
|
2011-02-07 18:16:31 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2013-07-01 15:36:12 +00:00
|
|
|
define Package/libjson-c
|
2011-02-07 18:16:31 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=javascript object notation
|
|
|
|
URL:=http://oss.metaparadigm.com/json-c/
|
|
|
|
endef
|
|
|
|
|
2013-07-01 15:36:12 +00:00
|
|
|
define Package/libjson-c/description
|
2011-02-07 18:16:31 +00:00
|
|
|
This package contains a library for javascript object notation backends.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2013-05-29 10:31:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/json-c $(1)/usr/include/
|
2011-02-07 18:16:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2013-05-29 10:31:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.{a,so*} $(1)/usr/lib/
|
2011-02-07 18:16:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2013-05-29 10:31:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-c.pc $(1)/usr/lib/pkgconfig/
|
2011-02-07 18:16:31 +00:00
|
|
|
endef
|
|
|
|
|
2013-07-01 15:36:12 +00:00
|
|
|
define Package/libjson-c/install
|
2011-02-07 18:16:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2013-05-29 10:31:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.so.* $(1)/usr/lib/
|
2011-02-07 18:16:31 +00:00
|
|
|
endef
|
|
|
|
|
2013-07-01 15:36:12 +00:00
|
|
|
$(eval $(call BuildPackage,libjson-c))
|