From 07dd3147c68f13b523ce8edfd486a3f4f0d47fe1 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 7 Sep 2007 22:12:10 +0000 Subject: Convert packages that test and use USE_INET6 to use the options framework and to support the "inet6" option instead. Remaining usage of USE_INET6 was solely for the benefit of the scripts that generate the README.html files. Replace: BUILD_DEFS+= USE_INET6 with BUILD_DEFS+= IPV6_READY and teach the README-generation tools to look for that instead. This nukes USE_INET6 from pkgsrc proper. We leave a tiny bit of code to continue to support USE_INET6 for pkgsrc-wip until it has been nuked from there as well. --- net/trafshow/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'net/trafshow') diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile index 8883d076200..29d8fd6cb21 100644 --- a/net/trafshow/Makefile +++ b/net/trafshow/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2007/02/22 19:27:00 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2007/09/07 22:12:20 jlam Exp $ DISTNAME= trafshow-5.2.1 PKGREVISION= 1 @@ -13,11 +13,12 @@ COMMENT= Full screen visualization of the network traffic BUILD_TARGET= trafshow GNU_CONFIGURE= yes -.include "../../mk/bsd.prefs.mk" +PKG_OPTIONS_VAR= PKG_OPTIONS.trafshow +PKG_SUPPORTED_OPTIONS= inet6 -BUILD_DEFS+= USE_INET6 +.include "../../mk/bsd.options.mk" -.if defined(USE_INET6) && ${USE_INET6} == "YES" +.if !empty(PKG_OPTIONS:Minet6) CPPFLAGS+= -DINET6 .endif -- cgit v1.2.3