Difference between revisions of "Mythtv"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Install according to http://www.kurobox.com/mwiki/index.php/Debian_on_the_Kurobox using http://www.kurobox.com/mwiki/index.php/Debian_sylver
 
Install according to http://www.kurobox.com/mwiki/index.php/Debian_on_the_Kurobox using http://www.kurobox.com/mwiki/index.php/Debian_sylver
  
 +
Then update your apt sources
 +
<pre>
 
#/etc/apt/sources.list
 
#/etc/apt/sources.list
 
#
 
#
Line 18: Line 20:
 
deb-src http://http.us.debian.org/debian sid main contrib non-free
 
deb-src http://http.us.debian.org/debian sid main contrib non-free
  
 +
#/etc/apt/apt.conf
 +
APT::Default-Release "stable";
 +
 +
apt-get update
 
apt-get build-dep mythtv
 
apt-get build-dep mythtv
 
apt-get source mythtv --download-only
 
apt-get source mythtv --download-only
Line 86: Line 92:
 
         mpeg2_cpu_state_save = state_save_altivec;
 
         mpeg2_cpu_state_save = state_save_altivec;
 
         mpeg2_cpu_state_restore = state_restore_altivec;
 
         mpeg2_cpu_state_restore = state_restore_altivec;
 +
 +
/etc/lighttpd/lighttpd.conf
 +
server.modules += ("mod_rewrite","mod_fastcgi","mod_setenv")
 +
index-file.names += ("mythweb.php")
 +
fastcgi.server    = ( ".php" =>
 +
        ( "localhost" =>
 +
        (
 +
                "bin-path" => "/usr/bin/php4-cgi",
 +
                "socket" => "/tmp/php-fastcgi.socket",
 +
                "max-procs" => 2,
 +
                "idle-timeout" => 20,
 +
                "bin-environment" => (
 +
                        "db_server" => "localhost",
 +
                        "db_name" => "mythconverg",
 +
                        "db_login" => "mythtv",
 +
                        "db_password" => "mythtv"
 +
                ),
 +
                "broken-scriptfilename" => "enable"
 +
        ))
 +
 +
)
 +
url.rewrite-once = (
 +
  "^/mythweb/(tv.*|music.*|video.*|weather.*|settings.*|status.*|backend_log.*)$" => "/mythweb/mythweb.php/$1",
 +
)
 +
 +
</pre>

Revision as of 23:28, 15 January 2007

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

Then update your apt sources

#/etc/apt/sources.list
#
#  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
#
#  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
# 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

#/etc/apt/apt.conf
APT::Default-Release "stable";

apt-get update
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
===================================================================
--- 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;

/etc/lighttpd/lighttpd.conf
server.modules += ("mod_rewrite","mod_fastcgi","mod_setenv")
index-file.names += ("mythweb.php")
fastcgi.server    = ( ".php" =>
        ( "localhost" =>
        (
                "bin-path" => "/usr/bin/php4-cgi",
                "socket" => "/tmp/php-fastcgi.socket",
                "max-procs" => 2,
                "idle-timeout" => 20,
                "bin-environment" => (
                        "db_server" => "localhost",
                        "db_name" => "mythconverg",
                        "db_login" => "mythtv",
                        "db_password" => "mythtv"
                ),
                "broken-scriptfilename" => "enable"
        ))

)
url.rewrite-once = (
   "^/mythweb/(tv.*|music.*|video.*|weather.*|settings.*|status.*|backend_log.*)$" => "/mythweb/mythweb.php/$1",
)