~ubuntu-branches/ubuntu/precise/ffmpeg-debian/precise

« back to all changes in this revision

Viewing changes to debian/patches/050_fix_pkgconfig_files.patch

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 09:20:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120092053-izz63p40hc98qfgp
Tags: 3:0.svn20090119-1ubuntu1
* merge from debian. LP: #318501
* new version fixes CVE-2008-3230, LP: #253767

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
patch by Reinhard Tartler <siretart@debian.org>
2
 
 
3
 
remove varialbe pkg_requires from the configure script. According to
4
 
pkg-config upstream the field Requires.private is only necessary if a
5
 
library exposes internal types (structs, enums) of the "required"
6
 
libraries. This is only the case for libavutil that is exposed by
7
 
libavcodec, libavformat and others. Libraries like theora, dirac, etc
8
 
are exposed in Libs.private already.
9
 
 
10
 
Discussion about this started at:
11
 
 
12
 
http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/76897
13
 
http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/76897
14
 
 
15
 
 
16
 
--- a/configure
17
 
+++ b/configure
18
 
@@ -2064,11 +2064,6 @@ check_deps $CONFIG_LIST       \
19
 
            $OUTDEV_LIST       \
20
 
            $PROTOCOL_LIST     \
21
 
 
22
 
-enabled libdc1394 && append pkg_requires "libraw1394"
23
 
-enabled libdirac  && append pkg_requires "dirac"
24
 
-enabled libtheora && append pkg_requires "theora"
25
 
-enabled libvorbis && append pkg_requires "vorbisenc"
26
 
-
27
 
 echo "install prefix            $prefix"
28
 
 echo "source path               $source_path"
29
 
 echo "C compiler                $cc"
30
 
@@ -2386,16 +2381,16 @@ EOF
31
 
 }
32
 
 
33
 
 pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION"
34
 
-pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "$pkg_requires libavutil = $LIBAVUTIL_VERSION"
35
 
-pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "$pkg_requires libavcodec = $LIBAVCODEC_VERSION"
36
 
-pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "$pkg_requires libavformat = $LIBAVFORMAT_VERSION"
37
 
+pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
38
 
+pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
39
 
+pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
40
 
 enabled avfilter &&
41
 
-    pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "$pkg_requires libavutil = $LIBAVUTIL_VERSION"
42
 
+    pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
43
 
 enabled postproc &&
44
 
     pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION"
45
 
 if enabled swscale; then
46
 
     pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
47
 
 else
48
 
-    pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "$pkg_requires libavcodec = $LIBAVCODEC_VERSION"
49
 
+    pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavcodec = $LIBAVCODEC_VERSION"
50
 
     apply libswscale/libswscale.pc sed s/^Libs:.*$/Libs:/
51
 
 fi