diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-11-29 22:39:53 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-11-29 22:39:53 +1030 |
| commit | d8a22c7770b72111c9779dd5df8cdebafd431fef (patch) | |
| tree | f43ee464b1532c44364c9cf21b70cd0097a145c8 | |
| parent | 8f9fc89298f6547dc298289a5778a682673253e9 (diff) | |
| download | lua-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.
Diffstat (limited to '')
| -rw-r--r-- | README | 4 | ||||
| -rw-r--r-- | lua-cjson-1.0.4-1.rockspec | 18 |
2 files changed, 21 insertions, 1 deletions
| @@ -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 | ||
| 77 | LuaRocks does not support platform specific configuration for Solaris. | ||
| 78 | On Solaris, you may need to manually uncomment "USE_INTERNAL_ISINF" in | ||
| 79 | the rockspec before building this module. | ||
| 80 | |||
| 77 | See the LuaRocks documentation for further details. | 81 | See 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: | ||
