Nicolas Chauvet 15 years ago
parent a4da62fddd
commit bd55f7a333

@ -0,0 +1,24 @@
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index ac42227..ffe7716 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
-44,8 +44,8 @@
#include <sys/sysctl.h>
#endif
-#if defined( __i386__ ) || defined( __x86_64__ ) \
- || defined( __ppc__ ) || defined( __ppc64__ )
+#if defined( __i386__ ) || defined( __x86_64__ ) || defined( __powerpc__ ) \
+ || defined( __ppc__ ) || defined( __ppc64__ ) || defined( __powerpc64__ )
static bool check_OS_capability( const char *psz_capability, pid_t pid )
{
#ifndef WIN32
-233,7 +233,8 @@ out:
i_capabilities |= CPU_CAPABILITY_NEON;
# endif
-#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
+#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __powerpc64__ ) \
+ || defined( __ppc64__ )
i_capabilities |= CPU_CAPABILITY_FPU;

@ -22,6 +22,7 @@ Patch1: 0001-Default-libv4l2-to-true.patch
Patch2: 0002-Default-aout-for-pulse.patch
Patch3: 300_all_pic.patch
Patch4: 310_all_mmx_pic.patch
Patch5: vlc-1.0.2-powerpc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
@ -238,6 +239,7 @@ VLC plugin for libdc1394
%patch3 -p1 -b .dmo_pic
sed -i.dmo_pic -e 's/fno-PIC/fPIC/' libs/loader/Makefile.in
%patch4 -p1 -b .mmx_pic
%patch4 -p1 -b .ppc
rm modules/access/videodev2.h

Loading…
Cancel
Save