treewide: build CMake projects with Ninja
[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
23 CMAKE_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include ../../devel/ninja/ninja-cmake.mk
27
28 define Package/yajl
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Yet Another JSON Library
32 URL:=https://lloyd.github.io/yajl
33 endef
34
35 define Package/yajl/description
36 Yet Another JSON Library. YAJL is a small event-driven (SAX-style)
37 JSON parser written in ANSI C, and a small validating JSON generator.
38 YAJL is released under the ISC license.
39
40 YAJL was created by Lloyd Hilaiel.
41 endef
42
43 define Package/yajl/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
46 endef
47
48 $(eval $(call BuildPackage,yajl))