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