add myself as a maintainer for various packages
[openwrt.git] / package / libs / libjson-c / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=json-c
11 PKG_VERSION:=0.9
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
16 PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 TARGET_CFLAGS += $(FPIC)
26
27 define Package/libjson
28   SECTION:=libs
29   CATEGORY:=Libraries
30   TITLE:=javascript object notation
31   URL:=http://oss.metaparadigm.com/json-c/
32 endef
33
34 define Package/libjson/description
35  This package contains a library for javascript object notation backends.
36 endef
37
38 define Build/InstallDev
39         $(INSTALL_DIR) $(1)/usr/include
40         $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
41         $(INSTALL_DIR) $(1)/usr/lib
42         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
43         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
44         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
45 endef
46
47 define Package/libjson/install
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libjson))