1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Change the way opt_USE is parsed.

This makes it possible to have:
opt_USE=  ldconfig=${PREFIX}/lib/foo/bar

Before this, it would have ended up doing USE_LDCONFIG=/lib/foo/bar,
without ${PREFIX}.

Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D8169
This commit is contained in:
Mathieu Arnold 2016-10-12 12:19:55 +00:00
parent 6ade293159
commit 07231789ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423859

View File

@ -495,9 +495,9 @@ SUB_LIST:= ${SUB_LIST} ${opt}="@comment " NO_${opt}=""
. if ${PORT_OPTIONS:M${opt}}
. if defined(${opt}_USE)
. for option in ${${opt}_USE}
_u= ${option:C/=.*//g}
USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g}
. for option in ${${opt}_USE:C/=.*//:O:u}
_u= ${option}
USE_${_u:tu}+= ${${opt}_USE:M${option}=*:C/.*=//g:C/,/ /g}
. endfor
. endif
. if defined(${opt}_VARS)
@ -545,9 +545,9 @@ _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}
. endfor
. else
. if defined(${opt}_USE_OFF)
. for option in ${${opt}_USE_OFF}
_u= ${option:C/=.*//g}
USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g}
. for option in ${${opt}_USE_OFF:C/=.*//:O:u}
_u= ${option}
USE_${_u:tu}+= ${${opt}_USE_OFF:M${option}=*:C/.*=//g:C/,/ /g}
. endfor
. endif
. if defined(${opt}_VARS_OFF)