summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <tester@gentoo.org>2008-01-12 21:03:54 +0000
committerOlivier Crête <tester@gentoo.org>2008-01-12 21:03:54 +0000
commit67192a5765f746bf28c113239aca1e28b004a64c (patch)
tree630f05a9d43118838e2243fa3481891fc00fde1e /media-video/mpeg4ip
parentFix bug #205499. (diff)
downloadgentoo-2-67192a5765f746bf28c113239aca1e28b004a64c.tar.gz
gentoo-2-67192a5765f746bf28c113239aca1e28b004a64c.tar.bz2
gentoo-2-67192a5765f746bf28c113239aca1e28b004a64c.zip
Add patch to make it compile with ffmpeg, bug #188183
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-video/mpeg4ip')
-rw-r--r--media-video/mpeg4ip/ChangeLog8
-rw-r--r--media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r43
-rw-r--r--media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-avcodec_extern_c.patch48
-rw-r--r--media-video/mpeg4ip/mpeg4ip-1.5.0.1-r4.ebuild148
4 files changed, 206 insertions, 1 deletions
diff --git a/media-video/mpeg4ip/ChangeLog b/media-video/mpeg4ip/ChangeLog
index 1b1f6b36488f..20c0ffbfde6e 100644
--- a/media-video/mpeg4ip/ChangeLog
+++ b/media-video/mpeg4ip/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/mpeg4ip
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/ChangeLog,v 1.55 2008/01/11 00:15:31 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/ChangeLog,v 1.56 2008/01/12 21:03:53 tester Exp $
+
+*mpeg4ip-1.5.0.1-r4 (12 Jan 2008)
+
+ 12 Jan 2008; Olivier Crête <tester@gentoo.org>
+ +files/mpeg4ip-1.5.0.1-avcodec_extern_c.patch, +mpeg4ip-1.5.0.1-r4.ebuild:
+ Add patch to make it compile with ffmpeg, bug #188183
11 Jan 2008; Steve Dibb <beandog@gentoo.org> mpeg4ip-1.5.0.1-r3.ebuild:
amd64 stable
diff --git a/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r4 b/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r4
new file mode 100644
index 000000000000..c15cf36b860f
--- /dev/null
+++ b/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r4
@@ -0,0 +1,3 @@
+MD5 f53b06c62e914ab724bda9d9af041e08 mpeg4ip-1.5.0.1.tar.gz 4826180
+RMD160 fee5c21c17a470e6de349e07d233a1eb46b2064a mpeg4ip-1.5.0.1.tar.gz 4826180
+SHA256 23535dd818898ec75ffa0df22d9f27189e77361ce8a500d58328073ee247bcb6 mpeg4ip-1.5.0.1.tar.gz 4826180
diff --git a/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-avcodec_extern_c.patch b/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-avcodec_extern_c.patch
new file mode 100644
index 000000000000..4acad6b7b7f1
--- /dev/null
+++ b/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-avcodec_extern_c.patch
@@ -0,0 +1,48 @@
+--- mpeg4ip-1.5.0.1/server/mp4live/audio_ffmpeg.h.unpatched 2007-11-24 09:07:06.000000000 +0100
++++ mpeg4ip-1.5.0.1/server/mp4live/audio_ffmpeg.h 2007-11-24 09:11:03.000000000 +0100
+@@ -24,9 +24,13 @@
+
+ #include "audio_encoder.h"
+ #ifdef HAVE_FFMPEG_INSTALLED
++extern "C" {
+ #include <ffmpeg/avcodec.h>
++}
+ #else
++extern "C" {
+ #include <avcodec.h>
++}
+ #endif
+ #include <sdp.h>
+
+--- mpeg4ip-1.5.0.1/server/mp4live/video_ffmpeg.h.unpatched 2007-11-24 09:09:04.000000000 +0100
++++ mpeg4ip-1.5.0.1/server/mp4live/video_ffmpeg.h 2007-11-24 09:10:18.000000000 +0100
+@@ -24,9 +24,13 @@
+
+ #include "video_encoder.h"
+ #ifdef HAVE_FFMPEG_INSTALLED
++extern "C" {
+ #include <ffmpeg/avcodec.h>
++}
+ #else
++extern "C" {
+ #include <avcodec.h>
++}
+ #endif
+
+ class CFfmpegVideoEncoder : public CVideoEncoder {
+--- mpeg4ip-1.5.0.1/server/mp4live/video_encoder_class.cpp.unpatched 2007-11-24 09:11:51.000000000 +0100
++++ mpeg4ip-1.5.0.1/server/mp4live/video_encoder_class.cpp 2007-11-24 09:12:17.000000000 +0100
+@@ -26,9 +26,13 @@
+ #include "video_util_filter.h"
+ #ifdef HAVE_FFMPEG
+ #ifdef HAVE_FFMPEG_INSTALLED
++extern "C" {
+ #include <ffmpeg/avcodec.h>
++}
+ #else
++extern "C" {
+ #include <avcodec.h>
++}
+ #endif
+ #endif
+
diff --git a/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r4.ebuild b/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r4.ebuild
new file mode 100644
index 000000000000..ec473bf462ee
--- /dev/null
+++ b/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r4.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r4.ebuild,v 1.1 2008/01/12 21:03:53 tester Exp $
+
+WANT_AUTOMAKE="1.9"
+
+inherit eutils multilib autotools
+
+DESCRIPTION="MPEG 4 implementation library"
+HOMEPAGE="http://www.mpeg4ip.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="MPL-1.1 LGPL-2 GPL-2 LGPL-2.1 BSD UCL MPEG4"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ipv6 mmx v4l2 xvid nas alsa esd arts ffmpeg a52 mpeg2 lame aac id3 player mp4live x264"
+
+RDEPEND=" media-libs/libsdl
+ player? (
+ >=x11-libs/gtk+-2
+ ffmpeg? ( >=media-video/ffmpeg-0.4.7 )
+ mpeg2? ( media-libs/libmpeg2 )
+ id3? ( media-libs/libid3tag )
+ a52? ( media-libs/a52dec )
+ )
+ xvid? ( >=media-libs/xvid-0.9.8 )
+ mp4live? (
+ >=x11-libs/gtk+-2
+ lame? ( >=media-sound/lame-3.92 )
+ aac? ( >=media-libs/faac-1.24-r1 )
+ ffmpeg? ( >=media-video/ffmpeg-0.4.7 )
+ x264? ( media-libs/x264-svn )
+ )
+ nas? ( media-libs/nas x11-libs/libXt )
+ alsa? ( media-libs/alsa-lib )
+ arts? ( kde-base/arts )
+ esd? ( media-sound/esound )
+ =media-libs/libmp4v2-1.5.0.1
+ !<media-libs/faad2-2.0-r9 "
+
+DEPEND="${RDEPEND}
+ player? ( mmx? ( >=dev-lang/nasm-0.98.19 ) )"
+
+pkg_setup() {
+ if ! built_with_use media-libs/libsdl X;
+ then
+ eerror "media-libs/libsdl does not has X support"
+ eerror "You need to rebuild media-libs/libsdl with USE=X"
+ die
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/mpeg4ip-1.4.1-disable-faac-test.patch"
+ epatch "${FILESDIR}/${P}-x264.patch"
+ epatch "${FILESDIR}/mpeg4ip-1.5.0.1-newffmpeg.patch"
+ epatch "${FILESDIR}/mpeg4ip-1.5.0.1-lX11.patch"
+ epatch "${FILESDIR}/mpeg4ip-1.5.0.1-as-needed.patch"
+ epatch "${FILESDIR}/${P}-gcc42.patch"
+ epatch "${FILESDIR}/${P}-nasm-r.patch"
+ epatch "${FILESDIR}/mpeg4ip-1.5.0.1-avcodec_extern_c.patch"
+
+ eautoreconf
+}
+
+src_compile() {
+ local myconf
+ myconf=" --datadir=/usr/share/mpeg4ip
+ $(use_enable ipv6)
+ $(use_enable ppc)
+ $(use_enable player)
+ $(use_enable mp4live)
+ $(use_enable xvid)
+ $(use_enable nas)
+ $(use_enable esd)
+ $(use_enable alsa)
+ $(use_enable arts)
+ --disable-srtp" # need ot add libsrtp to portage
+
+ # Those are possible for both player and mp4live
+ if use player || use mp4live ; then
+ myconf="${myconf} --enable-gtk-glib
+ $(use_enable ffmpeg)"
+ fi
+
+ # Those are only relevant for the player
+ use player && myconf="${myconf}
+ $(use_enable mmx)
+ $(use_enable a52 a52dec)
+ $(use_enable mpeg2 mpeg2dec)
+ $(use_enable id3 id3tags)"
+ use player || myconf="${myconf}
+ --disable-a52
+ --disable-mmx
+ --disable-mpeg2dec
+ --disable-id3tags"
+
+ # those can only be used for mp4live
+ use mp4live && myconf="${myconf}
+ $(use_enable v4l2)
+ $(use_enable lame mp3lame)
+ $(use_enable aac faac)
+ $(use_enable x264)"
+ # $(use_enable alsa mp4live-alsa)
+ use mp4live || myconf="${myconf}
+ --disable-v4l2
+ --disable-mp3lame
+ --disable-faac
+ --disable-mp4live-alsa
+ --disable-x264"
+
+ ./bootstrap --prefix=/usr \
+ --host=${CHOST} \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --datadir=/usr/share \
+ --sysconfdir=/etc \
+ --libdir=/usr/$(get_libdir) \
+ --localstatedir=/var/lib \
+ --disable-warns-as-err \
+ --enable-server \
+ ${EXTRA_ECONF} \
+ ${myconf} || die "configure failed"
+
+ sed -i -e 's:-Werror::' common/video/iso-mpeg4/src/Makefile || die "sed failed"
+
+ emake || die "make failed"
+}
+
+src_install () {
+ make install DESTDIR="${D}" || die "make install failed"
+
+ rm -f "${D}"/usr/include/mp4.h
+ rm -f "${D}"/usr/$(get_libdir)/libmp4v2*
+
+ dodoc doc/MPEG4IP_Guide.pdf doc/*txt AUTHORS TODO
+
+ dohtml doc/*.html FEATURES.html || die
+
+ docinto ietf
+ dodoc doc/ietf/*.txt || die
+
+ docinto mcast
+ dodoc doc/mcast/mcast.txt doc/mcast/mcast_example doc/mcast/playlist_example || die
+
+}