diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-05-15 23:46:24 +0930 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-05-15 23:46:24 +0930 |
| commit | 35e81a9c4143890771553c38dce0719630b37517 (patch) | |
| tree | df110a490299f153b036a7a1cf9f6e1c4bb66c15 | |
| parent | 132e8757bc800d51058e3e1e4d2d73a0279ca0ac (diff) | |
| download | lua-cjson-35e81a9c4143890771553c38dce0719630b37517.tar.gz lua-cjson-35e81a9c4143890771553c38dce0719630b37517.tar.bz2 lua-cjson-35e81a9c4143890771553c38dce0719630b37517.zip | |
Add rockspec to build under LuaRocks
Remove "-lm" from LDFLAGS in Makefile since it breaks the build under
Windows and isn't required under Linux. Math lib fix suggested by:
Steve Donovan <steve.j.donovan@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | lua-cjson-1.0.1-1.rockspec | 31 |
2 files changed, 31 insertions, 1 deletions
| @@ -18,7 +18,6 @@ LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) | |||
| 18 | #CFLAGS ?= -g -Wall -pedantic -fno-inline | 18 | #CFLAGS ?= -g -Wall -pedantic -fno-inline |
| 19 | CFLAGS ?= -g -O3 -Wall -pedantic | 19 | CFLAGS ?= -g -O3 -Wall -pedantic |
| 20 | override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" | 20 | override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" |
| 21 | LDFLAGS += -lm | ||
| 22 | 21 | ||
| 23 | INSTALL ?= install | 22 | INSTALL ?= install |
| 24 | 23 | ||
diff --git a/lua-cjson-1.0.1-1.rockspec b/lua-cjson-1.0.1-1.rockspec new file mode 100644 index 0000000..aa89fd3 --- /dev/null +++ b/lua-cjson-1.0.1-1.rockspec | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | package = "lua-cjson" | ||
| 2 | version = "1.0.1-1" | ||
| 3 | |||
| 4 | source = { | ||
| 5 | url = "http://www.kyne.com.au/~mark/software/lua-cjson-1.0.1.tar.gz", | ||
| 6 | } | ||
| 7 | |||
| 8 | description = { | ||
| 9 | summary = "Fast JSON encoding/parsing support for Lua", | ||
| 10 | detailed = [[ | ||
| 11 | Lua CJSON provides fast UTF-8 JSON parsing/encoding support for Lua, | ||
| 12 | and has no external dependencies. | ||
| 13 | ]], | ||
| 14 | homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php", | ||
| 15 | license = "MIT" | ||
| 16 | } | ||
| 17 | |||
| 18 | dependencies = { | ||
| 19 | "lua >= 5.1" | ||
| 20 | } | ||
| 21 | |||
| 22 | build = { | ||
| 23 | type = "builtin", | ||
| 24 | modules = { | ||
| 25 | cjson = { | ||
| 26 | sources = { "lua_cjson.c", "strbuf.c" }, | ||
| 27 | defines = { "VERSION=\"1.0.1\"" } | ||
| 28 | } | ||
| 29 | }, | ||
| 30 | copy_directories = { "tests" } | ||
| 31 | } | ||
