power and arm arch handling improvements

- drop support for building on ppc (32bit)
- explicitly support ppc64p7 and ppc64le
- set correct CPU options on armv7hl
el8
Dominik 'Rathann' Mierzejewski 7 years ago
parent 40af268f4e
commit 1fac6a5673

@ -71,7 +71,7 @@
Summary: Digital VCR and streaming server Summary: Digital VCR and streaming server
Name: ffmpeg%{?flavor} Name: ffmpeg%{?flavor}
Version: 3.4 Version: 3.4
Release: 4%{?date}%{?date:git}%{?rel}%{?dist} Release: 5%{?date}%{?date:git}%{?rel}%{?dist}
License: %{ffmpeg_license} License: %{ffmpeg_license}
URL: http://ffmpeg.org/ URL: http://ffmpeg.org/
%if 0%{?date} %if 0%{?date}
@ -302,36 +302,42 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%if 0%{?_without_tools:1} %if 0%{?_without_tools:1}
--disable-doc \ --disable-doc \
--disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \ --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \
%else %endif
%ifarch %{ix86} %ifarch %{ix86}
--cpu=%{_target_cpu} \ --cpu=%{_target_cpu} \
%endif %endif
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%{!?_without_qsv:--enable-libmfx} \ %{!?_without_qsv:--enable-libmfx} \
%endif %endif
%ifarch %{ix86} x86_64 ppc ppc64 %ifarch %{ix86} x86_64 %{power64}
--enable-runtime-cpudetect \ --enable-runtime-cpudetect \
%endif %endif
%ifarch ppc %ifarch %{power64}
--cpu=g3 \
--enable-pic \
%endif
%ifarch ppc64 %ifarch ppc64
--cpu=g5 \ --cpu=g5 \
%endif
%ifarch ppc64p7
--cpu=power7 \
%endif
%ifarch ppc64le
--cpu=power8 \
%endif
--enable-pic \ --enable-pic \
%endif %endif
%ifarch %{arm} %ifarch %{arm}
--disable-runtime-cpudetect --arch=arm \ --disable-runtime-cpudetect --arch=arm \
%ifarch armv6hl %ifarch armv6hl
--cpu=armv6 \ --cpu=armv6 \
%else %endif
%ifarch armv7hl armv7hnl
--cpu=armv7-a \
--enable-vfpv3 \
--enable-thumb \ --enable-thumb \
%endif %endif
%ifarch armv7hnl %ifarch armv7hnl
--enable-neon \ --enable-neon \
%endif %endif
%endif %endif
%endif
%make_build V=1 %make_build V=1
make documentation V=1 make documentation V=1
@ -392,6 +398,11 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%changelog %changelog
* Wed Oct 25 2017 Dominik Mierzejewski <rpm@greysector.net> - 3.4-5
- drop support for building on ppc (32bit)
- explicitly support ppc64p7 and ppc64le
- set correct CPU options on armv7hl
* Wed Oct 25 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.4-4 * Wed Oct 25 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.4-4
- Switch from yasm to nasm - Switch from yasm to nasm

Loading…
Cancel
Save