summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2012-04-08 11:33:37 +0000
committerDaniel Pielmeier <billie@gentoo.org>2012-04-08 11:33:37 +0000
commita36b538afb552701265e99533c570c1160167d86 (patch)
tree5a17ed1204e5a574ff589d8f6c2b80adc81940f6 /media-video
parentUnmask fixed version of libcaca. (diff)
downloadgentoo-2-a36b538afb552701265e99533c570c1160167d86.tar.gz
gentoo-2-a36b538afb552701265e99533c570c1160167d86.tar.bz2
gentoo-2-a36b538afb552701265e99533c570c1160167d86.zip
Add patch to fix building with gcc-4.7. Thanks to Branko BAdrljica in bug #409197.
(Portage version: 2.1.10.49/cvs/Linux i686)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/mjpegtools/ChangeLog11
-rw-r--r--media-video/mjpegtools/files/mjpegtools-2.0.0-gcc470.patch11
-rw-r--r--media-video/mjpegtools/mjpegtools-2.0.0-r2.ebuild83
3 files changed, 103 insertions, 2 deletions
diff --git a/media-video/mjpegtools/ChangeLog b/media-video/mjpegtools/ChangeLog
index e148f760362e..9dab14b80372 100644
--- a/media-video/mjpegtools/ChangeLog
+++ b/media-video/mjpegtools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/mjpegtools
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/ChangeLog,v 1.168 2011/10/23 18:02:04 billie Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/ChangeLog,v 1.169 2012/04/08 11:33:36 billie Exp $
+
+*mjpegtools-2.0.0-r2 (08 Apr 2012)
+
+ 08 Apr 2012; Daniel Pielmeier <billie@gentoo.org>
+ +mjpegtools-2.0.0-r2.ebuild, +files/mjpegtools-2.0.0-gcc470.patch:
+ Add patch to fix building with gcc-4.7. Thanks to Branko BAdrljica in bug
+ #409197.
23 Oct 2011; Daniel Pielmeier <billie@gentoo.org> mjpegtools-2.0.0-r1.ebuild:
Remove USE="X" as per bug 387537. Thanks to Ulrich Müller for the report.
diff --git a/media-video/mjpegtools/files/mjpegtools-2.0.0-gcc470.patch b/media-video/mjpegtools/files/mjpegtools-2.0.0-gcc470.patch
new file mode 100644
index 000000000000..050b33febb68
--- /dev/null
+++ b/media-video/mjpegtools/files/mjpegtools-2.0.0-gcc470.patch
@@ -0,0 +1,11 @@
+--- a/y4mdenoise/MotionSearcher.hh
++++ b/y4mdenoise/MotionSearcher.hh
+@@ -2196,7 +2196,7 @@
+ {
+ // This region is too small to be bothered with.
+ // Just get rid of it.
+- DeleteRegion (a_pRegion);
++ this->DeleteRegion (a_pRegion);
+ }
+ else
+ {
diff --git a/media-video/mjpegtools/mjpegtools-2.0.0-r2.ebuild b/media-video/mjpegtools/mjpegtools-2.0.0-r2.ebuild
new file mode 100644
index 000000000000..d3e17a8cf38b
--- /dev/null
+++ b/media-video/mjpegtools/mjpegtools-2.0.0-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-2.0.0-r2.ebuild,v 1.1 2012/04/08 11:33:36 billie Exp $
+
+EAPI=4
+
+inherit autotools eutils flag-o-matic toolchain-funcs
+
+MY_P=${P/_/}
+
+DESCRIPTION="Tools for MJPEG video"
+HOMEPAGE="http://mjpeg.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mjpeg/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="dga dv gtk mmx png quicktime sdl sdlgfx static-libs v4l"
+REQUIRED_USE="sdlgfx? ( sdl )"
+
+RDEPEND="virtual/jpeg
+ quicktime? ( media-libs/libquicktime )
+ dv? ( >=media-libs/libdv-0.99 )
+ png? ( media-libs/libpng )
+ dga? ( x11-libs/libXxf86dga )
+ gtk? ( x11-libs/gtk+:2 )
+ sdl? ( >=media-libs/libsdl-1.2.7-r3
+ x11-libs/libX11
+ x11-libs/libXt
+ sdlgfx? ( media-libs/sdl-gfx )
+ )"
+
+DEPEND="${RDEPEND}
+ mmx? ( dev-lang/nasm )
+ >=sys-apps/sed-4
+ sys-apps/gawk
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${P/_rc*}"
+
+pkg_pretend() {
+ if has_version ">=sys-kernel/linux-headers-2.6.38" && use v4l; then
+ ewarn "Current versions of mjpegtools only support V4L1 which is not available"
+ ewarn "for kernels versions 2.6.38 and above. V4L1 will be disabled."
+ fi
+}
+
+# Avoid execution of linux-info_pkg_setup()
+pkg_setup() { : ; }
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sdlgfx-automagic.patch
+ epatch "${FILESDIR}"/${P}-gcc470.patch
+ eautoreconf
+ sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
+}
+
+src_configure() {
+ [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
+
+ econf \
+ --enable-compile-warnings \
+ $(use_enable mmx simd-accel) \
+ $(use_enable static-libs static) \
+ --enable-largefile \
+ $(use_with quicktime libquicktime) \
+ $(use_with dv libdv) \
+ $(use_with png libpng) \
+ $(use_with dga) \
+ $(use_with gtk) \
+ $(use_with sdl libsdl) \
+ $(use_with sdlgfx) \
+ $(use_with v4l) \
+ $(use_with sdl x)
+}
+
+src_install() {
+ default
+
+ dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt
+
+ find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
+}