Index: xine-lib-1.1.15.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-libs/xine-lib/xine-lib-1.1.15.ebuild,v retrieving revision 1.6 diff -u -b -B -r1.6 xine-lib-1.1.15.ebuild --- xine-lib-1.1.15.ebuild 15 Aug 2008 19:04:34 -0000 1.6 +++ xine-lib-1.1.15.ebuild 15 Aug 2008 19:27:29 -0000 @@ -85,6 +85,12 @@ sys-devel/libtool nls? ( sys-devel/gettext )" +src_unpack() { + unpack ${A} + cd "${S}" + epatch "$FILESDIR"/${P}-libmpeg2-vis.patch +} + src_compile() { #prevent quicktime crashing append-flags -frename-registers -ffunction-sections Index: files/xine-lib-1.1.15-libmpeg2-vis.patch =================================================================== RCS file: files/xine-lib-1.1.15-libmpeg2-vis.patch diff -N files/xine-lib-1.1.15-libmpeg2-vis.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/xine-lib-1.1.15-libmpeg2-vis.patch 15 Aug 2008 19:27:29 -0000 @@ -0,0 +1,13 @@ +src/libmpeg2/motion_comp_vis.c checks for ENABLE_VIS therefore we also need to check for it. + +--- src/libmpeg2/motion_comp.c ++++ src/libmpeg2/motion_comp.c +@@ -68,7 +68,7 @@ + mpeg2_mc = mpeg2_mc_altivec; + } else + #endif +-#ifdef ARCH_SPARC ++#if defined(ARCH_SPARC) && defined(ENABLE_VIS) + if (mm_accel & MM_ACCEL_SPARC_VIS) { + #ifdef LOG + fprintf (stderr, "Using VIS for motion compensation\n");