commit 2d1fde0ea9bf48b4e6f051c08c5e2e6d6456d2d8
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Dec 11 12:49:45 2017 +0100
Backport power and arm arch handling improvements for 3.3x
ffmpeg.spec | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 2e87949..8bf2e5b 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -306,31 +306,38 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%if 0%{?_without_tools:1}
--disable-doc \
--disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \
-%else
+%endif
%ifarch %{ix86}
--cpu=%{_target_cpu} \
%endif
%ifarch %{ix86} x86_64
%{!?_without_qsv:--enable-libmfx} \
%endif
-%ifarch %{ix86} x86_64 ppc ppc64
+%ifarch %{ix86} x86_64 %{power64}
--enable-runtime-cpudetect \
%endif
-%ifarch ppc
- --cpu=g3 \
- --enable-pic \
-%endif
+%ifarch %{power64}
%ifarch ppc64
--cpu=g5 \
+%endif
+%ifarch ppc64p7
+ --cpu=power7 \
+%endif
+%ifarch ppc64le
+ --cpu=power8 \
+%endif
--enable-pic \
%endif
%ifarch %{arm}
--disable-runtime-cpudetect --arch=arm \
%ifarch armv6hl
--cpu=armv6 \
-%else
- --enable-thumb \
%endif
+%endif
+%ifarch armv7hl armv7hnl
+ --cpu=armv7-a \
+ --enable-vfpv3 \
+ --enable-thumb \
%ifarch armv7hl
--disable-neon \
%endif
@@ -338,7 +345,6 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
--enable-neon \
%endif
%endif
-%endif
%make_build V=1
make documentation V=1
Show replies by date