-
Notifications
You must be signed in to change notification settings - Fork 0
/
luafontmanager-scm-1.rockspec
60 lines (60 loc) · 1.42 KB
/
luafontmanager-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
52
53
54
55
56
57
58
59
60
package = "luafontmanager"
version = "scm-1"
source = {
url = "git+https://github.com/ufytex/luafontmanager"
}
description = {
summary = "A Lua module to access the system font catalog",
homepage = "https://github.com/ufytex/luafontmanager",
license = "MIT"
}
dependencies = {
"lua >= 5.2, < 5.4"
}
external_dependencies = {
platforms = {
linux = {
FONTCONFIG = {
header = "fontconfig/fontconfig.h"
}
}
}
}
supported_platforms = { "linux", "macosx", "windows" }
build = {
type = "builtin",
modules = {
fontmanager = "src/fontmanager.lua",
},
platforms = {
linux = {
modules = {
luafontmanager = {
sources = { "src/luafontmanager/luafontmanager.c", "src/luafontmanager/fonts_fontconfig.c" },
libraries = { "fontconfig"},
incdirs = { "$(FONTCONFIG_INCDIR)/fontconfig" },
libdirs = { "$(FONTCONFIG_LIBDIR)" }
}
}
},
macosx = {
type = "make",
makefile = "Makefile.osx",
build_variables = {
CFLAGS="$(CFLAGS)",
LIBFLAG="$(LIBFLAG)",
LUA_LIBDIR="$(LUA_LIBDIR)",
LUA_BINDIR="$(LUA_BINDIR)",
LUA_INCDIR="$(LUA_INCDIR)",
LUA="$(LUA)",
},
install_variables = {
INST_PREFIX="$(PREFIX)",
INST_BINDIR="$(BINDIR)",
INST_LIBDIR="$(LIBDIR)",
INST_LUADIR="$(LUADIR)",
INST_CONFDIR="$(CONFDIR)",
}
}
}
}