source: trunk/package/libjson-c/Makefile @ 25405

Last change on this file since 25405 was 25405, checked in by nbd, 5 years ago

libjson-c: add to core (instead of packages)

File size: 1.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=json-c
11PKG_VERSION:=0.9
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
16PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23TARGET_CFLAGS += $(FPIC)
24
25define Package/libjson
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=javascript object notation
29  URL:=http://oss.metaparadigm.com/json-c/
30endef
31
32define Package/libjson/description
33 This package contains a library for javascript object notation backends.
34endef
35
36define 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/
43endef
44
45define Package/libjson/install
46        $(INSTALL_DIR) $(1)/usr/lib
47        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
48endef
49
50$(eval $(call BuildPackage,libjson))
Note: See TracBrowser for help on using the repository browser.