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
|
2022-06-27 13:11:47 +00:00
|
|
|
PKG_VERSION:=0.16
|
2023-05-18 11:07:23 +00:00
|
|
|
PKG_RELEASE:=3
|
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/
|
2022-06-27 13:11:47 +00:00
|
|
|
PKG_HASH:=ac8a3dd6820daaca579b23fbc74664310fbc3d67f52f6707cda67d21dde5570f
|
2011-02-07 18:16:31 +00:00
|
|
|
|
2020-07-19 20:34:45 +00:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-04-26 15:47:24 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:json-c:json-c
|
2012-10-19 15:34:28 +00:00
|
|
|
|
2020-07-19 20:34:45 +00:00
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
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
|
|
|
|
2020-11-14 13:33:23 +00:00
|
|
|
CMAKE_HOST_OPTIONS += \
|
2022-07-04 07:56:19 +00:00
|
|
|
-DDISABLE_EXTRA_LIBS=TRUE \
|
2021-10-19 07:54:59 +00:00
|
|
|
-DBUILD_SHARED_LIBS=FALSE
|
2020-11-14 13:33:23 +00:00
|
|
|
|
2022-07-04 07:56:19 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DDISABLE_EXTRA_LIBS=TRUE
|
|
|
|
|
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
|
|
|
|
|
2020-07-19 20:34:45 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/json-c.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/json-c.pc
|
|
|
|
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))
|