mirror of https://git.ffmpeg.org/ffmpeg.git
configure: allow comma-separated list in --enable/disable-thing=name
The argument to these options is now a comma-separated list of shell patterns, e.g. --disable-decoder='indeo*,rv*' Originally committed as revision 19604 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
be8f2501dd
commit
8b93ddc340
|
@ -1390,10 +1390,11 @@ for opt do
|
||||||
--enable-debug=*) debuglevel="$optval"
|
--enable-debug=*) debuglevel="$optval"
|
||||||
;;
|
;;
|
||||||
--enable-*=*|--disable-*=*)
|
--enable-*=*|--disable-*=*)
|
||||||
eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/')
|
eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
|
||||||
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
|
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
|
||||||
eval list=\$$(toupper $thing)_LIST
|
eval list=\$$(toupper $thing)_LIST
|
||||||
$action $(filter "${optval}_${thing}" $list)
|
name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing}
|
||||||
|
$action $(filter "$name" $list)
|
||||||
;;
|
;;
|
||||||
--enable-?*|--disable-?*)
|
--enable-?*|--disable-?*)
|
||||||
eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
|
eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
|
||||||
|
|
Loading…
Reference in New Issue