Mythtv

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 22:51, 15 January 2007 by Epheatt (Talk)

Jump to: navigation, search

Install according to http://www.kurobox.com/mwiki/index.php/Debian_on_the_Kurobox using http://www.kurobox.com/mwiki/index.php/Debian_sylver

  1. /etc/apt/sources.list
  2. Debian Main

deb http://ftp.debian.org/debian sarge main contrib non-free deb-src http://ftp.debian.org/debian sarge main contrib non-free

  1. Debian Security Updates

deb http://security.debian.org/ sarge/updates main contrib non-free deb-src http://security.debian.org/ sarge/updates main contrib non-free

  1. Christian Marillat's packages (MythTV, mplayer, lame)

deb http://www.debian-multimedia.org sid main deb-src http://www.debian-multimedia.org sid main deb http://http.us.debian.org/debian sid main contrib non-free deb-src http://http.us.debian.org/debian sid main contrib non-free

apt-get build-dep mythtv apt-get source mythtv --download-only dpkg-source -x mythtv_0.20-svn20061209-0.3.dsc cd mythtv-0.20-svn20061209 echo --disable-altivec > config.opts

KuroHG-DisableAltivec.patch Index: libs/libmythmpeg2/cpu_accel.c

Contents

=======================================================

--- libs/libmythmpeg2/cpu_accel.c (revision 12297) +++ libs/libmythmpeg2/cpu_accel.c (working copy) @@ -149,7 +149,7 @@

#ifdef ARCH_PPC
static uint32_t arch_accel (uint32_t accel)
{

-#ifdef ACCEL_DETECT +#if defined(ACCEL_DETECT) && defined(HAVE_ALTIVEC)

    if ((accel & (MPEG2_ACCEL_PPC_ALTIVEC | MPEG2_ACCEL_DETECT)) ==
       MPEG2_ACCEL_DETECT) {
       static RETSIGTYPE (* oldsig) (int);

Index: libs/libmythmpeg2/motion_comp.c

=======================================================

--- libs/libmythmpeg2/motion_comp.c (revision 12297) +++ libs/libmythmpeg2/motion_comp.c (working copy) @@ -44,7 +44,7 @@

    else
#endif /* MMX */
#endif

-#ifdef ARCH_PPC +#ifdef HAVE_ALTIVEC

    if (accel & MPEG2_ACCEL_PPC_ALTIVEC)
       mpeg2_mc = mpeg2_mc_altivec;
    else

Index: libs/libmythmpeg2/idct.c

=======================================================

--- libs/libmythmpeg2/idct.c (revision 12297) +++ libs/libmythmpeg2/idct.c (working copy) @@ -248,7 +248,7 @@

    } else
#endif
#endif

-#ifdef ARCH_PPC +#ifdef HAVE_ALTIVEC

    if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
       mpeg2_idct_copy = mpeg2_idct_copy_altivec;
       mpeg2_idct_add = mpeg2_idct_add_altivec;

Index: libs/libmythmpeg2/cpu_state.c

=======================================================

--- libs/libmythmpeg2/cpu_state.c (revision 12297) +++ libs/libmythmpeg2/cpu_state.c (working copy) @@ -43,7 +43,7 @@

}
#endif

-#ifdef ARCH_PPC +#ifdef HAVE_ALTIVEC

#if defined(HAVE_ALTIVEC_H) && !defined(CONFIG_DARWIN) /* gnu */
#define LI(a,b) "li " #a "," #b "\n\t"
#define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t"

@@ -120,7 +120,7 @@

       mpeg2_cpu_state_restore = state_restore_mmx;
    }
#endif

-#ifdef ARCH_PPC +#ifdef HAVE_ALTIVEC

    if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
       mpeg2_cpu_state_save = state_save_altivec;
       mpeg2_cpu_state_restore = state_restore_altivec;