2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://oss.metaparadigm.com
/json-c
/
16 PKG_MD5SUM
:=3a13d264528dcbaf3931b0cede24abae
21 include $(INCLUDE_DIR
)/package.mk
23 TARGET_CFLAGS
+= $(FPIC
)
25 define Package
/libjson
28 TITLE
:=javascript object notation
29 URL
:=http
://oss.metaparadigm.com
/json-c
/
32 define Package
/libjson
/description
33 This package contains a library for javascript object notation backends.
36 define Build
/InstallDev
37 $(INSTALL_DIR
) $(1)/usr
/include
38 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/json
$(1)/usr
/include/
39 $(INSTALL_DIR
) $(1)/usr
/lib
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjson.
{a
,so
*} $(1)/usr
/lib
/
41 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/json.
pc $(1)/usr
/lib
/pkgconfig
/
45 define Package
/libjson
/install
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjson.so.
* $(1)/usr
/lib
/
50 $(eval
$(call BuildPackage
,libjson
))