[SCM] libav/experimental: configure: add --disable-everything option

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:04:05 UTC 2013


The following commit has been merged in the experimental branch:
commit 36e2dea032df93c841cb7c6c8bc977d96bad33c8
Author: Måns Rullgård <mans at mansr.com>
Date:   Thu Mar 11 00:39:02 2010 +0000

    configure: add --disable-everything option
    
    This disables all codecs, formats, etc.  It saves some typing when
    only a few components are desired.
    
    Originally committed as revision 22443 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index 94cf368..5d576ec 100755
--- a/configure
+++ b/configure
@@ -312,6 +312,12 @@ filter(){
     done
 }
 
+map(){
+    m=$1
+    shift
+    for _; do; eval $m; done
+}
+
 set_all(){
     value=$1
     shift
@@ -1578,6 +1584,9 @@ for opt do
     ;;
     --enable-debug=*) debuglevel="$optval"
     ;;
+    --disable-everything)
+    map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST
+    ;;
     --enable-*=*|--disable-*=*)
     eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
     is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list