2 # Copyright (C) 2014, 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Charles Southerland
<charlie@stuphlabs.com
>
15 PKG_LICENSE_FILES
:=COPYING
16 PKG_REV
:=66cb08ca2ad8581080b626a75dfca266a890afb2
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_MIRROR_HASH
:=95bfdb37f864318fc3c2ee736a747d4902d279a88f361770c89e60ff5e1d6f63
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=$(PKG_REV
)
22 PKG_SOURCE_URL
:=git
://github.com
/lloyd
/yajl.git
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
31 TITLE
:=Yet Another JSON Library
32 URL
:=http
://lloyd.github.io
/yajl
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.
40 YAJL was created by Lloyd Hilaiel.
46 -DCMAKE_BUILD_TYPE
:String
="Release"
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/yajl
$(1)/usr
/include/
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyajl.so
* $(1)/usr
/lib
/
55 define Package
/yajl
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyajl.so
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,yajl
))