mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Allow multiple values for configure ENABLE and WITH options helpers
${opt}_CONFIGURE_ENABLE and ${opt}_CONFIGURE_WITH now accept multiple arguments and will be expanded accordingly, e.g.: OPT_CONFIGURE_ENABLE= feature1 feature2 -- will add to CONFIGURE_ARGS: OPT enabled: --enable-feature1 --enable-feature2 OPT disabled: --disable-feature1 --disable-feature2 Approved by: portmgr (bapt)
This commit is contained in:
parent
858cd0d3ce
commit
c7db7eafb3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331760
@ -391,10 +391,14 @@ USE_${_u:U}+= ${option:C/.*=//g}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_ENABLE)
|
||||
CONFIGURE_ARGS+= --enable-${${opt}_CONFIGURE_ENABLE}
|
||||
. for iopt in ${${opt}_CONFIGURE_ENABLE}
|
||||
CONFIGURE_ARGS+= --enable-${iopt}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_WITH)
|
||||
CONFIGURE_ARGS+= --with-${${opt}_CONFIGURE_WITH}
|
||||
. for iopt in ${${opt}_CONFIGURE_WITH}
|
||||
CONFIGURE_ARGS+= --with-${iopt}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_ON)
|
||||
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ON}
|
||||
@ -416,10 +420,14 @@ ${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS}
|
||||
. endfor
|
||||
. else
|
||||
. if defined(${opt}_CONFIGURE_ENABLE)
|
||||
CONFIGURE_ARGS+= --disable-${${opt}_CONFIGURE_ENABLE}
|
||||
. for iopt in ${${opt}_CONFIGURE_ENABLE}
|
||||
CONFIGURE_ARGS+= --disable-${iopt}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_WITH)
|
||||
CONFIGURE_ARGS+= --without-${${opt}_CONFIGURE_WITH}
|
||||
. for iopt in ${${opt}_CONFIGURE_WITH}
|
||||
CONFIGURE_ARGS+= --without-${iopt}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_OFF)
|
||||
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_OFF}
|
||||
|
Loading…
Reference in New Issue
Block a user