]> git.pld-linux.org Git - packages/libx264.git/blobdiff - libx264.spec
- fix building with ffmpeg 3
[packages/libx264.git] / libx264.spec
index f543ae328f94e13abec4a2d4b769d8ba7c8b605e..61b0b93f0501b884cf3728334cd37a1b74ac6ddc 100644 (file)
@@ -1,10 +1,15 @@
 #
 # 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
@@ -18,11 +23,11 @@ Source0:    ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap
 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:
@@ -90,16 +95,20 @@ Dekoder x264 działający z linii poleceń.
 %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
This page took 0.044887 seconds and 4 git commands to generate.