From 2b6663cb0e0764bd4e1998a010cb1f21bf65850f Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Thu, 30 Oct 2008 20:44:47 +1100 Subject: [PATCH] moc: ffmpeg header patch (thanks Rotwang) --- moc/.md5sum | 1 + moc/Pkgfile | 9 ++++++--- moc/moc-2.4.3-ffmpeg_headers.patch | 12 ++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 moc/moc-2.4.3-ffmpeg_headers.patch diff --git a/moc/.md5sum b/moc/.md5sum index 239a3aec4..7e05e0177 100644 --- a/moc/.md5sum +++ b/moc/.md5sum @@ -1 +1,2 @@ +f66eafc046d8d4b52983f78dd934d0f1 moc-2.4.3-ffmpeg_headers.patch 8808082848e90eeec5415baaec7e98ad moc-2.4.3.tar.bz2 diff --git a/moc/Pkgfile b/moc/Pkgfile index 6c0dc3bc8..1a7784a7d 100644 --- a/moc/Pkgfile +++ b/moc/Pkgfile @@ -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 \ diff --git a/moc/moc-2.4.3-ffmpeg_headers.patch b/moc/moc-2.4.3-ffmpeg_headers.patch new file mode 100644 index 000000000..8015f3620 --- /dev/null +++ b/moc/moc-2.4.3-ffmpeg_headers.patch @@ -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 + #endif +-#include ++#include + + /* FFmpeg also likes common names, without that, our common.h and log.h would + * not be included. */