blob: 5e89a2b3c76420316d61d0f843e433581e51767d (
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
|
# $NetBSD: options.mk,v 1.23 2021/11/24 14:17:58 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.nmap
PKG_SUPPORTED_OPTIONS= lua liblinear
.include "../../mk/bsd.prefs.mk"
#
# liblinear is used for IPv6 OS detection machine learning techniques.
#
# if nmap is built without liblinear, it will use an internal copy
# that does not depend on a fortran compiler, according to simonb@.
#
# NetBSD (as of 2021) does not include gfortran as part of GCC by
# default, so avoid building another copy of GCC as a dependency.
# Note that pkgsrc gcc only works on _some_ NetBSD architectures.
#
.if ${OPSYS} != "NetBSD"
PKG_SUGGESTED_OPTIONS= liblinear
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= lua
.if !empty(PKG_OPTIONS:Mlua)
LUA_VERSIONS_ACCEPTED= 53 # needs lua_isyieldable, introduced in Lua 5.3
.include "../../lang/lua/buildlink3.mk"
CONFIGURE_ARGS+= --with-liblua=${BUILDLINK_PREFIX.lua}
PLIST.lua= yes
.else
CONFIGURE_ARGS+= --without-liblua
.endif
.if !empty(PKG_OPTIONS:Mliblinear)
.include "../../math/liblinear/buildlink3.mk"
CONFIGURE_ARGS+= --with-liblinear=${BUILDLINK_PREFIX.liblinear}
.else
CONFIGURE_ARGS+= --without-liblinear
.endif
|