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
)
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/cmake.mk
26 define Package
/lua-cjson
30 TITLE
:=Lua CJSON parser
31 URL
:=https
://github.com
/mpx
/lua-cjson
32 DEPENDS
:= +lua
+libzmq
35 define Package
/lua-cjson
/description
36 Lua CJSON is a fast JSON encoding
/parsing module for Lua.
42 define Package
/lua-cjson
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/cjson.so
$(1)/usr
/lib
/lua
/
46 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/cjson
47 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/lua
/cjson
/util.lua
$(1)/usr
/lib
/lua
/cjson
50 $(eval
$(call BuildPackage
,lua-cjson
))