svn commit: r320343 - head/Mk

Tijl Coosemans tijl at FreeBSD.org
Sun Jun 9 16:02:03 UTC 2013


Author: tijl
Date: Sun Jun  9 16:02:03 2013
New Revision: 320343
URL: http://svnweb.freebsd.org/changeset/ports/320343

Log:
  Eliminate _ALL_EXCLUDE temporary variable and fuse two .for loops.
  
  Approved by:	bapt

Modified:
  head/Mk/bsd.options.mk

Modified: head/Mk/bsd.options.mk
==============================================================================
--- head/Mk/bsd.options.mk	Sun Jun  9 15:58:46 2013	(r320342)
+++ head/Mk/bsd.options.mk	Sun Jun  9 16:02:03 2013	(r320343)
@@ -73,9 +73,6 @@ PORT_OPTIONS+=	EXAMPLES
 # Activate IPV6 by default
 PORT_OPTIONS+=	IPV6
 
-# Exclude per arch options
-_ALL_EXCLUDE=	${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} ${OPTIONS_SLAVE}
-
 # Add per arch options
 .for opt in ${OPTIONS_DEFINE_${ARCH}}
 .if empty(OPTIONS_DEFINE:M${opt})
@@ -98,15 +95,11 @@ ALL_OPTIONS+=	${opt}
 ALL_OPTIONS:=	${ALL_OPTIONS:O:u}
 OPTIONS_DEFAULT:=	${OPTIONS_DEFAULT:O:u}
 
-# Remove global options the port maintainer doesn't want
-.for opt in ${_ALL_EXCLUDE}
+# Remove options the port maintainer doesn't want
+.for opt in ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} ${OPTIONS_SLAVE}
 OPTIONS_DEFAULT:=	${OPTIONS_DEFAULT:N${opt}}
 ALL_OPTIONS:=		${ALL_OPTIONS:N${opt}}
 PORT_OPTIONS:=		${PORT_OPTIONS:N${opt}}
-.endfor
-
-# Remove illegal per-arch options
-.for opt in ${_ALL_EXCLUDE}
 .  for single in ${OPTIONS_SINGLE}
 OPTIONS_SINGLE_${single}:=	${OPTIONS_SINGLE_${single}:N${opt}}
 .  endfor


More information about the svn-ports-head mailing list