[FFmpeg-devel] usage of Requires.private in *.pc files

Reinhard Tartler siretart
Mon Nov 10 19:35:19 CET 2008

M?ns Rullg?rd <mans at mansr.com> writes:

>> In detail: I need to know how and in what way libavcodec exposes
>> implementation details (structures, enums, etc) of libraw1394, dirac,
>> theora, vorbisenc. I believe avcodec does not at all, but I want to be
>> sure.
> It does not.

In that case I propose this patch:

--- configure   (Revision 15797)
+++ configure   (Arbeitskopie)
@@ -2360,11 +2360,11 @@
 Name: $name
 Description: $comment
 Version: $version
-Requires: $(disabled shared && echo $requires)
-Requires.private: $(enabled shared && echo $requires)
 Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs)
-Libs.private: $(enabled shared && echo $libs)
+Libs.private: $(enabled shared && echo $libs) $(enabled shared && echo $requires) 
 Cflags: -I\${includedir}
 cat <<EOF > $name/$name-uninstalled.pc

>  I can't see how it could, nor how it could matter if it did.

this does happen e.g.in the gnome world, where types like structs or
enums are used inside "own" structs, and exposed to applications.

I didn't really expect ffmpeg developers to do nasty things like that,
but I wanted to be sure.

Reinhard Tartler, KeyID 945348A4

More information about the ffmpeg-devel mailing list