Re: Thought for Tasties CD


Subject: Re: Thought for Tasties CD
From: Bill Fink (billfink@capu.net)
Date: Sat Apr 21 2001 - 10:34:36 MDT


> On Fri, 20 Apr 2001, Bill Fink wrote:
>
> > On Fri Apr 20 2001, Jason McIntosh wrote:
> >
> > Does it happen to have the css decoding libraries?
>
> No, it doesn't include the css decoding libraries, but I think you
> should be able to use the Livid libcss plugin with it, although I
> haven't tested that. Check out the xine HOWTO linked off the xine
> homepage at:
>
> http://xine.sourceforge.net/

Here's a patch to the captain_css plugin (not the Livid libcss plugin)
that allows it to be built and run properly on a PPC system. Once again,
for more details, check out the xine HOWTO linked off the xine homepage
at:

        http://xine.sourceforge.net/

                                                -Bill

xine_dvd_static-0.1.2-ppc.patch:
------------------------------------------------------------------------
diff -ur xine_dvd_static-0.1.2/bswap.h xine_dvd_static-0.1.2.ppc/bswap.h
--- xine_dvd_static-0.1.2/bswap.h Wed Dec 27 19:08:15 2000
+++ xine_dvd_static-0.1.2.ppc/bswap.h Sat Apr 21 10:54:11 2001
@@ -5,8 +5,28 @@
 #include "config.h"
 #endif
 
+#include <endian.h>
+
+#if BYTE_ORDER == BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+
 /* #include "byteswap.h" */
 
+#define HAVE_BYTESWAP_H
+
+#ifdef HAVE_BYTESWAP_H
+#include <byteswap.h>
+#else
+
+#include <inttypes.h>
+
+#ifdef WORDS_BIGENDIAN
+#define bswap_16(x) (x)
+#define bswap_32(x) (x)
+#define bswap_64(x) (x)
+#else
+
 /* code taken from gnu c library */
 
 /* Swap bytes in 16 bit value. */
@@ -91,6 +111,10 @@
 #if defined __GNUC__ && __GNUC__ >= 2
 /* Return a value with all bytes in the 64 bit argument swapped. */
 # define bswap_64(x) __bswap_64 (x)
+#endif
+
+#endif
+
 #endif
 
 
diff -ur xine_dvd_static-0.1.2/configure xine_dvd_static-0.1.2.ppc/configure
--- xine_dvd_static-0.1.2/configure Wed Feb 7 08:08:25 2001
+++ xine_dvd_static-0.1.2.ppc/configure Sat Apr 21 11:37:36 2001
@@ -2389,6 +2389,19 @@
 COMMON_CFLAGS="-Wall -O3 -static -funroll-loops -finline-functions -funroll-all-loops -D_FILE_OFFSET_BITS=64"
 
 case $host in
+ powerpc-*-linux* | ppc-*-linux*)
+ GLOBAL_CFLAGS="$GLOBAL_CFLAGS $CFLAGS $COMMON_CFLAGS $NDEBUG_CFLAGS $ALSA_CFLAGS -D_REENTRANT"
+ DEBUG_CFLAGS="$DEBUG_CFLAGS $CFLAGS $COMMON_CFLAGS $ALSA_CFLAGS -D_REENTRANT"
+ cat >> confdefs.h <<\EOF
+#define __powerpc__ 1
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define ARCH_POWERPC
+EOF
+
+ ;;
+
   i386-*-freebsd*)
     GLOBAL_CFLAGS="$GLOBAL_CFLAGS $CFLAGS $COMMON_CFLAGS $NDEBUG_CFLAGS $ALSA_CFLAGS -D_REENTRANT"
     DEBUG_CFLAGS="$DEBUG_CFLAGS $CFLAGS $COMMON_CFLAGS $ALSA_CFLAGS -D_REENTRANT"



This archive was generated by hypermail 2a24 : Sat Apr 21 2001 - 10:36:41 MDT