Overview
vlc-beta.spec
Changed
x
1
2
%bcond_with opengles
3
%endif
4
Name: vlc-beta
5
-Version: 20210905.3f3296b03f
6
+Version: 0
7
Release: 0
8
-Summary: Video Lan Client multimedia player
9
+Summary: Snapshot of vlc.git#master
10
License: GPL-2.0+ and LGPL-2.1+
11
Group: Productivity/Multimedia/Video/Players
12
Url: http://www.videolan.org
13
14
BuildRequires: gcc-c++
15
BuildRequires: flex
16
BuildRequires: bison
17
-BuildRequires: gettext-devel >= 0.19.8
18
+%if 0%{?suse_version} > 1500
19
+BuildRequires: gettext-devel >= 0.21
20
+BuildRequires: gettext-tools
21
+%endif
22
BuildRequires: libtool
23
BuildRequires: pkg-config
24
BuildRequires: pkgconfig(zlib)
25
26
#
27
export VLC_COMPILE_BY='X'
28
export VLC_COMPILE_HOST='X'
29
-export BUILDCC=gcc
30
-export CC=gcc
31
-export CXX=g++
32
-test -x "$(type -p gcc-8)" && export BUILDCC="$_"
33
-test -x "$(type -p gcc-8)" && export CC="$_"
34
-test -x "$(type -p g++-8)" && export CXX="$_"
35
+test -x "$(type -p gcc)" && BUILDCC="$_"
36
+test -x "$(type -p gcc)" && CC="$_"
37
+test -x "$(type -p g++)" && CXX="$_"
38
+test -x "$(type -p gcc-11)" && BUILDCC="$_"
39
+test -x "$(type -p gcc-11)" && CC="$_"
40
+test -x "$(type -p g++-11)" && CXX="$_"
41
+export BUILDCC="$(readlink -f ${BUILDCC})"
42
+export CC="$(readlink -f ${CC})"
43
+export CXX="$(readlink -f ${CXX})"
44
CFLAGS='%{optflags} -Wno-unused-variable -Wno-unused-parameter -Wno-deprecated-declarations -Wno-unused-but-set-variable'
45
CXXFLAGS='%{optflags} -Wno-unused-variable -Wno-unused-parameter -Wno-deprecated-declarations -Wno-unused-but-set-variable'
46
./bootstrap
47
48
--disable-cprof \
49
--disable-coverage \
50
--disable-mod \
51
+ --disable-nls \
52
--disable-opencv \
53
--without-sanitizer \
54
--enable-optimizations \
55
--disable-fdkaac \
56
- --disable-mmx \
57
--disable-sse \
58
--disable-neon \
59
--disable-altivec \
60
%ifarch %ix86 x86_64
61
- --enable-mmx \
62
--enable-sse \
63
%endif
64
%ifarch aarch64
65
66
--disable-medialibrary \
67
--with-kde-solid=%{_datadir}/kde4/apps/solid \
68
--enable-vlc \
69
- --enable-nls
70
+%if 0%{?suse_version} > 1500
71
+ --enable-nls \
72
+%endif
73
+ %nil
74
75
%make_build --no-print-directory
76
77
78
ln -s vlc.1 $i.1
79
popd
80
done
81
+> %{name}.lang
82
+%if 0%{?suse_version} > 1500
83
%find_lang %{name}
84
+%endif
85
ls -l %{buildroot}/%{_libdir}/%{name}/plugins/plugins.dat
86
> %{buildroot}/%{_libdir}/%{name}/plugins/plugins.dat
87
88
vlc.libplacebo.patch
Changed
38
1
2
const struct pl_hook *hook;
3
char *hook_path;
4
+#endif
5
- } vout_display_sys_t;
6
7
- // Display callbacks
8
+ #if PL_API_VER >= 185
9
+ struct pl_dovi_metadata dovi_metadata;
10
@@ -204,8 +206,10 @@ static void Close(vout_display_t *vd)
11
free(sys->lut_path);
12
#endif
13
14
15
vlc_placebo_Release(sys->pl);
16
}
17
-@@ -229,6 +233,8 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
18
+@@ -229,6 +233,10 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
19
20
struct pl_image img = {
21
.num_planes = pic->i_planes,
22
++#if PL_API_VER < 192
23
+ .width = pic->format.i_visible_width,
24
+ .height = pic->format.i_visible_height,
25
++#endif
26
.color = vlc_placebo_ColorSpace(vd->fmt),
27
.repr = vlc_placebo_ColorRepr(vd->fmt),
28
.src_rect = {
29
30
31
@@ -572,8 +580,10 @@ vlc_module_begin ()
32
add_shortcut ("libplacebo", "pl")
33
- add_module ("pl-gpu", "libplacebo gpu", NULL, PROVIDER_TEXT, PROVIDER_LONGTEXT)
34
+ add_module ("pl-gpu", "libplacebo gpu", "any", PROVIDER_TEXT, PROVIDER_LONGTEXT)
35
36
+#if PL_API_VER >= 58
37
set_section("Custom shaders", NULL)
38
Refresh
Refresh
Login required, please
login
or
signup
in order to comment