diff --git a/vlc-1.0.2-powerpc.patch b/vlc-1.0.2-powerpc.patch new file mode 100644 index 0000000..3516eeb --- /dev/null +++ b/vlc-1.0.2-powerpc.patch @@ -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 + #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; diff --git a/vlc.spec b/vlc.spec index f332bd2..390e3aa 100644 --- a/vlc.spec +++ b/vlc.spec @@ -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