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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/LuaLanes
/lanes
/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_HASH
:=22cfa836de4be14fe588b9cd34e936d6f61ec6f4096d8ae30d4ec35855d9608f
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/lanes-
$(PKG_VERSION
)
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))