2017-10-19 23:43:25 +02:00
|
|
|
# $NetBSD: options.mk,v 1.19 2017/10/19 21:43:25 leot Exp $
|
2008-06-09 21:35:31 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.nmap
|
|
|
|
|
2013-09-14 16:11:25 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 ndiff zenmap lua
|
2010-03-21 22:58:23 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
2008-06-09 21:35:31 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2013-09-14 16:11:25 +02:00
|
|
|
PLIST_VARS+= ndiff zenmap lua
|
2013-05-20 08:21:22 +02:00
|
|
|
|
2009-01-15 21:28:31 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2013-05-20 08:21:22 +02:00
|
|
|
# Enable dynamically loadable preprocessors, detection engine
|
|
|
|
# and rules libraries.
|
2008-06-09 21:35:31 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mzenmap)
|
2013-05-20 08:21:22 +02:00
|
|
|
CONFIGURE_ARGS+= --with-zenmap
|
|
|
|
PLIST.zenmap= yes
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
REPLACE_PYTHON+= zenmap/zenmapCore/*.py
|
|
|
|
REPLACE_PYTHON+= zenmap/zenmapGUI/*.py
|
|
|
|
REPLACE_PYTHON+= zenmap/zenmapGUI/higwidgets/*.py
|
2016-01-24 14:46:49 +01:00
|
|
|
REPLACE_PYTHON+= zenmap/test/*.py
|
2017-01-01 15:43:22 +01:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # py-xml, py-sqlite2, py-gtk2
|
2008-06-09 21:35:31 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../x11/py-gtk2/buildlink3.mk"
|
|
|
|
.include "../../databases/py-sqlite2/buildlink3.mk"
|
|
|
|
.include "../../textproc/py-xml/buildlink3.mk"
|
2009-07-20 21:40:08 +02:00
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2008-06-09 21:35:31 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-zenmap
|
|
|
|
.endif
|
2013-09-14 16:11:25 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mlua)
|
2017-10-19 23:43:25 +02:00
|
|
|
LUA_VERSIONS_ACCEPTED= 53 # needs lua_isyieldable, introduced in Lua 5.3
|
2013-09-14 16:11:25 +02:00
|
|
|
.include "../../lang/lua/buildlink3.mk"
|
2015-11-20 16:37:40 +01:00
|
|
|
CONFIGURE_ARGS+= --with-liblua=${BUILDLINK_PREFIX.lua}
|
2013-09-14 16:11:25 +02:00
|
|
|
PLIST.lua= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-liblua
|
|
|
|
.endif
|
2016-12-14 23:47:06 +01:00
|
|
|
|
|
|
|
# this needs to be below zenmap option handling, because that restricts python versions
|
|
|
|
.if !empty(PKG_OPTIONS:Mndiff)
|
|
|
|
CONFIGURE_ARGS+= --with-ndiff
|
|
|
|
PLIST.ndiff= yes
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
REPLACE_PYTHON+= ndiff/*.py
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.paths= ndiff/setup.py
|
|
|
|
SUBST_VARS.paths= PKGMANDIR
|
|
|
|
SUBST_MESSAGE.paths= Fixing paths.
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ndiff
|
|
|
|
.endif
|