You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lualanes
  9. PKG_VERSION:=3.13.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/LuaLanes/lanes/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=53a17d7ee11f17ca0543ae5aa640208dcb62d37862a0d0ea450455fae12c8ff1
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/lanes-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Vladimir Malyutin <first-leon@yandex.ru>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYRIGHT
  18. PKG_BUILD_DEPENDS:=lua/host
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/lualanes
  22. SUBMENU:=Lua
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=LuaLanes
  26. URL:=http://lualanes.github.io/lanes/
  27. DEPENDS:=+lua +luac +liblua +libpthread
  28. endef
  29. define Package/lualanes/description
  30. Lua Lanes is a Lua extension library providing the possibility to run
  31. multiple Lua states in parallel. It is intended to be used for optimizing
  32. performance on multicore CPU's and to study ways to make Lua programs
  33. naturally parallel to begin with.
  34. Lanes is included into your software by the regular require "lanes" method.
  35. No C side programming is needed; all APIs are Lua side, and most existing
  36. extension modules should work seamlessly together with the multiple lanes.
  37. Lanes supports Lua 5.1, 5.2 and 5.3
  38. endef
  39. define Package/lualanes/install
  40. $(INSTALL_DIR) $(1)/usr/lib/lua
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/lua/lmod/lanes.lua $(1)/usr/lib/lua/
  42. $(INSTALL_DIR) $(1)/usr/lib/lua/lanes
  43. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/lua/cmod/core.so $(1)/usr/lib/lua/lanes/core.so
  44. endef
  45. $(eval $(call BuildPackage,lualanes))