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

Michael Niedermayer michaelni at gmx.at
Sun Aug 17 18:19:25 CEST 2014


On Mon, Aug 11, 2014 at 02:23:47AM +0300, Ivan Kalvachev wrote:
> 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

>  configure |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 75b48b0d0e0320f08ee64b6327f83eb97e9518e3  0001-Implement-extra-incdir-SUFFIX.patch
> From 5760ef5c29c02f5e137d4af3199eb71371b02ce1 Mon Sep 17 00:00:00 2001
> From: Ivan Kalvachev <ikalvachev at gmail.com>
> Date: Mon, 4 Aug 2014 21:40:48 +0300
> Subject: [PATCH] Implement --extra-incdir=SUFFIX
> 
> Signed-off-by: Ivan Kalvachev <ikalvachev at gmail.com>

ive been asked to review this, but

iam not sure about this patch,
if its only use case is for distributions then the distro maintainers
should decide if its usefull to them not me

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140817/47baa1a2/attachment.asc>


More information about the ffmpeg-devel mailing list