Subject: Re: ipv6 for wget
To: Juan RP <juan@xtraeme.nopcode.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 01/12/2005 23:50:47
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
OK here is another patch, which uses PKG_SUPPORTED_OPTIONS instead of
USE_INET6. does it look right ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/wget/Makefile,v
retrieving revision 1.75
diff -u -r1.75 Makefile
--- Makefile 3 Oct 2004 00:18:01 -0000 1.75
+++ Makefile 12 Jan 2005 22:49:12 -0000
@@ -37,5 +37,15 @@
CONFIGURE_ARGS+=--without-ssl
.endif
+PKG_OPTIONS_VAR= PKG_OPTIONS.wget
+PKG_SUPPORTED_OPTIONS= inet6
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
--KsGdsel6WgEHnImy--