pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nmap nmap: Disable liblinear option on NetBSD, per...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6c992770105
branches:  trunk
changeset: 770082:c6c992770105
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Nov 24 14:17:58 2021 +0000

description:
nmap: Disable liblinear option on NetBSD, per icb discussion.

diffstat:

 net/nmap/options.mk |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 113749ece7db -r c6c992770105 net/nmap/options.mk
--- a/net/nmap/options.mk       Wed Nov 24 14:15:28 2021 +0000
+++ b/net/nmap/options.mk       Wed Nov 24 14:17:58 2021 +0000
@@ -1,10 +1,25 @@
-# $NetBSD: options.mk,v 1.22 2021/03/19 08:50:57 sborrill Exp $
+# $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"
 
@@ -20,7 +35,6 @@
 .endif
 
 .if !empty(PKG_OPTIONS:Mliblinear)
-# liblinear is used for IPv6 OS detection machine learning techniques
 .include "../../math/liblinear/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-liblinear=${BUILDLINK_PREFIX.liblinear}
 .else



Home | Main Index | Thread Index | Old Index