diff --git a/Portfile b/Portfile
index 01174d3..fe6e6f4 100644
a
|
b
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name wireshark |
5 | | version 1.12.8 |
6 | | revision 1 |
| 5 | version 2.0.0rc2 |
| 6 | revision 0 |
7 | 7 | categories net |
8 | 8 | license {GPL-2 GPL-3} |
9 | 9 | maintainers darkart.com:opendarwin.org |
… |
… |
long_description A network analyzer that lets you capture and \ |
19 | 19 | master_sites http://www.wireshark.org/download/src/ \ |
20 | 20 | http://www.wireshark.org/download/src/all-versions/ |
21 | 21 | |
22 | | checksums md5 988a4595a4a87dafb3c4870ea40e89b5 \ |
23 | | sha1 d8c23120525a2f3505e822b7684e7367bcd0ba70 \ |
24 | | rmd160 bf87fd1e3404d04f6123d09798b46ea5b2af49e9 |
| 22 | checksums md5 e533e26ae9372b3d58c7d54eddd2ef1e \ |
| 23 | sha1 3bef75cd106dbf6fba8529394202b90cfcc9f5b2 \ |
| 24 | rmd160 907eefeae0519986d7d62a288fac3568efda020e |
25 | 25 | |
26 | 26 | use_bzip2 yes |
27 | 27 | |
28 | | conflicts wireshark-devel |
29 | | |
30 | | patchfiles patch-configure.diff |
| 28 | conflicts wireshark-devel lua |
31 | 29 | |
32 | 30 | depends_build \ |
33 | 31 | port:pkgconfig |
… |
… |
configure.args \ |
45 | 43 | --disable-osx-deploy-target \ |
46 | 44 | --without-libsmi \ |
47 | 45 | --disable-usr-local \ |
| 46 | --disable-osx-deploy-target \ |
48 | 47 | --without-adns \ |
49 | 48 | --with-c-ares=${prefix} \ |
50 | 49 | --without-geoip \ |
… |
… |
variant ipv6 { |
129 | 128 | } |
130 | 129 | |
131 | 130 | # https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10881 |
132 | | #variant lua { |
133 | | # configure.args-delete --without-lua |
134 | | # configure.args-append --with-lua=${prefix} |
135 | | # depends_lib-append port:lua |
136 | | #} |
| 131 | variant lua { |
| 132 | configure.args-delete --without-lua |
| 133 | configure.args-append --with-lua=${prefix} |
| 134 | configure.cflags-append -I${prefix}/include/lua-5.2 |
| 135 | configure.ldflags-append -L${prefix}/lib/lua-5.2 -llua-5.2 |
| 136 | depends_lib-append port:lua52 |
| 137 | patchfiles-append patch-epan-wslua.diff |
| 138 | patchfiles-append configure-lua-macports-prefix.diff |
| 139 | } |
137 | 140 | |
138 | 141 | variant libsmi { |
139 | 142 | configure.args-delete --without-libsmi |
diff --git a/files/configure-lua-macports-prefix.diff b/files/configure-lua-macports-prefix.diff
new file mode 100644
index 0000000..7272972
-
|
+
|
|
| 1 | --- configure.orig 2015-10-30 16:12:50.000000000 -0400 |
| 2 | +++ configure 2015-11-02 13:10:25.000000000 -0500 |
| 3 | @@ -37552,6 +37552,12 @@ |
| 4 | lua_dir=$dir |
| 5 | break |
| 6 | fi |
| 7 | + if test -r "$dir/include/lua-$ver/lua.h" |
| 8 | + then |
| 9 | + header_dir="$dir/include/lua-$ver" |
| 10 | + lua_dir=$dir |
| 11 | + break |
| 12 | + fi |
| 13 | done |
| 14 | done |
| 15 | |
diff --git a/files/patch-epan-wslua.diff b/files/patch-epan-wslua.diff
new file mode 100644
index 0000000..0bcdad7
-
|
+
|
|
| 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" |