~ubuntu-branches/ubuntu/utopic/ffmpeg-debian/utopic

« back to all changes in this revision

Viewing changes to debian/patches/050_disable_faad_test.diff

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-11-15 19:44:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115194429-zwlw86ht1rctd8z9
Tags: 3:0.svn20081115-1ubuntu1
* merge from debian.
* keep myself in the maintainer field. If you are touching this or the
  'ffmpeg' package in multiverse, please get in touch with me. Both
  source packages come from the same packaging branch.
* drop dependency on faad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
disable configure checks for libfaad2 and liba52.
 
2
 
 
3
in debian/ubuntu, we cannot have the headers an libraries on the
 
4
system. however, we ship with copies of the headers. This means that we
 
5
manually ensure that this works, but the checks are too tight here for
 
6
our needs.
 
7
 
 
8
--- a/configure
 
9
+++ b/configure
 
10
@@ -1331,21 +1331,9 @@ fi
 
11
 disabled static && LIBNAME=""
 
12
 
 
13
 if enabled_any libfaad libfaadbin ; then
 
14
-    if check_header faad.h; then
 
15
-        check_cc << EOF
 
16
-#include <faad.h>
 
17
-#ifndef FAAD2_VERSION
 
18
-ok faad1
 
19
-#endif
 
20
-int main(void) { return 0; }
 
21
-EOF
 
22
-        test $? = 0 && enable libfaad2
 
23
-    else
 
24
-        die "FAAD test failed."
 
25
-    fi
 
26
+    enable libfaad2
 
27
 fi
 
28
 
 
29
-
 
30
 if ! enabled gpl; then
 
31
     die_gpl_disabled(){
 
32
         name=$1
 
33
@@ -1639,11 +1627,11 @@ done
 
34
 
 
35
 # these are off by default, so fail if requested and not available
 
36
 enabled avisynth   && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32
 
37
-enabled liba52     && require  liba52 a52dec/a52.h a52_init -la52
 
38
+# enabled liba52     && require  liba52 a52dec/a52.h a52_init -la52
 
39
 enabled libamr_nb  && require  libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm
 
40
 enabled libamr_wb  && require  libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm
 
41
 enabled libfaac    && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
 
42
-enabled libfaad    && require2 libfaad faad.h faacDecOpen -lfaad
 
43
+# enabled libfaad    && require2 libfaad faad.h faacDecOpen -lfaad
 
44
 enabled libgsm     && require  libgsm gsm.h gsm_create -lgsm
 
45
 enabled libmp3lame && require  LAME lame/lame.h lame_init -lmp3lame -lm
 
46
 enabled libnut     && require  libnut libnut.h nut_demuxer_init -lnut