summaryrefslogtreecommitdiff
path: root/net/ttt
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-10-14 02:04:38 +0000
committerobache <obache@pkgsrc.org>2007-10-14 02:04:38 +0000
commit876e05e962a3c17aa07756ce142b473965552293 (patch)
treed804c7bbb0c90215ca80a8c6f15edd8f6e742a3c /net/ttt
parentbe3bfafa4c4ac0965f40ebc89f3022e84a71ec42 (diff)
downloadpkgsrc-876e05e962a3c17aa07756ce142b473965552293.tar.gz
Add ipv6 option.
Patch provided by Yakovetsky Vladimir in PR 37092.
Diffstat (limited to 'net/ttt')
-rw-r--r--net/ttt/Makefile4
-rw-r--r--net/ttt/options.mk12
2 files changed, 15 insertions, 1 deletions
diff --git a/net/ttt/Makefile b/net/ttt/Makefile
index e45810d66b6..75ef9014886 100644
--- a/net/ttt/Makefile
+++ b/net/ttt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/09/07 13:53:44 obache Exp $
+# $NetBSD: Makefile,v 1.18 2007/10/14 02:04:38 obache Exp $
#
DISTNAME= ttt-1.8.2
@@ -21,6 +21,8 @@ INSTALL_TARGET= install install-man
.endif
.endif
+.include "options.mk"
+
.include "../../net/libpcap/buildlink3.mk"
.include "../../x11/blt/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
diff --git a/net/ttt/options.mk b/net/ttt/options.mk
new file mode 100644
index 00000000000..074628bf655
--- /dev/null
+++ b/net/ttt/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2007/10/14 02:04:38 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ttt
+PKG_SUPPORTED_OPTIONS+= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif