Recognize inet6 in PKG_SUPPORTED_OPTIONS as an indicator trunk
authorwiz <wiz@pkgsrc.org>
Wed, 01 Jun 2005 17:45:57 +0000
branchtrunk
changeset 80369 1948bd3b6445
parent 80368 0b2152fdf9a7
child 80370 8d578f9fb496
Recognize inet6 in PKG_SUPPORTED_OPTIONS as an indicator that a package support IPv6 (for the README-IPv6.html generation).
Makefile
--- a/Makefile	Wed Jun 01 17:27:22 2005 +0000
+++ b/Makefile	Wed Jun 01 17:45:57 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2005/05/17 21:46:59 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.72 2005/06/01 17:45:57 wiz Exp $
 #
 
 # tools used by this Makefile
@@ -216,16 +216,16 @@
 	fi
 
 README-IPv6.html:
-	@${GREP} -l '^BUILD_DEFS.*=.*USE_INET6' */*/Makefile \
-	 | ${SED} s,Makefile,, >$@.pkgs
+	@${GREP} -l -e '^BUILD_DEFS.*=.*USE_INET6' -e '^PKG_SUPPORTED_OPTIONS.*=.*inet6' \
+		 */*/Makefile */*/options.mk \
+	 | ${SED} -e s,Makefile,, -e s,options.mk,, >$@.pkgs
 	@${FGREP} -f $@.pkgs README-all.html | ${SORT} -t/ +1 >$@.trs
 	@${CAT} templates/README.ipv6 \
 	| ${SED} \
 		-e '/%%TRS%%/r$@.trs' \
 		-e '/%%TRS%%/d' \
 		>$@
-	@${RM} $@.trs
-	@${RM} $@.pkgs
+	@${RM} $@.pkgs $@.trs
 
 show-host-specific-pkgs:
 	@${ECHO} "HOST_SPECIFIC_PKGS= \\";					\