From 876e05e962a3c17aa07756ce142b473965552293 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 14 Oct 2007 02:04:38 +0000 Subject: Add ipv6 option. Patch provided by Yakovetsky Vladimir in PR 37092. --- net/ttt/Makefile | 4 +++- net/ttt/options.mk | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 net/ttt/options.mk (limited to 'net/ttt') 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 -- cgit v1.2.3