summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-10-31 12:23:20 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-10-31 12:23:20 +0000
commit980b5e15e851bd405f81f0852fcee7fe42eec2af (patch)
tree66730643657a63a8e4ceaf0e5f4f5d1f616b031b /media-video/y4mscaler
parentVersion bump and old version cleanup (diff)
downloadgentoo-2-980b5e15e851bd405f81f0852fcee7fe42eec2af.tar.gz
gentoo-2-980b5e15e851bd405f81f0852fcee7fe42eec2af.tar.bz2
gentoo-2-980b5e15e851bd405f81f0852fcee7fe42eec2af.zip
Fix build with latest mjpegtools, by Michael Mauch <michael.mauch@gmx.de>, bug #219063, respect ldflags and chost-prefixed g++
(Portage version: 2.2_rc12/cvs/Linux 2.6.27.4 x86_64)
Diffstat (limited to 'media-video/y4mscaler')
-rw-r--r--media-video/y4mscaler/ChangeLog9
-rw-r--r--media-video/y4mscaler/files/y4mscaler-9.0-mjpeg-1.9.patch20
-rw-r--r--media-video/y4mscaler/y4mscaler-9.0-r1.ebuild33
3 files changed, 61 insertions, 1 deletions
diff --git a/media-video/y4mscaler/ChangeLog b/media-video/y4mscaler/ChangeLog
index 5595881e51ab..a7197b2a8796 100644
--- a/media-video/y4mscaler/ChangeLog
+++ b/media-video/y4mscaler/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/y4mscaler
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/y4mscaler/ChangeLog,v 1.9 2008/10/31 12:14:20 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/y4mscaler/ChangeLog,v 1.10 2008/10/31 12:23:20 aballier Exp $
+
+*y4mscaler-9.0-r1 (31 Oct 2008)
+
+ 31 Oct 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/y4mscaler-9.0-mjpeg-1.9.patch, +y4mscaler-9.0-r1.ebuild:
+ Fix build with latest mjpegtools, by Michael Mauch <michael.mauch@gmx.de>,
+ bug #219063, respect ldflags and chost-prefixed g++
31 Oct 2008; Alexis Ballier <aballier@gentoo.org> y4mscaler-9.0.ebuild:
shorten description
diff --git a/media-video/y4mscaler/files/y4mscaler-9.0-mjpeg-1.9.patch b/media-video/y4mscaler/files/y4mscaler-9.0-mjpeg-1.9.patch
new file mode 100644
index 000000000000..afb170bbd344
--- /dev/null
+++ b/media-video/y4mscaler/files/y4mscaler-9.0-mjpeg-1.9.patch
@@ -0,0 +1,20 @@
+--- old/y4mscaler.C 2005-12-11 21:27:03.000000000 +0100
++++ y4mscaler.C 2008-04-23 20:46:29.318734652 +0200
+@@ -194,7 +194,7 @@
+ if (source.read_stream_header(fd_in) != Y4M_OK)
+ mjpeg_error_exit1("Failed to read YUV4MPEG2 header!");
+ mjpeg_info("Input Stream Header:");
+- source.stream().log_info(LOG_INFO, "<<< ");
++ source.stream().log_info(mjpeg_loglev_t("info"), "<<< ");
+
+ /* set target stream defaults from source stream */
+ target.init_stream(source);
+@@ -216,7 +216,7 @@
+ /* set up target stream */
+ target.stream().write_stream_header(fd_out);
+ mjpeg_info("Output Stream Header:");
+- target.stream().log_info(LOG_INFO, ">>> ");
++ target.stream().log_info(mjpeg_loglev_t("info"), ">>> ");
+
+ /* do some scaling */
+ scaling.create_scalers(source, target);
diff --git a/media-video/y4mscaler/y4mscaler-9.0-r1.ebuild b/media-video/y4mscaler/y4mscaler-9.0-r1.ebuild
new file mode 100644
index 000000000000..821229ead630
--- /dev/null
+++ b/media-video/y4mscaler/y4mscaler-9.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/y4mscaler/y4mscaler-9.0-r1.ebuild,v 1.1 2008/10/31 12:23:20 aballier Exp $
+
+inherit eutils toolchain-funcs
+
+SRC_URI="http://www.mir.com/DMG/Software/${P}-src.tgz"
+DESCRIPTION="A video scaler which operates on YUV4MPEG2 streams, as used by the tools in the MJPEGtools project."
+HOMEPAGE="http://www.mir.com/DMG/Software/"
+LICENSE="GPL-2"
+
+DEPEND=">=media-video/mjpegtools-1.9.0_rc3"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+SLOT="0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-mjpeg-1.9.patch"
+ # There's no 'configure' script (yet)
+ sed -i -e "s:CPU_OPT =:CPU_OPT = ${CXXFLAGS}:" Makefile
+ sed -i -e "s:^LDFLAGS =:LDFLAGS +=:" Makefile
+ tc-export CXX
+}
+
+src_install() {
+ # The program doesn't have an install routine (for now)
+ dobin y4mscaler || die
+ doman y4mscaler.1 || die
+ dodoc ChangeLog README TODO
+}