@ -9,19 +9,21 @@ include $(TOPDIR)/rules.mk
PKG_NAME := lualanes
PKG_NAME := lualanes
PKG_VERSION := 3.13.0
PKG_VERSION := 3.13.0
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/LuaLanes/lanes/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/LuaLanes/lanes/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := 53a17d7ee11f17ca0543ae5aa640208dcb62d37862a0d0ea450455fae12c8ff1
PKG_HASH := 53a17d7ee11f17ca0543ae5aa640208dcb62d37862a0d0ea450455fae12c8ff1
PKG_BUILD_DIR := $( BUILD_DIR) /lanes-$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /lanes-$( PKG_VERSION)
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_MAINTAINER := Vladimir Malyutin <first-leon@yandex.ru>
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE_FILES := COPYRIGHT
PKG_BUILD_DEPENDS := lua/host
PKG_BUILD_DEPENDS := lua/host
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / . . / d e v e l / n i n j a / n i n j a - c m a k e . m k
d e f i n e P a c k a g e / l u a l a n e s
d e f i n e P a c k a g e / l u a l a n e s
SUBMENU:= Lua
SUBMENU:= Lua
@ -30,7 +32,6 @@ define Package/lualanes
TITLE:= LuaLanes
TITLE:= LuaLanes
URL:= http://lualanes.github.io/lanes/
URL:= http://lualanes.github.io/lanes/
DEPENDS:= +lua +luac +liblua +libpthread
DEPENDS:= +lua +luac +liblua +libpthread
MAINTAINER:= Vladimir Malyutin <first-leon@yandex.ru>
e n d e f
e n d e f
d e f i n e P a c k a g e / l u a l a n e s / d e s c r i p t i o n
d e f i n e P a c k a g e / l u a l a n e s / d e s c r i p t i o n
@ -46,21 +47,11 @@ extension modules should work seamlessly together with the multiple lanes.
L a n e s s u p p o r t s L u a 5 . 1 , 5 . 2 a n d 5 . 3
L a n e s s u p p o r t s L u a 5 . 1 , 5 . 2 a n d 5 . 3
e n d e f
e n d e f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) all \
CC = " $( TARGET_CC) " \
LUA = " $( STAGING_DIR_HOSTPKG) /bin/lua " \
LUAC = " $( STAGING_DIR_HOSTPKG) /bin/luac " \
LUA_FLAGS = \
LUA_LIBS = -llua \
OPT_FLAGS = " $( TARGET_CFLAGS) -Dpthread_yield=sched_yield "
e n d e f
d e f i n e P a c k a g e / l u a l a n e s / i n s t a l l
d e f i n e P a c k a g e / l u a l a n e s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src /lanes.lua $( 1) /usr/lib/lua/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/lua/lmod/lanes.lua $( 1) /usr/lib/lua/
$( INSTALL_DIR) $( 1) /usr/lib/lua/lanes
$( INSTALL_DIR) $( 1) /usr/lib/lua/lanes
$( INSTALL_DATA) $( PKG_BUILD_DIR) /src/lanes /core.so $( 1) /usr/lib/lua/lanes/core.so
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/lua/cmod/core.so $( 1) /usr/lib/lua/lanes/core.so
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,lualanes ) )
$( eval $ ( call BuildPackage ,lualanes ) )