-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluacwrap-scm-1.rockspec
51 lines (45 loc) · 1.08 KB
/
luacwrap-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
45
46
47
48
49
50
51
package = "luacwrap"
version = "scm-1"
source = {
url = "git://github.com/oberhofer/luacwrap.git",
branch = "master",
}
description = {
summary = "LuaCwrap C structure wrapper.",
detailed = [[
LuaCwrap is a wrapper for C datatypes written in pure C. It
utilizes metadata (aka type descriptors) to describe the
layout and names of structures, unions, arrays and buffers.
]],
homepage = "http://github.com/oberhofer/luacwrap",
license = "MIT/X11"
}
supported_platforms = { "linux", "windows" }
dependencies = {
"lua == 5.1"
}
build = {
type = "make",
install_variables = {
LUA_LIBDIR = "$(LIBDIR)",
LUA_DIR = "$(LUADIR)",
LUA_INCDIR = "$(LUA_INCDIR)",
BIN_DIR = "$(BINDIR)",
PREFIX = "$(PREFIX)"
},
platforms = {
linux = {
build_variables = {
LIB_OPTION = "-shared",
CFLAGS = '$(CFLAGS) -I$(LUA_INCDIR) -DLINUX',
LIB_EXT = '.so'
},
},
win32 = {
build_variables = {
LIB_OPTION = "$(LUA_LIBDIR)\\lua5.1.lib",
CFLAGS = "$(CFLAGS) /I$(LUA_INCDIR) /DWINDOWS",
}
}
}
}