-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluars232-scm-1.rockspec
44 lines (40 loc) · 1.02 KB
/
luars232-scm-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package="luars232"
version="scm-1"
description = {
summary = "Serial (RS-232) support",
detailed = [[
This module adds support for manipulation of the serial port in
Lua. It statically links librs232 (see the project homepage
for the stand-alone library).
]],
homepage = "https://github.com/ynezz/librs232/",
license = "MIT/X11",
}
source = {
url = "git://github.com/ynezz/librs232.git",
}
dependencies = {
"lua >= 5.1",
}
build = {
type = "builtin",
platforms = {
unix = {
modules = {
luars232 = {
sources = { "src/rs232.c", "src/rs232_posix.c", "bindings/lua/luars232.c" },
incdirs = { "include" },
defines = { "LUAROCKS_HACK -std=gnu99" },
}
}
},
windows = {
modules = {
luars232 = {
sources = { "src/rs232.c", "src/rs232_windows.c", "bindings/lua/luars232.c" },
incdirs = { "include" },
}
}
}
}
}