2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 6643 2007-03-23 08:11:08Z nico $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://oss.metaparadigm.com
/json-c
/
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libjson
24 TITLE
:=javascript object notation
25 URL
:=http
://oss.metaparadigm.com
/json-c
/
28 define Package
/libjson
/description
29 This package contains a library for javascript object notation backends.
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 DESTDIR
="$(PKG_INSTALL_DIR)" \
38 define Build
/InstallDev
39 mkdir
-p
$(1)/usr
/include
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/json
$(1)/usr
/include/
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjson.
{a
,so
*} $(1)/usr
/lib
/
43 mkdir
-p
$(1)/usr
/lib
/pkgconfig
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/json.
pc $(1)/usr
/lib
/pkgconfig
/
47 define Build
/UninstallDev
48 rm -rf
$(1)/usr
/include/json \
49 $(1)/usr
/lib
/libjson.
{a
,so
*} \
50 $(1)/usr
/lib
/pkgconfig
/json.
pc
53 define Package
/libjson
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjson.so.
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,libjson
))