2011-02-08 02:16:31 +08:00
|
|
|
#
|
2014-01-12 20:06:57 +08:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2011-02-08 02:16:31 +08: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
|
2013-05-29 18:31:53 +08:00
|
|
|
PKG_VERSION:=0.11
|
2011-02-08 02:16:31 +08:00
|
|
|
PKG_RELEASE:=2
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2013-05-29 18:31:53 +08:00
|
|
|
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
|
|
|
|
PKG_MD5SUM:=aa02367d2f7a830bf1e3376f77881e98
|
2011-02-08 02:16:31 +08:00
|
|
|
|
2012-10-19 23:34:28 +08:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
2011-03-07 05:42:48 +08:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-02-08 02:16:31 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2012-10-08 19:41:02 +08:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
|
|
|
|
2011-02-08 02:16:31 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2013-07-01 23:36:12 +08:00
|
|
|
define Package/libjson-c
|
2011-02-08 02:16:31 +08:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=javascript object notation
|
|
|
|
URL:=http://oss.metaparadigm.com/json-c/
|
|
|
|
endef
|
|
|
|
|
2013-07-01 23:36:12 +08:00
|
|
|
define Package/libjson-c/description
|
2011-02-08 02:16:31 +08:00
|
|
|
This package contains a library for javascript object notation backends.
|
|
|
|
endef
|
|
|
|
|
2013-07-01 23:36:12 +08:00
|
|
|
define Package/libjson
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libjson-c
|
|
|
|
TITLE:=javascript object notation (compat library)
|
|
|
|
URL:=http://oss.metaparadigm.com/json-c/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libjson/description
|
|
|
|
This package contains a compatibility library for packages that have not
|
|
|
|
been adapted to the json-c library rename yet
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2011-02-08 02:16:31 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
|
2013-05-29 18:31:53 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/json-c $(1)/usr/include/
|
2011-02-08 02:16:31 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2013-07-01 23:36:12 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
|
2013-05-29 18:31:53 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.{a,so*} $(1)/usr/lib/
|
2011-02-08 02:16:31 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2013-05-29 18:31:53 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-c.pc $(1)/usr/lib/pkgconfig/
|
2014-01-12 20:06:57 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
|
2011-02-08 02:16:31 +08:00
|
|
|
endef
|
|
|
|
|
2013-07-01 23:36:12 +08:00
|
|
|
define Package/libjson-c/install
|
2011-02-08 02:16:31 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2013-05-29 18:31:53 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.so.* $(1)/usr/lib/
|
2011-02-08 02:16:31 +08:00
|
|
|
endef
|
|
|
|
|
2013-07-01 23:36:12 +08:00
|
|
|
define Package/libjson/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libjson-c))
|
2011-02-08 02:16:31 +08:00
|
|
|
$(eval $(call BuildPackage,libjson))
|