lualanes: update to version 3.16.3 and use tarball
[feed/packages.git] / lang / lualanes / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lualanes
11 PKG_VERSION:=3.16.3
12 PKG_RELEASE:=1
13
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)
18
19 PKG_MAINTAINER:=Vladimir Malyutin <first-leon@yandex.ru>
20 PKG_LICENSE:=BSD-3-Clause
21 PKG_LICENSE_FILES:=COPYRIGHT
22
23 PKG_BUILD_DEPENDS:=lua/host
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/lualanes
29 SUBMENU:=Lua
30 SECTION:=lang
31 CATEGORY:=Languages
32 TITLE:=LuaLanes
33 URL:=http://lualanes.github.io/lanes/
34 DEPENDS:=+lua +luac +liblua +libpthread
35 endef
36
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.
42
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.
46
47 Lanes supports Lua 5.1, 5.2 and 5.3
48 endef
49
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
55 endef
56
57 $(eval $(call BuildPackage,lualanes))