aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/cfg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r--src/luarocks/cfg.lua50
1 files changed, 46 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index ace0dbf1..1abe39cb 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -145,7 +145,47 @@ local defaults = {
145 downloader = config.LUAROCKS_DOWNLOADER or "wget", 145 downloader = config.LUAROCKS_DOWNLOADER or "wget",
146 md5checker = config.LUAROCKS_MD5CHECKER or "md5sum", 146 md5checker = config.LUAROCKS_MD5CHECKER or "md5sum",
147 147
148 variables = {}, 148 variables = {
149 MAKE = "make",
150 CC = "cc",
151 LD = "ld",
152
153 CVS = "cvs",
154 GIT = "git",
155 SSCM = "sscm",
156 SVN = "svn",
157
158 RSYNC = "rsync",
159 WGET = "wget",
160 SCP = "scp",
161 CURL = "curl",
162
163 PWD = "pwd",
164 MKDIR = "mkdir",
165 RMDIR = "rmdir",
166 CP = "cp",
167 LS = "ls",
168 RM = "rm",
169 FIND = "find",
170 TEST = "test",
171 CHMOD = "chmod",
172 PATCH = "patch",
173
174 ZIP = "zip",
175 UNZIP = "unzip",
176 GUNZIP = "gunzip",
177 BUNZIP2 = "bunzip2",
178 TAR = "tar",
179
180 MD5SUM = "md5sum",
181 OPENSSL = "openssl",
182 MD5 = "md5",
183 STAT = "stat",
184
185 SEVENZ = "7z",
186
187 STATFLAG = "-c '%a'",
188 },
149 189
150 external_deps_subdirs = { 190 external_deps_subdirs = {
151 bin = "bin", 191 bin = "bin",
@@ -241,9 +281,6 @@ if detected.unix then
241 defaults.variables.CFLAGS = "-O2" 281 defaults.variables.CFLAGS = "-O2"
242 defaults.cmake_generator = "Unix Makefiles" 282 defaults.cmake_generator = "Unix Makefiles"
243 defaults.platforms = { "unix" } 283 defaults.platforms = { "unix" }
244 defaults.variables.MAKE = "make"
245 defaults.variables.CC = "cc"
246 defaults.variables.LD = "ld"
247 defaults.variables.LIBFLAG = "-shared" 284 defaults.variables.LIBFLAG = "-shared"
248 defaults.external_deps_patterns = { 285 defaults.external_deps_patterns = {
249 bin = { "?" }, 286 bin = { "?" },
@@ -282,6 +319,10 @@ if detected.macosx then
282 defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load" 319 defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load"
283end 320end
284 321
322if detected.bsd then
323 defaults.variables.STATFLAG = "-f '%A'"
324end
325
285if detected.linux then 326if detected.linux then
286 defaults.arch = "linux-"..proc 327 defaults.arch = "linux-"..proc
287 defaults.platforms = {"unix", "linux"} 328 defaults.platforms = {"unix", "linux"}
@@ -302,6 +343,7 @@ end
302if detected.openbsd then 343if detected.openbsd then
303 defaults.arch = "openbsd-"..proc 344 defaults.arch = "openbsd-"..proc
304 defaults.platforms = {"unix", "bsd", "openbsd"} 345 defaults.platforms = {"unix", "bsd", "openbsd"}
346 defaults.variables.STATFLAG = "-f '%Op'"
305end 347end
306 348
307-- Expose some more values detected by LuaRocks for use by rockspec authors. 349-- Expose some more values detected by LuaRocks for use by rockspec authors.