Overview

Request 3754 (accepted)

No description set
Submit package home:awis...es:Extra / chromium-...eg-extra to package Extra / chromium-ffmpeg-extra

chromium-ffmpeg-extra.changes Added
x
 
1
@@ -0,0 +1,5 @@
2
+-------------------------------------------------------------------
3
+Wed Mar 29 14:01:10 UTC 2017 - avvissu@yandex.by
4
+
5
+- Initial release
6
+
7
chromium-ffmpeg-extra.spec Added
105
 
1
@@ -0,0 +1,103 @@
2
+#
3
+# spec file for package chromium-ffmpeg-extra
4
+#
5
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
6
+#
7
+# All modifications and additions to the file contributed by third parties
8
+# remain the property of their copyright owners, unless otherwise agreed
9
+# upon. The license for this file, and modifications and additions to the
10
+# file, is the same license as for the pristine package itself (unless the
11
+# license for the pristine package is not an Open Source License, in which
12
+# case the license is the MIT License). An "Open Source License" is a
13
+# license that conforms to the Open Source Definition (Version 1.9)
14
+# published by the Open Source Initiative.
15
+
16
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
17
+#
18
+
19
+
20
+%define srcname chromium
21
+Name:           chromium-ffmpeg-extra
22
+Version:        57.0.2987.110
23
+Release:        0
24
+Summary:        Extra ffmpeg codecs for browsers based on Chromium
25
+License:        BSD-3-Clause and LGPL-2.1+
26
+Group:          Productivity/Networking/Web/Browsers
27
+Url:            http://code.google.com/p/chromium/
28
+Source0:        http://commondatastorage.googleapis.com/chromium-browser-official/%{srcname}-%{version}.tar.xz
29
+Source1:        BUILD.gn
30
+Patch0:         chromium-last-commit-position-r0.patch
31
+Patch1:         chromium-fix-build-with-gcc4.8.patch
32
+BuildRequires:  gcc
33
+BuildRequires:  gcc-c++
34
+BuildRequires:  ninja
35
+BuildRequires:  pkgconfig
36
+BuildRequires:  pkgconfig(gtk+-2.0)
37
+BuildRequires:  pkgconfig(gtk+-3.0)
38
+BuildRequires:  pkgconfig(libexif)
39
+BuildRequires:  pkgconfig(libffi)
40
+BuildRequires:  pkgconfig(libpci)
41
+BuildRequires:  pkgconfig(libpulse)
42
+BuildRequires:  pkgconfig(nss)
43
+BuildRequires:  pkgconfig(python)
44
+BuildRequires:  pkgconfig(xscrnsaver)
45
+BuildRequires:  pkgconfig(xtst)
46
+ExclusiveArch: %{ix86} x86_64
47
+
48
+%description
49
+This package contains proprietary codecs needed for the HTML5
50
+(audio and video tags).
51
+
52
+%prep
53
+%setup -q -n %{srcname}-%{version}
54
+%patch0 -p1
55
+%patch1 -p1
56
+
57
+mkdir toolchain
58
+cp %{SOURCE1} toolchain/BUILD.gn
59
+
60
+if [ ! -f chrome/test/data/webui/i18n_process_css_test.html ]; then
61
+    touch chrome/test/data/webui/i18n_process_css_test.html
62
+fi
63
+
64
+%build
65
+export CC=gcc
66
+export CXX=g++
67
+CFLAGS="%{optflags}"
68
+export CFLAGS="${CFLAGS/-g /}"
69
+export CXXFLAGS="${CFLAGS}"
70
+
71
+myconf_gn=""
72
+myconf_gn+=" ffmpeg_branding=\"Chrome\""
73
+myconf_gn+=" proprietary_codecs=true"
74
+myconf_gn+=" enable_hevc_demuxing=true"
75
+myconf_gn+=" use_gconf=false"
76
+myconf_gn+=" use_gio=false"
77
+myconf_gn+=" use_gnome_keyring=false"
78
+myconf_gn+=" use_kerberos=false"
79
+myconf_gn+=" use_cups=false"
80
+myconf_gn+=" use_sysroot=false"
81
+myconf_gn+=" use_gold=false"
82
+myconf_gn+=" linux_use_bundled_binutils=false"
83
+myconf_gn+=" fatal_linker_warnings=false"
84
+myconf_gn+=" treat_warnings_as_errors=false"
85
+myconf_gn+=" is_clang=false"
86
+myconf_gn+=" is_component_build=true"
87
+myconf_gn+=" is_debug=false"
88
+myconf_gn+=" symbol_level=0"
89
+
90
+
91
+tools/gn/bootstrap/bootstrap.py -v --gn-gen-args "${myconf_gn}"
92
+out/Release/gn gen -v --args="${myconf_gn}" out/Release
93
+ninja -C out/Release -v media/ffmpeg
94
+
95
+%install
96
+install -Dm0644 out/Release/libffmpeg.so %{buildroot}%{_libdir}/%{name}/libffmpeg.so
97
+
98
+%files
99
+%defattr(-,root,root)
100
+%doc AUTHORS LICENSE
101
+%dir %{_libdir}/%{name}
102
+%{_libdir}/%{name}/libffmpeg.so
103
+
104
+%changelog
105
chromium-fix-build-with-gcc4.8.patch Added
15
 
