From ddfe3a4e261b8df4bb8e30b240eca919fd324d8e Mon Sep 17 00:00:00 2001 From: lioux Date: Mon, 25 Sep 2006 00:47:40 +0000 Subject: Fix build on 4.x: fix devel/sdl header include PR: 102431 Submitted by: Shaun Amott --- multimedia/ffmpeg-devel/Makefile | 5 ++++- multimedia/ffmpeg-devel/files/patch-libavcodec_x264.c | 11 ----------- multimedia/ffmpeg-devel/files/patch-libavformat_movenc.c | 13 +++++++++++++ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 multimedia/ffmpeg-devel/files/patch-libavformat_movenc.c diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index 809e9e93b980..00dc31fabf18 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -54,7 +54,7 @@ FFMPEG_LDFLAGS= \ -fPIE PLIST_SUB= SHLIB_VERSION=${SHLIB_VERSION} -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes NO_LATEST_LINK= yes CONFLICTS= ffmpeg-[0-9]*-* @@ -545,6 +545,9 @@ post-patch: @${REINPLACE_CMD} -E \ -e 's|sdl-config|${SDL_CONFIG}|g' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -E \ + -e 's|#include crf || (avctx->cqp > -1))) x4->params.rc.b_cbr = 1; -+ if(!(avctx->crf || (avctx->cqp > -1))) x4->params.rc.i_rc_method = 1; - - x4->params.i_bframe = avctx->max_b_frames; - x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC; diff --git a/multimedia/ffmpeg-devel/files/patch-libavformat_movenc.c b/multimedia/ffmpeg-devel/files/patch-libavformat_movenc.c new file mode 100644 index 000000000000..c814b06d11f4 --- /dev/null +++ b/multimedia/ffmpeg-devel/files/patch-libavformat_movenc.c @@ -0,0 +1,13 @@ +--- libavformat/movenc.c.orig Wed Mar 22 16:49:05 2006 ++++ libavformat/movenc.c Wed Aug 23 12:37:33 2006 +@@ -22,6 +22,10 @@ + #include "avio.h" + #include "mov.h" + ++#ifndef UINT32_MAX ++#define UINT32_MAX 0xffffffffU ++#endif ++ + #undef NDEBUG + #include + -- cgit