2 # Copyright (C) 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
:=Dirk Chang
<dirk@kooiot.com
>
15 PKG_LICENSE_FILES
:=LICENSE
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=http
://www.kyne.com.au
/~mark
/software
/download
/
19 PKG_MD5SUM
:=24f270663e9f6ca8ba2a02cef19f7963
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 HOST_BUILD_DEPENDS
:=lua
/host
24 include $(INCLUDE_DIR
)/host-build.mk
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 define Package
/lua-cjson
32 TITLE
:=Lua CJSON parser
33 URL
:=https
://github.com
/mpx
/lua-cjson
37 define Package
/lua-cjson
/description
38 Lua CJSON is a fast JSON encoding
/parsing module for Lua.
44 CMAKE_HOST_OPTIONS
+= \
47 define Package
/lua-cjson
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/cjson.so
$(1)/usr
/lib
/lua
/
51 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/cjson
52 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/lua
/cjson
/util.lua
$(1)/usr
/lib
/lua
/cjson
55 $(eval
$(call HostBuild
))
56 $(eval
$(call BuildPackage
,lua-cjson
))