1
@@ -0,0 +1,13 @@
2
+diff -ruN chromium-57.0.2987.110.orig/third_party/ffmpeg/libavutil/cpu.c chromium-57.0.2987.110/third_party/ffmpeg/libavutil/cpu.c
3
+--- chromium-57.0.2987.110.orig/third_party/ffmpeg/libavutil/cpu.c 2017-03-30 00:50:51.974729384 +0300
4
++++ chromium-57.0.2987.110/third_party/ffmpeg/libavutil/cpu.c  2017-03-30 00:46:22.000000000 +0300
5
+@@ -20,6 +20,9 @@
6
+ // Chromium: Windows doesn't provide stdatomic.h, so use the compat version.
7
+ #if defined(_MSC_VER)
8
+ #include <compat/atomics/win32/stdatomic.h>
9
++#endif
10
++#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8
11
++#include <compat/atomics/gcc/stdatomic.h>
12
+ #else
13
+ #include <stdatomic.h>
14
+ #endif
15
chromium-last-commit-position-r0.patch Added
29
 
1
@@ -0,0 +1,27 @@
2
+--- a/tools/gn/gn_main.cc  2015-11-12 11:49:56.260549036 +0000
3
++++ b/tools/gn/gn_main.cc  2015-11-12 11:50:14.780931485 +0000
4
+@@ -12,13 +12,7 @@
5
+ #include "tools/gn/standard_out.h"
6
+ #include "tools/gn/switches.h"
7
+ 
8
+-// Only the GN-generated build makes this header for now.
9
+-// TODO(brettw) consider adding this if we need it in GYP.
10
+-#if defined(GN_BUILD)
11
+-#include "tools/gn/last_commit_position.h"
12
+-#else
13
+ #define LAST_COMMIT_POSITION "UNKNOWN"
14
+-#endif
15
+ 
16
+ namespace {
17
+ 
18
+--- a/tools/gn/BUILD.gn    2015-11-12 11:50:43.513524769 +0000
19
++++ b/tools/gn/BUILD.gn    2015-11-12 11:50:57.697817632 +0000
20
+@@ -263,7 +263,6 @@
21
+ 
22
+   deps = [
23
+     ":gn_lib",
24
+-    ":last_commit_position",
25
+     "//base",
26
+     "//build/config/sanitizers:deps",
27
+     "//build/win:default_exe_manifest",
28
+
29
BUILD.gn Added
21
 
1
@@ -0,0 +1,19 @@
2
+import("//build/toolchain/gcc_toolchain.gni")
3
+
4
+gcc_toolchain("default") {
5
+  cc = getenv("CC")
6
+  cxx = getenv("CXX")
7
+  ar = "ar"
8
+  nm = "nm"
9
+  ld = cxx
10
+
11
+  extra_cflags = getenv("CFLAGS")
12
+  extra_cppflags = getenv("CPPFLAGS")
13
+  extra_cxxflags = getenv("CXXFLAGS")
14
+  extra_ldflags = getenv("LDFLAGS")
15
+
16
+  toolchain_args = {
17
+    current_cpu = current_cpu
18
+    current_os = current_os
19
+  }
20
+}
21
chromium-57.0.2987.110.tar.xz Added
Refresh
Refresh
Request History
Aliaksei Padvalski's avatar

awissu created request about 8 years ago


Olaf Hering's avatar

olh accepted request about 8 years ago