2 # Copyright (C) 2007-2014 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
15 PKG_SOURCE_URL
:=https
://github.com
/LuaLanes
/lanes.git
16 PKG_SOURCE_VERSION
:=489f7caf9ed893c1e8efc5c1b6ecb757a2131932
17 PKG_MIRROR_HASH
:=667042a2d773bb4d6139abca1ed2b62c2b6b3f4dd7c5446914de548625ea08f8
19 PKG_MAINTAINER
:=Vladimir Malyutin
<first-leon@yandex.ru
>
20 PKG_LICENSE
:=BSD-3-Clause
21 PKG_LICENSE_FILES
:=COPYRIGHT
23 PKG_BUILD_DEPENDS
:=lua
/host
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 define Package
/lualanes
33 URL
:=http
://lualanes.github.io
/lanes
/
34 DEPENDS
:=+lua
+luac
+liblua
+libpthread
37 define Package
/lualanes
/description
38 Lua Lanes is a Lua extension library providing the possibility to run
39 multiple Lua states in parallel. It is intended to be used for optimizing
40 performance on multicore CPU
's and to study ways to make Lua programs
41 naturally parallel to begin with.
43 Lanes is included into your software by the regular require "lanes" method.
44 No C side programming is needed; all APIs are Lua side, and most existing
45 extension modules should work seamlessly together with the multiple lanes.
47 Lanes supports Lua 5.1, 5.2 and 5.3
50 define Package/lualanes/install
51 $(INSTALL_DIR) $(1)/usr/lib/lua
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/lua/lmod/lanes.lua $(1)/usr/lib/lua/
53 $(INSTALL_DIR) $(1)/usr/lib/lua/lanes
54 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/lua/cmod/core.so $(1)/usr/lib/lua/lanes/core.so
57 $(eval $(call BuildPackage,lualanes))