aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2011-01-29 17:57:09 +0100
committerBenoit Germain <bnt.germain@gmail.com>2011-01-29 17:57:09 +0100
commitc91a03bd956bf19848253bded8217687ccd2ad81 (patch)
tree8910de7a98e0ddefe237203c52db66a86fcc4830
parent3dc924cac5f687ca03d187d0c4ed7d088834ffc3 (diff)
downloadlanes-c91a03bd956bf19848253bded8217687ccd2ad81.tar.gz
lanes-c91a03bd956bf19848253bded8217687ccd2ad81.tar.bz2
lanes-c91a03bd956bf19848253bded8217687ccd2ad81.zip
Added rockspec file
-rw-r--r--lanes-2.0-11.rockspec96
1 files changed, 96 insertions, 0 deletions
diff --git a/lanes-2.0-11.rockspec b/lanes-2.0-11.rockspec
new file mode 100644
index 0000000..11682b6
--- /dev/null
+++ b/lanes-2.0-11.rockspec
@@ -0,0 +1,96 @@
1--
2-- Lanes rockspec
3--
4-- Ref:
5-- <http://luarocks.org/en/Rockspec_format>
6--
7-- History:
8-- BGe 27-Jan-2011: 2.0.11 (see CHANGES)
9-- AKa 1-Sep-2008: 2.0-2 (NOT sent to list): fixed VC++ not finding DLL issue
10-- AKa 20-Aug-2008: 2.0-1 sent to luarocks-developers
11--
12
13package = "Lanes"
14
15version = "2.0-11"
16
17source= {
18 url= "http://github.com/downloads/LuaLanes/lanes/lanes-2.0.11.tgz",
19 md5= "23f8e3f88cca5fcea6c600014d806850"
20}
21
22description = {
23 summary= "Multithreading support for Lua",
24 detailed= [[
25 Lua Lanes is a portable, message passing multithreading library
26 providing the possibility to run multiple Lua states in parallel.
27 ]],
28 license= "MIT/X11",
29 homepage="http://kotisivu.dnainternet.net/askok/lanes/",
30 maintainer="Benoit Germain <bnt.germain@gmail.com>"
31}
32
33-- Q: What is the difference of "windows" and "win32"? Seems there is none;
34-- so should we list either one or both?
35--
36supported_platforms= { "win32",
37 "macosx",
38 "linux",
39 "freebsd", -- TBD: not tested
40 "msys", -- TBD: not supported by LuaRocks 1.0 (or is it?)
41}
42
43dependencies= {
44 "lua >= 5.1, <= 5.2",
45}
46
47--
48-- Non-Win32: build using the Makefile
49-- Win32: build using 'make-vc.cmd' and "manual" copy of products
50--
51-- TBD: How is MSYS treated? We'd like (really) it to use the Makefile.
52-- It should be a target like "cygwin", not defining "windows".
53-- "windows" should actually guarantee Visual C++ as the compiler.
54--
55-- Q: Does "win32" guarantee we have Visual C++ 2005/2008 command line tools?
56--
57-- Note: Cannot use the simple "module" build type, because we need to precompile
58-- 'src/keeper.lua' -> keeper.lch and bake it into lanes.c.
59--
60build = {
61
62 -- Win32 (Visual C++) uses 'make-vc.cmd' for building
63 --
64 platforms= {
65 windows= {
66 type= "command",
67 build_command= "make-vc.cmd",
68 install= {
69 lua = { "src/lanes.lua" },
70 lib = { "lua51-lanes.dll" }
71 }
72 }
73 },
74
75 -- Other platforms use the Makefile
76 --
77 -- LuaRocks defines CFLAGS, LIBFLAG and LUA_INCDIR for 'make rock',
78 -- defines LIBDIR, LUADIR for 'make install'
79 --
80 -- Ref: <http://www.luarocks.org/en/Paths_and_external_dependencies>
81 --
82 type = "make",
83
84 build_target = "rock",
85 build_variables= {
86 CFLAGS= "$(CFLAGS) -I$(LUA_INCDIR)",
87 LIBFLAG= "$(LIBFLAG)",
88 },
89
90 install_target = "install",
91 install_variables= {
92 LUA_LIBDIR= "$(LIBDIR)",
93 LUA_SHAREDIR= "$(LUADIR)",
94 }
95}
96