#
# Conditional build:
%bcond_with bootstrap # no ffmpeg/gpac support in x264 utility
-#
+%bcond_without asm # disable asm
+
+%ifnarch %{ix86} %{x8664}
+%undefine with_asm
+%endif
+
+%define rel 7
%define snap 20140824
%define snaph 2245
-%define rel 2
Summary: H264 encoder library
Summary(pl.UTF-8): Biblioteka kodująca H264
Name: libx264
Patch0: %{name}-alpha.patch
Patch1: altivec-no-vand.patch
Patch2: %{name}-gpac.patch
+Patch3: x32.patch
+Patch4: ffmpeg3.patch
URL: http://www.videolan.org/developers/x264.html
BuildRequires: pkgconfig
-%ifarch %{ix86} %{x8664}
-BuildRequires: yasm >= 0.6.0
-%endif
+%{?with_asm:BuildRequires: yasm >= 1.2.0}
%if %{without bootstrap}
# which version exactly???
# for full x264 CLI utility functionality it wants:
%patch1 -p1
%endif
%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%build
CC="%{__cc}" \
./configure \
+ --host=%{_target_platform} \
--prefix=%{_prefix} \
--exec-prefix=%{_prefix} \
--bindir=%{_bindir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--extra-cflags="%{rpmcflags}" \
+ %{!?with_asm:--disable-asm} \
--enable-pic \
--enable-shared \
--enable-static