summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hildebrand <zypher@gentoo.org>2006-07-17 07:14:37 +0000
committerMarc Hildebrand <zypher@gentoo.org>2006-07-17 07:14:37 +0000
commit12281d65b839f5b436954d1d6c76f7dc1188f7d8 (patch)
treef8abaa0e783eed87935032802548fadb1130f059 /media-libs/mlt
parentBumping mlt and masking snapshot version (diff)
downloadgentoo-2-12281d65b839f5b436954d1d6c76f7dc1188f7d8.tar.gz
gentoo-2-12281d65b839f5b436954d1d6c76f7dc1188f7d8.tar.bz2
gentoo-2-12281d65b839f5b436954d1d6c76f7dc1188f7d8.zip
Version bump. Masking older version.
(Portage version: 2.1.1_pre3-r1)
Diffstat (limited to 'media-libs/mlt')
-rw-r--r--media-libs/mlt/ChangeLog5
-rw-r--r--media-libs/mlt/files/digest-mlt-0.2.23
-rw-r--r--media-libs/mlt/files/mlt-0.2.2-motion-est-amd64.patch172
-rw-r--r--media-libs/mlt/mlt-0.2.2.ebuild77
4 files changed, 256 insertions, 1 deletions
diff --git a/media-libs/mlt/ChangeLog b/media-libs/mlt/ChangeLog
index 35505827ca2e..95f11a6ff18f 100644
--- a/media-libs/mlt/ChangeLog
+++ b/media-libs/mlt/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/mlt
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.5 2006/06/24 23:47:14 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.6 2006/07/17 07:14:37 zypher Exp $
+
+ 17 Jul 2006; Marc Hildebrand <zypher@gentoo.org> mlt-0.2.2.ebuild
+ Version bump. Thanks to Danny (kugelfang@gentoo.org) for the amd64-fix.
24 Jun 2006; Diego Pettenò <flameeyes@gentoo.org> mlt-20051209.ebuild:
Change xml2 useflag to xml.
diff --git a/media-libs/mlt/files/digest-mlt-0.2.2 b/media-libs/mlt/files/digest-mlt-0.2.2
new file mode 100644
index 000000000000..72c87076dd55
--- /dev/null
+++ b/media-libs/mlt/files/digest-mlt-0.2.2
@@ -0,0 +1,3 @@
+MD5 9d4a3d308b1314a117f692766fb15e90 mlt-0.2.2.tar.gz 581746
+RMD160 29ae2f0800f31fd82c6809efbfe5c85b1a72a0c9 mlt-0.2.2.tar.gz 581746
+SHA256 9be0ed8756825b83f0747d6d926172db08fd4406a869ccd4995ed56bf1fe6a22 mlt-0.2.2.tar.gz 581746
diff --git a/media-libs/mlt/files/mlt-0.2.2-motion-est-amd64.patch b/media-libs/mlt/files/mlt-0.2.2-motion-est-amd64.patch
new file mode 100644
index 000000000000..0e81616fceb0
--- /dev/null
+++ b/media-libs/mlt/files/mlt-0.2.2-motion-est-amd64.patch
@@ -0,0 +1,172 @@
+--- src/modules/motion_est/filter_motion_est.c.orig 2006-06-26 00:29:36.000000000 +0200
++++ src/modules/motion_est/filter_motion_est.c 2006-06-26 00:29:51.000000000 +0200
+@@ -160,7 +160,7 @@
+ /** /brief Reference Sum of Absolute Differences comparison function
+ *
+ */
+-inline static int sad_reference( uint8_t *block1, uint8_t *block2, const int xstride, const int ystride, const int w, const int h )
++static int sad_reference( uint8_t *block1, uint8_t *block2, const int xstride, const int ystride, const int w, const int h )
+ {
+ int i, j, score = 0;
+ for ( j = 0; j < h; j++ ){
+--- src/modules/motion_est/sad_sse.h.orig 2006-06-26 00:29:43.000000000 +0200
++++ src/modules/motion_est/sad_sse.h 2006-06-26 00:29:57.000000000 +0200
+@@ -41,7 +41,7 @@
+ SAD_SSE_INIT
+ #define ROW SAD_SSE_SUM_8(0) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -55,7 +55,7 @@
+ SAD_SSE_INIT
+ #define ROW SAD_SSE_SUM_8(0) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -70,7 +70,7 @@
+ #define ROW SAD_SSE_SUM_8(0) SAD_SSE_SUM_8(8) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -89,7 +89,7 @@
+ ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -219,8 +219,8 @@
+ static __attribute__((used)) __attribute__((aligned(8))) uint64_t sad_sse_422_mask_chroma = 0x00ff00ff00ff00ffULL;
+
+ #define SAD_SSE_422_LUMA_INIT \
+- asm volatile ( "movq sad_sse_422_mask_chroma,%%mm7\n\t"\
+- "pxor %%mm6,%%mm6\n\t" :: );\
++ asm volatile ( "movq %0,%%mm7\n\t"\
++ "pxor %%mm6,%%mm6\n\t" :: "m" (sad_sse_422_mask_chroma) );\
+
+ // Sum two 4x1 pixel blocks
+ #define SAD_SSE_422_LUMA_SUM_4(OFFSET) \
+@@ -231,13 +231,13 @@
+ "psadbw %%mm1,%%mm0 \n\t"\
+ "paddw %%mm0,%%mm6 \n\t"\
+
+-inline static int sad_sse_422_luma_4x4( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_4x4( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+ SAD_SSE_422_LUMA_INIT
+ #define ROW SAD_SSE_422_LUMA_SUM_4(0) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -245,13 +245,13 @@
+
+ }
+
+-inline static int sad_sse_422_luma_8x8( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_8x8( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+ SAD_SSE_422_LUMA_INIT
+ #define ROW SAD_SSE_422_LUMA_SUM_4(0) SAD_SSE_422_LUMA_SUM_4(8) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -259,14 +259,14 @@
+
+ }
+
+-inline static int sad_sse_422_luma_16x16( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_16x16( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+ SAD_SSE_422_LUMA_INIT
+ #define ROW SAD_SSE_422_LUMA_SUM_4(0) SAD_SSE_422_LUMA_SUM_4(8) SAD_SSE_422_LUMA_SUM_4(16) SAD_SSE_422_LUMA_SUM_4(24) SAD_SSE_NEXTROW
+ asm volatile ( ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -274,7 +274,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_32x32( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_32x32( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+ SAD_SSE_422_LUMA_INIT
+@@ -286,7 +286,7 @@
+ ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+ ROW ROW ROW ROW ROW ROW ROW ROW
+- :: "r" (block1), "r" (block2), "r" (ystride));
++ :: "r" (block1), "r" (block2), "r" ((long int)(ystride)));
+
+ SAD_SSE_FINISH(result)
+ return result;
+@@ -294,7 +294,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_4w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_4w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+
+@@ -315,7 +315,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_8w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_8w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+
+@@ -338,7 +338,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_16w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_16w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+
+@@ -363,7 +363,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_32w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_32w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+
+@@ -392,7 +392,7 @@
+
+ }
+
+-inline static int sad_sse_422_luma_64w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
++static int sad_sse_422_luma_64w( uint8_t *block1, uint8_t *block2, int xstride, int ystride, int w, int h )
+ {
+ int result;
+
diff --git a/media-libs/mlt/mlt-0.2.2.ebuild b/media-libs/mlt/mlt-0.2.2.ebuild
new file mode 100644
index 000000000000..bed7a8b12c7c
--- /dev/null
+++ b/media-libs/mlt/mlt-0.2.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.2.2.ebuild,v 1.1 2006/07/17 07:14:37 zypher Exp $
+
+inherit eutils
+
+DESCRIPTION="MLT is an open source multimedia framework, designed and developed
+for television broadcasting"
+HOMEPAGE="http://mlt.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mlt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="dv xml jack gtk sdl vorbis sox quicktime mmx lame xine lame ogg \
+ theora doc xine"
+
+DEPEND="media-video/ffmpeg
+ dv? ( >=media-libs/libdv-0.104 )
+ xml? ( >=dev-libs/libxml2-2.5 )
+ ogg? ( >=media-libs/libogg-1.1.3 )
+ vorbis? ( >=media-libs/libvorbis-1.1.2 )
+ sdl? ( >=media-libs/libsdl-1.2.10
+ >=media-libs/sdl-image-1.2.4 )
+ >=media-libs/libsamplerate-0.1.2
+ jack? ( media-sound/jack-audio-connection-kit
+ >=dev-libs/libxml2-2.5 )
+ gtk? ( >=x11-libs/gtk+-2.0
+ x11-libs/pango )
+ sox? ( media-sound/sox )
+ quicktime? ( media-libs/libquicktime )
+ xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
+ lame? ( >=media-sound/lame-3.97_beta2 )
+ theora? ( >=media-libs/libtheora-1.0_alpha5 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ ( use amd64 ) && epatch ${FILESDIR}/mlt-0.2.2-motion-est-amd64.patch
+}
+
+src_compile() {
+
+ local myconf=" --enable-gpl --enable-shared
+ --enable-pp --enable-shared-pp
+ --enable-motion-est
+ $(use_enable dv)
+ $(use_enable dv)
+ $(use_enable mmx)
+ $(use_enable gtk gtk2)
+ $(use_enable vorbis)
+ $(use_enable ogg)
+ $(use_enable sdl)
+ $(use_enable jack jackrack)
+ $(use_enable sox)
+ $(use_enable theora)
+ $(use_enable lame mp3lame)
+ $(use_enable xine)"
+
+ (use quicktime || use dv) || myconf="${myconf} --disable-kino"
+
+ econf $myconf
+ sed -e s/^OPT/#OPT/ -i ${S}/config.mak
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+ use doc && dodoc docs/*.txt
+
+ dodoc ChangeLog COPYING README docs/TODO
+
+ dodir /usr/share/mlt
+ insinto /usr/share/mlt
+ doins -r demo
+}
+