bb496786d3672da4ff87ea50776e184e56a74cd8
[feed/packages.git] / libs / yajl / Makefile
1 #
2 # Copyright (C) 2014, 2015 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:=yajl
11 PKG_VERSION:=2.1.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/lloyd/yajl
16 PKG_SOURCE_VERSION:=$(PKG_VERSION)
17 PKG_MIRROR_HASH:=0cd74320be0270a07931e42d2f14f87a8b3fb664ecb5db58b0e838886211ab1f
18
19 PKG_MAINTAINER:=Charles Southerland <charlie@stuphlabs.com>
20 PKG_LICENSE:=ISC
21 PKG_LICENSE_FILES:=COPYING
22 PKG_CPE_ID:=cpe:/a:yajl_project:yajl
23
24 CMAKE_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/cmake.mk
28
29 define Package/yajl
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Yet Another JSON Library
33 URL:=https://lloyd.github.io/yajl
34 endef
35
36 define Package/yajl/description
37 Yet Another JSON Library. YAJL is a small event-driven (SAX-style)
38 JSON parser written in ANSI C, and a small validating JSON generator.
39 YAJL is released under the ISC license.
40
41 YAJL was created by Lloyd Hilaiel.
42 endef
43
44 define Package/yajl/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,yajl))