SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
devel/lua-cjson/patches/patch-Makefile
Normal file
20
devel/lua-cjson/patches/patch-Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- Makefile.orig Thu Mar 1 13:22:50 2012
|
||||
+++ Makefile Tue Nov 20 19:42:53 2012
|
||||
@@ -11,14 +11,14 @@
|
||||
## multi-threaded application. Requries _pthreads_.
|
||||
|
||||
##### Build defaults #####
|
||||
-LUA_VERSION = 5.1
|
||||
+LUA_VERSION = ${MODLUA_VERSION}
|
||||
TARGET = cjson.so
|
||||
PREFIX = /usr/local
|
||||
#CFLAGS = -g -Wall -pedantic -fno-inline
|
||||
-CFLAGS = -O3 -Wall -pedantic -DNDEBUG
|
||||
+CFLAGS ?= -O3 -Wall -pedantic -DNDEBUG
|
||||
CJSON_CFLAGS = -fpic
|
||||
CJSON_LDFLAGS = -shared
|
||||
-LUA_INCLUDE_DIR = $(PREFIX)/include
|
||||
+LUA_INCLUDE_DIR = $(PREFIX)/include/lua-$(LUA_VERSION)
|
||||
LUA_CMODULE_DIR = $(PREFIX)/lib/lua/$(LUA_VERSION)
|
||||
LUA_MODULE_DIR = $(PREFIX)/share/lua/$(LUA_VERSION)
|
||||
LUA_BIN_DIR = $(PREFIX)/bin
|
13
devel/lua-cjson/patches/patch-lua_cjson_util_lua
Normal file
13
devel/lua-cjson/patches/patch-lua_cjson_util_lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
unpack moved to table.unpack in lua5.2
|
||||
|
||||
--- lua/cjson/util.lua.orig Mon May 16 22:58:17 2016
|
||||
+++ lua/cjson/util.lua Mon May 16 23:05:46 2016
|
||||
@@ -4,6 +4,8 @@ local json = require "cjson"
|
||||
--
|
||||
-- Mark Pulford <mark@kyne.com.au>
|
||||
|
||||
+local unpack = unpack or table.unpack
|
||||
+
|
||||
-- Determine with a Lua table can be treated as an array.
|
||||
-- Explicitly returns "not an array" for very sparse arrays.
|
||||
-- Returns:
|
8
devel/lua-cjson/patches/patch-lua_json2lua_lua
Normal file
8
devel/lua-cjson/patches/patch-lua_json2lua_lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- lua/json2lua.lua.orig Tue Nov 20 19:44:05 2012
|
||||
+++ lua/json2lua.lua Tue Nov 20 19:44:11 2012
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env lua
|
||||
+#!${MODLUA_BIN}
|
||||
|
||||
-- usage: json2lua.lua [json_file]
|
||||
--
|
8
devel/lua-cjson/patches/patch-lua_lua2json_lua
Normal file
8
devel/lua-cjson/patches/patch-lua_lua2json_lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- lua/lua2json.lua.orig Tue Nov 20 19:44:13 2012
|
||||
+++ lua/lua2json.lua Tue Nov 20 19:44:20 2012
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env lua
|
||||
+#!${MODLUA_BIN}
|
||||
|
||||
-- usage: lua2json.lua [lua_file]
|
||||
--
|
Loading…
Add table
Add a link
Reference in a new issue