moc: ffmpeg header patch (thanks Rotwang)

This commit is contained in:
Danny Rawlins 2008-10-30 20:44:47 +11:00
parent 0ed5cb1afc
commit 2b6663cb0e
3 changed files with 19 additions and 3 deletions

View File

@ -1 +1,2 @@
f66eafc046d8d4b52983f78dd934d0f1 moc-2.4.3-ffmpeg_headers.patch
8808082848e90eeec5415baaec7e98ad moc-2.4.3.tar.bz2

View File

@ -7,11 +7,14 @@
name=moc
version=2.4.3
release=2
source=(ftp://ftp.daper.net/pub/soft/moc/stable/moc-$version.tar.bz2)
release=3
source=(ftp://ftp.daper.net/pub/soft/$name/stable/$name-$version.tar.bz2
$name-2.4.3-ffmpeg_headers.patch)
build() {
cd moc-$version
cd $name-$version
patch -p 1 -i $SRC/$name-2.4.3-ffmpeg_headers.patch
./configure \
--prefix=/usr \

View File

@ -0,0 +1,12 @@
diff -pruN moc-2.4.3.orig/decoder_plugins/ffmpeg/ffmpeg.c moc-2.4.3/decoder_plugins/ffmpeg/ffmpeg.c
--- moc-2.4.3.orig/decoder_plugins/ffmpeg/ffmpeg.c 2008-10-30 07:42:38.000000000 +0100
+++ moc-2.4.3/decoder_plugins/ffmpeg/ffmpeg.c 2008-10-30 07:44:12.000000000 +0100
@@ -22,7 +22,7 @@
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
-#include <ffmpeg/avformat.h>
+#include <libavformat/avformat.h>
/* FFmpeg also likes common names, without that, our common.h and log.h would
* not be included. */