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
:=53a17d7ee11f17ca0543ae5aa640208dcb62d37862a0d0ea450455fae12c8ff1
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/lanes-
$(PKG_VERSION
)
22 PKG_BUILD_DEPENDS
:=lua
/host
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/lualanes
31 URL
:=http
://luaforge.net
/projects
/lanes
/
32 DEPENDS
:=+lua
+luac
+liblua
+libpthread
33 MAINTAINER
:=Vladimir Malyutin
<first-leon@yandex.ru
>
36 define Package
/lualanes
/description
37 Lanes is a lightweight
, native
, lazy evaluating multithreading library for Lua
5.1 and
5.2.
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) all \
43 LUA
="$(STAGING_DIR_HOSTPKG)/bin/lua" \
44 LUAC
="$(STAGING_DIR_HOSTPKG)/bin/luac" \
45 OPT_FLAGS
="$(TARGET_CFLAGS) -Dpthread_yield=sched_yield"
48 define Package
/lualanes
/install
49 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/lanes.lua
$(1)/usr
/lib
/lua
/
51 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/lanes
52 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/lanes
/core.so
$(1)/usr
/lib
/lua
/lanes
/core.so
55 $(eval
$(call BuildPackage
,lualanes
))