diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2017-12-29 18:47:05 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2017-12-29 18:47:05 +0000 |
commit | a2648755a5d45a1acafa2eadea314908cb96097d (patch) | |
tree | 47bac81562a7285bc4afc4a9eab3dbdb5608c963 /multimedia/libquvi09 | |
parent | e293b50e02a79fde3ac4c3e04bce0aa1e0f94e9f (diff) | |
download | ports-a2648755a5d45a1acafa2eadea314908cb96097d.tar.gz ports-a2648755a5d45a1acafa2eadea314908cb96097d.zip |
Fix build with Lua 5.3
- Bump PORTREVISION for package change
PR: 224648
Submitted by: fluffy
MFH: 2017Q4
Notes
Notes:
svn path=/head/; revision=457522
Diffstat (limited to 'multimedia/libquvi09')
-rw-r--r-- | multimedia/libquvi09/Makefile | 2 | ||||
-rw-r--r-- | multimedia/libquvi09/files/patch-src-lua-init.c | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/multimedia/libquvi09/Makefile b/multimedia/libquvi09/Makefile index 41879ffdbc2b..7d65ed154a7f 100644 --- a/multimedia/libquvi09/Makefile +++ b/multimedia/libquvi09/Makefile @@ -3,7 +3,7 @@ PORTNAME= libquvi PORTVERSION= 0.9.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia devel MASTER_SITES= SF/quvi/${PORTVERSION:R}/${PORTNAME}/ PKGNAMESUFFIX= 09 diff --git a/multimedia/libquvi09/files/patch-src-lua-init.c b/multimedia/libquvi09/files/patch-src-lua-init.c new file mode 100644 index 000000000000..530cb374e628 --- /dev/null +++ b/multimedia/libquvi09/files/patch-src-lua-init.c @@ -0,0 +1,20 @@ +--- src/lua/init.c.orig ++++ src/lua/init.c +@@ -80,10 +80,17 @@ QuviError l_init(_quvi_t q) + return (QUVI_ERROR_LUA_INIT); + + luaL_openlibs(q->handle.lua); ++#if LUA_VERSION_NUM < 502 + luaL_register(q->handle.lua, "quvi", quvi_reg_meth); + luaL_register(q->handle.lua, "quvi.http", quvi_http_reg_meth); + luaL_register(q->handle.lua, "quvi.crypto", quvi_crypto_reg_meth); + luaL_register(q->handle.lua, "quvi.base64", quvi_base64_reg_meth); ++#else ++ luaL_newlib(q->handle.lua, quvi_reg_meth); ++ luaL_newlib(q->handle.lua, quvi_http_reg_meth); ++ luaL_newlib(q->handle.lua, quvi_crypto_reg_meth); ++ luaL_newlib(q->handle.lua, quvi_base64_reg_meth); ++#endif + + return (QUVI_OK); + } |