svn commit: r404759 - head/Mk
Mathieu Arnold
mat at FreeBSD.org
Tue Dec 29 16:19:56 UTC 2015
Author: mat
Date: Tue Dec 29 16:19:55 2015
New Revision: 404759
URL: https://svnweb.freebsd.org/changeset/ports/404759
Log:
Remove unneeded .for loops.
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D4484
Modified:
head/Mk/bsd.options.mk
Modified: head/Mk/bsd.options.mk
==============================================================================
--- head/Mk/bsd.options.mk Tue Dec 29 16:11:00 2015 (r404758)
+++ head/Mk/bsd.options.mk Tue Dec 29 16:19:55 2015 (r404759)
@@ -499,14 +499,10 @@ ${_u:tu}= ${${opt}_VARS:M${var}=*:C/[^=
. endfor
. endif
. if defined(${opt}_CONFIGURE_ENABLE)
-. for iopt in ${${opt}_CONFIGURE_ENABLE}
-CONFIGURE_ARGS+= --enable-${iopt}
-. endfor
+CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ENABLE:C/^/--enable-/}
. endif
. if defined(${opt}_CONFIGURE_WITH)
-. for iopt in ${${opt}_CONFIGURE_WITH}
-CONFIGURE_ARGS+= --with-${iopt}
-. endfor
+CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:C/^/--with-/}
. endif
. for configure in CONFIGURE CMAKE QMAKE
. if defined(${opt}_${configure}_ON)
@@ -547,14 +543,10 @@ ${_u:tu}= ${${opt}_VARS_OFF:M${var}=*:C
. endfor
. endif
. if defined(${opt}_CONFIGURE_ENABLE)
-. for iopt in ${${opt}_CONFIGURE_ENABLE}
-CONFIGURE_ARGS+= --disable-${iopt:C/=.*//}
-. endfor
+CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ENABLE:S/^/--disable-/:C/=.*//}
. endif
. if defined(${opt}_CONFIGURE_WITH)
-. for iopt in ${${opt}_CONFIGURE_WITH}
-CONFIGURE_ARGS+= --without-${iopt:C/=.*//}
-. endfor
+CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:C/^/--without-/:C/=.*//}
. endif
. for configure in CONFIGURE CMAKE QMAKE
. if defined(${opt}_${configure}_OFF)
More information about the svn-ports-all
mailing list