diff options
author | mat <mat@FreeBSD.org> | 2016-10-12 20:19:55 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-10-12 20:19:55 +0800 |
commit | 75061c2d19652205c18f32580d0fb10d98a6c78e (patch) | |
tree | 0bd5e58b67c4499ab54a707f70e5f05b51217193 /Mk | |
parent | 1b2bf8e66185a3c281b4107d443100c311fee6b5 (diff) | |
download | freebsd-ports-gnome-75061c2d19652205c18f32580d0fb10d98a6c78e.tar.gz freebsd-ports-gnome-75061c2d19652205c18f32580d0fb10d98a6c78e.tar.zst freebsd-ports-gnome-75061c2d19652205c18f32580d0fb10d98a6c78e.zip |
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
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.options.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index fccbed6c070e..7399de4b1514 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -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) |