-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrockspec
More file actions
69 lines (69 loc) · 1.3 KB
/
rockspec
File metadata and controls
69 lines (69 loc) · 1.3 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
rockspec_format = "3.0"
package = "lua-linear"
version = "1.3.0-1"
description = {
summary = "Linear algebra and statistics for Lua",
detailed = [[
Lua Linear provides comprehensive linear algebra and statistics support for the
Lua programming language. Where applicable, the BLAS and LAPACK implementations
on the system are used.
]],
license = "MIT",
homepage = "https://github.com/anaef/lua-linear",
labels = { "math" },
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
LIBBLAS = {
library = "blas"
},
LIBLAPACKE = {
header = "lapacke.h"
},
}
source = {
url = "git+https://github.com/anaef/lua-linear.git",
tag = "v1.3.0",
}
build = {
type = "builtin",
modules = {
linear = {
sources = {
"src/linear_core.c",
"src/linear_elementary.c",
"src/linear_unary.c",
"src/linear_binary.c",
"src/linear_program.c",
},
defines = {
"_REENTRANT",
"_GNU_SOURCE",
"LINEAR_USE_AXPBY=1"
},
libraries = {
"m",
"blas",
"lapacke",
},
incdirs = {
"$(LIBBLAS_INCDIR)",
"$(LIBLAPACKE_INCDIR)"
},
},
},
platforms = {
linux = {
type = "make",
build_variables = {
CFLAGS = "-fPIC -O3 -D_REENTRANT -D_GNU_SOURCE",
LUA_INCDIR = "$(LUA_INCDIR)",
},
install_variables = {
LIBDIR = "$(LIBDIR)",
},
}
},
}