[mythtv] [patch] linuxppc

Jim Westfall jwestfall at surrealistic.net
Fri Feb 4 05:50:13 UTC 2005


hi

small patch that makes it possible to compile mythtv on linuxppc.

jim
-------------- next part --------------
diff -ur mythtv.orig/filters/linearblend/filter_linearblend.c mythtv/filters/linearblend/filter_linearblend.c
--- mythtv.orig/filters/linearblend/filter_linearblend.c	2005-01-21 11:17:29.000000000 -0800
+++ mythtv/filters/linearblend/filter_linearblend.c	2005-02-02 22:04:32.638058421 -0800
@@ -268,7 +268,11 @@
 
 #ifdef HAVE_ALTIVEC
 
+#ifdef HAVE_ALTIVEC_H
+#include <altivec.h>
+#else
 #include <Accelerate/Accelerate.h>
+#endif
 
 // we fall back to the default routines in some situations
 void linearBlend(unsigned char *src, int stride);
diff -ur mythtv.orig/libs/libmythtv/yuv2rgb.cpp mythtv/libs/libmythtv/yuv2rgb.cpp
--- mythtv.orig/libs/libmythtv/yuv2rgb.cpp	2005-01-21 14:37:04.000000000 -0800
+++ mythtv/libs/libmythtv/yuv2rgb.cpp	2005-02-02 22:05:04.984817691 -0800
@@ -34,8 +34,12 @@
 #define CPU_MMX 1
 #endif
 #ifdef HAVE_ALTIVEC
+#ifdef HAVE_ALTIVEC_H
+#include <altivec.h>
+#else
 #include <Accelerate/Accelerate.h>
 #endif
+#endif
 #include "yuv2rgb.h"
 
 static void yuv420_argb32_non_mmx(unsigned char *image, unsigned char *py,
diff -ur mythtv.orig/settings.pro mythtv/settings.pro
--- mythtv.orig/settings.pro	2005-02-02 20:09:07.000000000 -0800
+++ mythtv/settings.pro	2005-02-02 21:55:17.187104919 -0800
@@ -14,10 +14,12 @@
 DEFINES += PREFIX=\"$${PREFIX}\"
 
 release {
+    contains( TARGET_ARCH_X86, yes) {
         DEFINES += MMX
         QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer
-    macx {
-        DEFINES -= MMX
+    }
+
+    contains( TARGET_ARCH_PPC, yes) {
         # Don't use -O3, it causes some Qt moc methods to go missing '
         QMAKE_CXXFLAGS_RELEASE = -O2
     }


More information about the mythtv-dev mailing list