build with system ffmpeg

This commit is contained in:
Tigro 2016-02-09 13:16:15 +03:00
parent c97df2bef0
commit 02ee25f684

View file

@ -9,6 +9,7 @@
%define chromium_system_libs 1
%define clang 0
%define ffmpeg 1
Summary: A fast web browser based on the Blink engine
Name: chromium-browser-stable
@ -53,6 +54,11 @@ Patch503: enable_vaapi_on_linux.diff
# Chromium bug #541273
# fix build with icu other than 54
Patch504: chromium-system-icu-r0.patch
# (cjw) Don't disable deprecated APIs in ffmpeg header files, some of which change the ABI.
# From debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763632
Patch505: fix_for_system_ffmpeg_ABI.patch
# (cjw) Do not use ffmpeg internal header(s)
Patch506: chromium-43-no-ffmpeg-internal.patch
Patch600: unbundle-libvpx_new-fix.patch
Provides: %{crname} = %{EVRD}
@ -75,6 +81,9 @@ BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(expat)
%if 0%{?ffmpeg}
BuildRequires: pkgconfig(libavcodec)
%endif
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gconf-2.0)
@ -223,6 +232,10 @@ rm -rf ppapi/native_client/tests/
rm -rf third_party/apache-win32/
rm -rf third_party/binutils/
rm -rf third_party/expat/files/
%if 0%{?ffmpeg}
rm -rf third_party/ffmpeg/*/*
rm -rf third_party/ffmpeg/*.[ch]
%endif
rm -rf third_party/flac/include
rm -rf third_party/flac/src
rm -rf third_party/lcov
@ -271,6 +284,10 @@ find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete
%patch502 -p1 -b .system-icu
%patch503 -p1 -b .vaapi
%patch504 -p0 -b .icu-ver
%if 0%{?ffmpeg}
%patch505 -p1
%patch506 -p1
%endif
#patch600 -p1
### build with widevine support
@ -291,8 +308,6 @@ touch chrome/test/data/webui_test_resources.grd
buildconfig+="-Dwerror=
-Dlinux_sandbox_chrome_path=%{_libdir}/%{name}/chrome
-Duse_system_ffmpeg=0
-Dbuild_ffmpegsumo=1
-Dproprietary_codecs=1
-Dremove_webcore_debug_symbols=1
-Dlogging_like_official_build=1
@ -300,7 +315,6 @@ buildconfig+="-Dwerror=
-Ddisable_sse2=1
-Dcomponent=shared_library
-Dtoolkit_uses_gtk=0
-Dffmpeg_branding=Chrome
-Ddisable_nacl=1
-Ddisable_glibc=0
-Ddisable_pnacl=1
@ -315,6 +329,14 @@ buildconfig+="-Dwerror=
-Duse_sysroot=0
-Duse_aura=1"
%if 0%{?ffmpeg}
buildconfig+=" -Duse_system_ffmpeg=1"
%else
buildconfig+=" -Duse_system_ffmpeg=0
-Dbuild_ffmpegsumo=1
-Dffmpeg_branding=Chrome"
%endif
%if 0%{?clang}
buildconfig+="-Dclang=1
-Dclang_use_chrome_plugins=0"