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
|
2016-09-23 22:39:47 +00:00
|
|
|
PKG_VERSION:=0.12.1
|
2015-03-11 15:54:33 +00:00
|
|
|
PKG_RELEASE:=1
|
2011-02-07 18:16:31 +00:00
|
|
|
|
2016-09-23 22:39:47 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nodoc.tar.gz
|
2013-05-29 10:31:53 +00:00
|
|
|
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=5a617da9aade997938197ef0f8aabd7f97b670c216dc173977e1d56eef9e1291
|
2016-09-23 22:39:47 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
2011-02-07 18:16:31 +00:00
|
|
|
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:json-c_project:json-c
|
2012-10-19 15:34:28 +00:00
|
|
|
|
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
|
|
|
|
|
2017-05-04 13:45:35 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC) -Wno-implicit-fallthrough
|
2011-02-07 18:16:31 +00:00
|
|
|
|
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))
|