aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-11-29 22:39:53 +1030
committerMark Pulford <mark@kyne.com.au>2011-11-29 22:39:53 +1030
commitd8a22c7770b72111c9779dd5df8cdebafd431fef (patch)
treef43ee464b1532c44364c9cf21b70cd0097a145c8
parent8f9fc89298f6547dc298289a5778a682673253e9 (diff)
downloadlua-cjson-d8a22c7770b72111c9779dd5df8cdebafd431fef.tar.gz
lua-cjson-d8a22c7770b72111c9779dd5df8cdebafd431fef.tar.bz2
lua-cjson-d8a22c7770b72111c9779dd5df8cdebafd431fef.zip
Add platform specific overrides to rockspec
Luarocks does not support a "solaris" platform - USE_INTERNAL_ISINF must stay commented.
-rw-r--r--README4
-rw-r--r--lua-cjson-1.0.4-1.rockspec18
2 files changed, 21 insertions, 1 deletions
diff --git a/README b/README
index 13e5a03..4907359 100644
--- a/README
+++ b/README
@@ -74,6 +74,10 @@ Extract the Lua CJSON source package into a directory and run:
74 74
75 # cd lua-cjson-1.0.4; luarocks make 75 # cd lua-cjson-1.0.4; luarocks make
76 76
77LuaRocks does not support platform specific configuration for Solaris.
78On Solaris, you may need to manually uncomment "USE_INTERNAL_ISINF" in
79the rockspec before building this module.
80
77See the LuaRocks documentation for further details. 81See the LuaRocks documentation for further details.
78 82
79 83
diff --git a/lua-cjson-1.0.4-1.rockspec b/lua-cjson-1.0.4-1.rockspec
index da19bd1..5eac501 100644
--- a/lua-cjson-1.0.4-1.rockspec
+++ b/lua-cjson-1.0.4-1.rockspec
@@ -30,8 +30,24 @@ build = {
30-- thread-safety isn't required. 30-- thread-safety isn't required.
31-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required 31-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required
32-- on some Solaris platforms. 32-- on some Solaris platforms.
33 defines = { "VERSION=\"1.0.4\"", "USE_POSIX_SETLOCALE" } 33 defines = {
34 "VERSION=\"1.0.4\"", "USE_POSIX_SETLOCALE",
35-- LuaRocks does not support platform specific configuration for Solaris.
36-- Uncomment the line below on Solaris platforms.
37-- "USE_INTERNAL_ISINF"
38 }
34 } 39 }
35 }, 40 },
41 -- Override default build options (per platform)
42 platforms = {
43 linux = { modules = { cjson = { defines = {
44 [2] = "USE_POSIX_USELOCALE"
45 } } } },
46 macosx = { modules = { cjson = { defines = {
47 [2] = "USE_POSIX_USELOCALE"
48 } } } }
49 },
36 copy_directories = { "tests" } 50 copy_directories = { "tests" }
37} 51}
52
53-- vi:ai et sw=4 ts=4: