-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluapgsql-scm-2.rockspec
56 lines (56 loc) · 1.34 KB
/
luapgsql-scm-2.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
52
53
54
55
56
package = "luapgsql"
version = "scm-2"
source = {
url = "git://github.com/mbalmer/luapgsql"
}
description = {
summary = "A Lua Binding for PostgreSQL",
detailed = [[A Lua Binding for PostgreSQL]],
homepage = "http://github.com/mbalmer/luapgsql",
license = "3-clause BSD"
}
dependencies = {
"lua >= 5.1, < 5.3"
}
external_dependencies = {
POSTGRESQL = { library = "pq" },
platforms = {
linux = {
POSTGRESQL = { header = "postgresql/postgres.h" },
LIBBSD = { library = "bsd" }
},
bsd = {
POSTGRESQL = { header = "postgresql/server/postgres.h" }
}
}
}
build = {
type = "builtin",
modules = {
pgsql = {
incdirs = { "$(POSTGRESQL_INCDIR)" },
libdirs = { "$(POSTGRESQL_LIBDIR)" },
libraries = { "postgresql" },
sources = "luapgsql.c"
},
},
platforms = {
linux = {
modules = {
pgsql = {
incdirs = { "$(POSTGRESQL_INCDIR)/postgresql", "$(LIBBSD_INCDIR)" },
libdirs = { [2] = "$(LIBBSD_LIBDIR)" },
defines = { "_GNU_SOURCE" },
libraries = { [2] = "bsd" },
},
}
},
bsd = {
modules = {
pgsql = {
incdirs = { "$(POSTGRESQL_INCDIR)/postgresql/server" }
}
}
}
}
}