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-09-16 23:02:40 +00:00
|
|
|
PKG_VERSION:=0.15
|
2021-06-06 15:15:08 +00:00
|
|
|
PKG_RELEASE:=2
|
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-09-16 23:02:40 +00:00
|
|
|
PKG_HASH:=99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878
|
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
|
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
|
|
|
|
2021-06-06 15:15:08 +00:00
|
|
|
PKG_FLAGS := nonshared
|
2020-07-19 20:34:45 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
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 += \
|
|
|
|
-DCMAKE_SKIP_RPATH=FALSE \
|
|
|
|
-DCMAKE_MACOSX_RPATH=1 \
|
|
|
|
-DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib"
|
|
|
|
|
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))
|