blob: ee866f8776f3f409f0e9debcf5c90da023d96e89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $NetBSD: options.mk,v 1.8 2013/04/07 10:11:54 abs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.nmap
PKG_SUPPORTED_OPTIONS= inet6 zenmap ndiff
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### Enable dynamically loadable preprocessors, detection engine
### and rules libraries.
###
.if !empty(PKG_OPTIONS:Mzenmap)
CONFIGURE_ARGS+= --with-zenmap
PLIST_SRC+= ${PKGDIR}/PLIST.zenmap
PY_PATCHPLIST= yes
REPLACE_PYTHON+= zenmap/zenmapCore/*.py
REPLACE_PYTHON+= zenmap/zenmapGUI/*.py
REPLACE_PYTHON+= zenmap/zenmapGUI/higwidgets/*.py
.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"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.else
CONFIGURE_ARGS+= --without-zenmap
.endif
.if !empty(PKG_OPTIONS:Mndiff)
CONFIGURE_ARGS+= --with-ndiff
PLIST_SRC+= ${PKGDIR}/PLIST.ndiff
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= ndiff/setup.py
SUBST_SED.paths= -e "s|@@PKGMANDIR@@|${PKGMANDIR}|g"
SUBST_MESSAGE.paths= Fixing paths.
.include "../../lang/python/application.mk"
.else
CONFIGURE_ARGS+= --without-ndiff
.endif
|