added libjson-c. added driver, webinterface and userspace daemon for the
[openwrt/svn-archive/archive.git] / package / libjson-c / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 6643 2007-03-23 08:11:08Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=json-c
12 PKG_VERSION:=0.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
17 PKG_MD5SUM:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/json-c
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=javascript object notation
25 DESCRIPTION:=library for javascript object notation backends
26 URL:=http://oss.metaparadigm.com/json-c/
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
32 DESTDIR="$(PKG_INSTALL_DIR)" \
33 all install
34 endef
35
36 define Build/InstallDev
37 mkdir -p $(STAGING_DIR)/
38 $(CP) -r $(PKG_INSTALL_DIR)/* $(STAGING_DIR)
39 endef
40
41 define Package/libpcap/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
44 endef
45
46 $(eval $(call BuildPackage,json-c))