2007-08-27 23:10:35 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id: Makefile 6643 2007-03-23 08:11:08Z nico $
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=json-c
|
|
|
|
PKG_VERSION:=0.7
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
|
|
|
|
PKG_MD5SUM:=
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-08-28 18:09:21 +03:00
|
|
|
define Package/libjson
|
2007-08-27 23:10:35 +03:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=javascript object notation
|
|
|
|
URL:=http://oss.metaparadigm.com/json-c/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/libjson/description
|
|
|
|
This package contains a library for javascript object notation backends.
|
|
|
|
endef
|
|
|
|
|
2007-08-27 23:10:35 +03:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/include
|
2007-12-05 20:45:35 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/lib
|
2007-12-05 20:45:35 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
2007-12-05 20:45:35 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
|
2007-08-27 23:10:35 +03:00
|
|
|
endef
|
|
|
|
|
2007-08-28 18:09:21 +03:00
|
|
|
define Package/libjson/install
|
2007-08-27 23:10:35 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2007-08-28 18:09:21 +03:00
|
|
|
$(eval $(call BuildPackage,libjson))
|