Ticket #48835: wireshark-lua5.2.patch

File wireshark-lua5.2.patch, 975 bytes (added by ben@…, 8 years ago)
  • Portfile

    diff --git a/Portfile b/Portfile
    index b8c1aac..4d60628 100644
    a b variant ipv6 { 
    129129}
    130130
    131131variant lua {
    132         configure.args-delete   --without-lua
    133         configure.args-append   --with-lua=${prefix}
    134         depends_lib-append              port:lua
     132        configure.args-delete           --without-lua
     133        configure.ldflags-append        -L/opt/local/lib/lua-5.2
     134        depends_lib-append                      port:lua52
     135        patchfiles-append                       patch-epan-wslua.diff
    135136}
    136137
    137138variant libsmi {
  • new file files/patch-epan-wslua.diff

    diff --git a/files/patch-epan-wslua.diff b/files/patch-epan-wslua.diff
    new file mode 100644
    index 0000000..81a0240
    - +  
     1--- epan/wslua/lua_bitop.c.orig 2015-08-12 11:47:43.000000000 -0500
     2+++ epan/wslua/lua_bitop.c      2015-10-03 13:50:48.000000000 -0500
     3@@ -29,8 +29,8 @@
     4 #define LUA_BITOP_VERSION      "1.0.2"
     5 
     6 #define LUA_LIB
     7-#include <lua.h>
     8-#include <lauxlib.h>
     9+#include <lua-5.2/lua.h>
     10+#include <lua-5.2/lauxlib.h>
     11 
     12 #include "lua_bitop.h"
     13