Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2014 13:29:31 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358699 - head/Mk
Message-ID:  <201406211329.s5LDTV7N084060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sat Jun 21 13:29:30 2014
New Revision: 358699
URL: http://svnweb.freebsd.org/changeset/ports/358699
QAT: https://qat.redports.org/buildarchive/r358699/

Log:
  - strip optional WITH parameter from argument if OPTION is set to off
  
    FOO_WITH=	foo=bar
  
    CONFIGURE_ARGS will become now
    ON:	--with-foo=bar
    OFF:	--without-foo
  
  PR:		191085
  Submitted by:	ohauer
  Approved by:	portmgr (antoine)

Modified:
  head/Mk/bsd.options.mk

Modified: head/Mk/bsd.options.mk
==============================================================================
--- head/Mk/bsd.options.mk	Sat Jun 21 13:20:29 2014	(r358698)
+++ head/Mk/bsd.options.mk	Sat Jun 21 13:29:30 2014	(r358699)
@@ -467,7 +467,7 @@ CONFIGURE_ARGS+=	--disable-${iopt}
 .    endif
 .    if defined(${opt}_CONFIGURE_WITH)
 .      for iopt in ${${opt}_CONFIGURE_WITH}
-CONFIGURE_ARGS+=	--without-${iopt}
+CONFIGURE_ARGS+=	--without-${iopt:C/=.*//}
 .      endfor
 .    endif
 .    for configure in CONFIGURE CMAKE QMAKE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406211329.s5LDTV7N084060>