]> git.pld-linux.org Git - packages/libx264.git/blobdiff - libx264.spec
- fix building with ffmpeg 3
[packages/libx264.git] / libx264.spec
index d5be02a67e635b4519a468eb6cb7457cce77ace8..61b0b93f0501b884cf3728334cd37a1b74ac6ddc 100644 (file)
@@ -1,10 +1,15 @@
 #
 # Conditional build:
 %bcond_with    bootstrap       # no ffmpeg/gpac support in x264 utility
-#
-%define                snap    20120302
-%define                snaph   2245
+%bcond_without asm             # disable asm
+
+%ifnarch %{ix86} %{x8664}
+%undefine      with_asm
+%endif
+
 %define                rel     7
+%define                snap    20140824
+%define                snaph   2245
 Summary:       H264 encoder library
 Summary(pl.UTF-8):     Biblioteka kodująca H264
 Name:          libx264
@@ -14,15 +19,15 @@ License:    GPL v2+
 Group:         Libraries
 # still no releases, use snapshots
 Source0:       ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
-# Source0-md5: 0d8c9c3ab208a444de137e2983637f14
+# Source0-md5: d2a779a864254ca426dfb1f3115987a0
 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
@@ -121,7 +130,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS
-%attr(755,root,root) %{_libdir}/libx264.so.120
+%attr(755,root,root) %{_libdir}/libx264.so.142
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.069194 seconds and 4 git commands to generate.