1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- 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)
This commit is contained in:
Olli Hauer 2014-06-21 13:29:30 +00:00
parent e76c3fedf8
commit ad199a9229
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358699

View File

@ -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