[FFmpeg-devel] [RFC][PATCH] Allow include files to be installed into subdirectory

Ivan Kalvachev ikalvachev at gmail.com
Mon Aug 11 01:23:47 CEST 2014


The patch is inspired by something I read in the Debian discussion.
Libav and FFmpeg could be installed side by side without conflicts in
the libraries, thanks to using additional suffixes.

However development/include files are still conflicting, so I thought
of a simple configure hack to give more control to FFmpeg.

With this patch you can do `./configure --extra-incdir="/ffmpeg" ` ,
as result the header files would be installed in
"/usr/local/include/ffmpeg"
e.g.
"/usr/local/include/ffmpeg/libavcodec/avcodec.h"
...

The change is reflected in the pkgconfig files too. Since applications
that link to libraries with addition suffixes should be using
pkgconfig, they would be using the correct header includes
automatically.


I did just a rudimentary test and I couldn't spot anything wrong.
Please test it before inclusion.


As for the future, it might be good idea next major release (e.g. 3.0)
to have the $prefix/include/ffmpeg as default include path (for
non-comapt build).


Best Regards
   Ivan Kalvachev
  iive
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-extra-incdir-SUFFIX.patch
Type: text/x-diff
Size: 1510 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140811/e78dbfac/attachment.bin>


More information about the ffmpeg-devel mailing list