[Ffmpeg-devel] [PATCH] add libavutil.pc + fix version in pkg-config files

j at v2v.cc j
Fri Aug 5 17:47:24 CEST 2005

attached patch adds libavutil.pc and updated the dependency of
libavcodec/libavformat to link to it.

right now configure contains two lines to try to get the build version
of avcodec, -format, due to some recent change in the header files that
does not work anymore, 
results in bad version strings in the pkg-config files.

lavc_build=`grep '#define LIBAVCODEC_BUILD' "$source_path/libavcodec/avcodec.h" | sed 's/[^0-9]//g'`
lavf_build=`grep '#define LIBAVFORMAT_BUILD' "$source_path/libavformat/avformat.h" | sed 's/[^0-9]//g'`

grep '#define LIBAVCODEC_BUILD' libavcodec/avcodec.h

grep '#define LIBAVCODEC_VERSION_INT' libavcodec/avcodec.h
#define LIBAVCODEC_VERSION_INT ((49<<16)+(0<<8)+1)

thats that? 
the patch changes that to 
lavc_version=`grep '#define LIBAVCODEC_VERSION ' "$source_path/libavcodec/avcodec.h" | sed 's/[^0-9\.]//g'`
lavf_version=`grep '#define LIBAVFORMAT_VERSION ' "$source_path/libavformat/avformat.h" | sed 's/[^0-9\.]//g'`

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg+libavutil.pc
Type: text/x-patch
Size: 4226 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050805/07708089/attachment.bin>

More information about the ffmpeg-devel mailing list