rpms/mplayer/F-9 mplayer-ppc-compile.patch, NONE, 1.1 mplayer.spec, 1.8, 1.9

Dominik Mierzejewski rathann at rpmfusion.org
Fri Feb 13 20:43:14 CET 2009


Author: rathann

Update of /cvs/free/rpms/mplayer/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv28208

Modified Files:
	mplayer.spec 
Added Files:
	mplayer-ppc-compile.patch 
Log Message:
- fixed build on ppc

mplayer-ppc-compile.patch:

--- NEW FILE mplayer-ppc-compile.patch ---
diff -up mplayer-export-2009-02-04/libswscale/swscale.c.ppc-compile mplayer-export-2009-02-04/libswscale/swscale.c
--- mplayer-export-2009-02-04/libswscale/swscale.c.ppc-compile	2009-01-25 20:58:33.000000000 +0100
+++ mplayer-export-2009-02-04/libswscale/swscale.c	2009-02-13 15:00:57.000000000 +0100
@@ -955,13 +955,12 @@ static inline void yuv2rgbXinC_full(SwsC
 
 //Note: we have C, X86, MMX, MMX2, 3DNOW versions, there is no 3DNOW+MMX2 one
 //Plain C versions
-#if !HAVE_MMX || defined (RUNTIME_CPUDETECT) || !CONFIG_GPL
+#if !HAVE_MMX || !HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT) || !CONFIG_GPL
 #define COMPILE_C
 #endif
 
 #if ARCH_PPC
 #if (HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)) && CONFIG_GPL
-#undef COMPILE_C
 #define COMPILE_ALTIVEC
 #endif
 #endif //ARCH_PPC


Index: mplayer.spec
===================================================================
RCS file: /cvs/free/rpms/mplayer/F-9/mplayer.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- mplayer.spec	12 Feb 2009 00:01:14 -0000	1.8
+++ mplayer.spec	13 Feb 2009 19:43:14 -0000	1.9
@@ -20,6 +20,7 @@
 %endif
 Source1:        http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
 Source10:       mplayer-snapshot.sh
+Patch1:         %{name}-ppc-compile.patch
 Patch2:         %{name}-config.patch
 Patch5:         %{name}-x86_32-compile.patch
 Patch8:         %{name}-manlinks.patch
@@ -192,6 +193,7 @@
 %else
 %setup -q -n MPlayer-%{version}%{pre}
 %endif
+%patch1 -p1 -b .ppc-compile
 %patch2 -p1 -b .config
 %patch5 -p1 -b .compile
 %patch8 -p1 -b .manlinks
@@ -348,6 +350,7 @@
 - dropped .sh extension from shell scripts in %%{_bindir}
 - BR: yasm for more asm optimizations
 - dropped redundant altivec CFLAGS on ppc
+- fixed build on ppc
 
 * Sun Nov 23 2008 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.99.20080903svn
 - fix broken terminal after using dvb input (bug #117)



More information about the rpmfusion-commits mailing list