Date: Tue, 29 Dec 2015 16:19:55 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404759 - head/Mk Message-ID: <201512291619.tBTGJtI1090418@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512291619.tBTGJtI1090418>