| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.18 2017/01/01 14:43:50 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.18.8.1 2017/10/31 16:22:46 spz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nmap | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nmap |
4 | | | 4 | |
5 | PKG_SUPPORTED_OPTIONS= inet6 ndiff zenmap lua | | 5 | PKG_SUPPORTED_OPTIONS= inet6 ndiff zenmap lua |
6 | PKG_SUGGESTED_OPTIONS= inet6 | | 6 | PKG_SUGGESTED_OPTIONS= inet6 |
7 | | | 7 | |
8 | .include "../../mk/bsd.options.mk" | | 8 | .include "../../mk/bsd.options.mk" |
9 | | | 9 | |
10 | PLIST_VARS+= ndiff zenmap lua | | 10 | PLIST_VARS+= ndiff zenmap lua |
11 | | | 11 | |
12 | .if !empty(PKG_OPTIONS:Minet6) | | 12 | .if !empty(PKG_OPTIONS:Minet6) |
13 | CONFIGURE_ARGS+= --enable-ipv6 | | 13 | CONFIGURE_ARGS+= --enable-ipv6 |
14 | .else | | 14 | .else |
| @@ -27,26 +27,27 @@ REPLACE_PYTHON+= zenmap/zenmapGUI/higwid | | | @@ -27,26 +27,27 @@ REPLACE_PYTHON+= zenmap/zenmapGUI/higwid |
27 | REPLACE_PYTHON+= zenmap/test/*.py | | 27 | REPLACE_PYTHON+= zenmap/test/*.py |
28 | PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # py-xml, py-sqlite2, py-gtk2 | | 28 | PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # py-xml, py-sqlite2, py-gtk2 |
29 | .include "../../lang/python/application.mk" | | 29 | .include "../../lang/python/application.mk" |
30 | .include "../../lang/python/extension.mk" | | 30 | .include "../../lang/python/extension.mk" |
31 | .include "../../x11/py-gtk2/buildlink3.mk" | | 31 | .include "../../x11/py-gtk2/buildlink3.mk" |
32 | .include "../../databases/py-sqlite2/buildlink3.mk" | | 32 | .include "../../databases/py-sqlite2/buildlink3.mk" |
33 | .include "../../textproc/py-xml/buildlink3.mk" | | 33 | .include "../../textproc/py-xml/buildlink3.mk" |
34 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 34 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
35 | .else | | 35 | .else |
36 | CONFIGURE_ARGS+= --without-zenmap | | 36 | CONFIGURE_ARGS+= --without-zenmap |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | .if !empty(PKG_OPTIONS:Mlua) | | 39 | .if !empty(PKG_OPTIONS:Mlua) |
| | | 40 | LUA_VERSIONS_ACCEPTED= 53 # needs lua_isyieldable, introduced in Lua 5.3 |
40 | .include "../../lang/lua/buildlink3.mk" | | 41 | .include "../../lang/lua/buildlink3.mk" |
41 | CONFIGURE_ARGS+= --with-liblua=${BUILDLINK_PREFIX.lua} | | 42 | CONFIGURE_ARGS+= --with-liblua=${BUILDLINK_PREFIX.lua} |
42 | PLIST.lua= yes | | 43 | PLIST.lua= yes |
43 | .else | | 44 | .else |
44 | CONFIGURE_ARGS+= --without-liblua | | 45 | CONFIGURE_ARGS+= --without-liblua |
45 | .endif | | 46 | .endif |
46 | | | 47 | |
47 | # this needs to be below zenmap option handling, because that restricts python versions | | 48 | # this needs to be below zenmap option handling, because that restricts python versions |
48 | .if !empty(PKG_OPTIONS:Mndiff) | | 49 | .if !empty(PKG_OPTIONS:Mndiff) |
49 | CONFIGURE_ARGS+= --with-ndiff | | 50 | CONFIGURE_ARGS+= --with-ndiff |
50 | PLIST.ndiff= yes | | 51 | PLIST.ndiff= yes |
51 | PY_PATCHPLIST= yes | | 52 | PY_PATCHPLIST= yes |
52 | REPLACE_PYTHON+= ndiff/*.py | | 53 | REPLACE_PYTHON+= ndiff/*.py |