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
|
2020-06-18 06:20:15 +00:00
|
|
|
PKG_VERSION:=0.14
|
|
|
|
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/
|
2020-06-18 06:20:15 +00:00
|
|
|
PKG_HASH:=99914e644a25201d82ccefa20430f7515c110923360f9ef46755527c02412afa
|
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
|
|
|
|
2020-06-18 06:20:15 +00:00
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
CMAKE_OPTIONS += -DCMAKE_INSTALL_INCLUDEDIR=$(STAGING_DIR)/usr/include
|
2011-02-07 18:16:31 +00:00
|
|
|
|
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
|
2018-06-14 18:09:29 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2020-06-18 06:20:15 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2011-02-07 18:16:31 +00:00
|
|
|
|
2017-05-04 13:45:35 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC) -Wno-implicit-fallthrough
|
2018-06-14 20:53:58 +00:00
|
|
|
HOST_CFLAGS += -Wno-implicit-fallthrough
|
2018-08-06 15:58:32 +00:00
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
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
|
2018-07-29 07:26:29 +00:00
|
|
|
URL:=https://json-c.github.io/json-c/
|
2020-06-18 06:20:15 +00:00
|
|
|
ABI_VERSION:=5
|
2011-02-07 18:16:31 +00:00
|
|
|
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
|
|
|
|
|
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))
|
2018-06-14 18:09:29 +00:00
|
|
|
$(eval $(call HostBuild))
|