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_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_VERSION
:=$(PKG_REV
)
21 PKG_SOURCE_URL
:=git
://github.com
/lloyd
/yajl.git
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
30 TITLE
:=Yet Another JSON Library
31 URL
:=http
://lloyd.github.io
/yajl
34 define Package
/yajl
/description
35 Yet Another JSON Library. YAJL is a small event-driven
(SAX-style
)
36 JSON parser written in ANSI C
, and a small validating JSON generator.
37 YAJL is released under the ISC license.
39 YAJL was created by Lloyd Hilaiel.
45 -DCMAKE_BUILD_TYPE
:String
="Release"
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/include
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/yajl
$(1)/usr
/include/
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyajl.so
* $(1)/usr
/lib
/
54 define Package
/yajl
/install
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyajl.so
* $(1)/usr
/lib
/
59 $(eval
$(call BuildPackage
,yajl
))