1 |
commit: a91e0e709de8d4921cdf0b8758fb6730b061e6e4 |
2 |
Author: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 8 10:22:38 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 19:02:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a91e0e70 |
7 |
|
8 |
media-plugins/gst-plugins-libnice: bump to 0.1.19 |
9 |
|
10 |
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail.com> |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
media-plugins/gst-plugins-libnice/Manifest | 1 + |
14 |
...gins-libnice-0.1.19-use-installed-libnice.patch | 59 ++++++++++++++++++++++ |
15 |
.../gst-plugins-libnice-0.1.19.ebuild | 43 ++++++++++++++++ |
16 |
3 files changed, 103 insertions(+) |
17 |
|
18 |
diff --git a/media-plugins/gst-plugins-libnice/Manifest b/media-plugins/gst-plugins-libnice/Manifest |
19 |
index 9de362f71b3d..29fa9063962b 100644 |
20 |
--- a/media-plugins/gst-plugins-libnice/Manifest |
21 |
+++ b/media-plugins/gst-plugins-libnice/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST libnice-0.1.15.tar.gz 1064100 BLAKE2B 81f06ba599b01084586a8d904b9ae513d6bc3531ec42674648fda320eea6cd9348acf423571922bab4e338bf135f85b292046352ed6f5e4fefba736d787b1ff1 SHA512 60a8bcca06c0ab300dfabbf13e45aeac2085d553c420c5cc4d2fdeb46b449b2b9c9aee8015b0662c16bd1cecf5a49824b7e24951a8a0b66a87074cb00a619c0c |
24 |
DIST libnice-0.1.18.tar.gz 439791 BLAKE2B 6bb68bb1484b4a622a580bc9c66b8be260d2615b211cf7991cb50a9f692df525cd0c3c9fc54ef86534426f396f8d2201966cdacfd3f69ff27193971f95886540 SHA512 08bac05874708f7e7a669d28727d8951a10c464b22dd6fada1a4644850bcf5c4cc022cce46bb24c806086a7869b274c4c7d3d6ddaa9ed0ce0bc2c47f72933227 |
25 |
+DIST libnice-0.1.19.tar.gz 453407 BLAKE2B 7bffde82a3e55d9aeeaadd159d944346a5192871e7f574e278dc43e8171e5fde472cd28186777a0b6cddd8bde34e035794b1c6b8f152c7fb4fae5202025bfdac SHA512 1c63cc0b7655186fd6f83da4dd607183d6ccfab9b7ad7189c1bea2ba7413183f24076aba5d6c7231d2ab3fbd471827256729a8a0c0d1bda48803586e68b3778b |
26 |
|
27 |
diff --git a/media-plugins/gst-plugins-libnice/files/gst-plugins-libnice-0.1.19-use-installed-libnice.patch b/media-plugins/gst-plugins-libnice/files/gst-plugins-libnice-0.1.19-use-installed-libnice.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..1b0782e00d6e |
30 |
--- /dev/null |
31 |
+++ b/media-plugins/gst-plugins-libnice/files/gst-plugins-libnice-0.1.19-use-installed-libnice.patch |
32 |
@@ -0,0 +1,59 @@ |
33 |
+Carve out everything but gstreamer plugin part, libnice-0.1.18 |
34 |
+ |
35 |
+Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@×××××.com> |
36 |
+ |
37 |
+diff -udBbr libnice-0.1.18-original/gst/meson.build libnice-0.1.18/gst/meson.build |
38 |
+--- libnice-0.1.18-original/gst/meson.build 2020-10-21 04:03:07.271845300 +0300 |
39 |
++++ libnice-0.1.18/gst/meson.build 2022-03-20 23:38:28.826178730 +0300 |
40 |
+@@ -12,8 +12,7 @@ |
41 |
+ gst_nice_sources, |
42 |
+ c_args : gst_nice_args, |
43 |
+ include_directories: nice_incs, |
44 |
+- dependencies: [nice_deps, gst_dep], |
45 |
+- link_with: libnice, |
46 |
++ dependencies: [libnice_dep, gst_dep], |
47 |
+ install_dir: gst_plugins_install_dir, |
48 |
+ install: true) |
49 |
+ |
50 |
+diff -udBbr libnice-0.1.18-original/meson.build libnice-0.1.18/meson.build |
51 |
+--- libnice-0.1.18-original/meson.build 2020-10-21 04:03:07.272845300 +0300 |
52 |
++++ libnice-0.1.18/meson.build 2022-03-20 23:38:05.116302874 +0300 |
53 |
+@@ -263,9 +263,7 @@ |
54 |
+ |
55 |
+ libm = cc.find_library('m', required: false) |
56 |
+ |
57 |
+-nice_incs = include_directories('.', 'agent', 'random', 'socket', 'stun') |
58 |
+- |
59 |
+-nice_deps = gio_deps + [gthread_dep, crypto_dep, gupnp_igd_dep] + syslibs |
60 |
++nice_incs = include_directories('.') |
61 |
+ |
62 |
+ ignored_iface_prefix = get_option('ignored-network-interface-prefix') |
63 |
+ if ignored_iface_prefix != [] |
64 |
+@@ -278,11 +276,7 @@ |
65 |
+ |
66 |
+ gir = find_program('g-ir-scanner', required : get_option('introspection')) |
67 |
+ |
68 |
+-subdir('agent') |
69 |
+-subdir('stun') |
70 |
+-subdir('socket') |
71 |
+-subdir('random') |
72 |
+-subdir('nice') |
73 |
++libnice_dep = dependency('nice', version: nice_version, required: true) |
74 |
+ |
75 |
+ if gst_dep.found() |
76 |
+ subdir('gst') |
77 |
+@@ -298,14 +292,6 @@ |
78 |
+ endif |
79 |
+ endif |
80 |
+ |
81 |
+-if not get_option('tests').disabled() |
82 |
+- subdir('tests') |
83 |
+-endif |
84 |
+- |
85 |
+-if not get_option('examples').disabled() |
86 |
+- subdir('examples') |
87 |
+-endif |
88 |
+- |
89 |
+ add_test_setup('valgrind', |
90 |
+ exe_wrapper: ['valgrind', |
91 |
+ '--leak-check=full', |
92 |
|
93 |
diff --git a/media-plugins/gst-plugins-libnice/gst-plugins-libnice-0.1.19.ebuild b/media-plugins/gst-plugins-libnice/gst-plugins-libnice-0.1.19.ebuild |
94 |
new file mode 100644 |
95 |
index 000000000000..99b81c3f7797 |
96 |
--- /dev/null |
97 |
+++ b/media-plugins/gst-plugins-libnice/gst-plugins-libnice-0.1.19.ebuild |
98 |
@@ -0,0 +1,43 @@ |
99 |
+# Copyright 1999-2022 Gentoo Authors |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+ |
102 |
+EAPI=7 |
103 |
+inherit meson-multilib |
104 |
+ |
105 |
+DESCRIPTION="GStreamer plugin for ICE (RFC 5245) support" |
106 |
+HOMEPAGE="https://nice.freedesktop.org/wiki/" |
107 |
+MY_P=libnice-${PV} |
108 |
+SRC_URI="https://nice.freedesktop.org/releases/${MY_P}.tar.gz" |
109 |
+ |
110 |
+LICENSE="|| ( MPL-1.1 LGPL-2.1 )" |
111 |
+SLOT="1.0" |
112 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
113 |
+IUSE="" |
114 |
+ |
115 |
+RDEPEND=" |
116 |
+ ~net-libs/libnice-${PV}[${MULTILIB_USEDEP}] |
117 |
+ media-libs/gstreamer:${SLOT}[${MULTILIB_USEDEP}] |
118 |
+ media-libs/gst-plugins-base:${SLOT}[${MULTILIB_USEDEP}] |
119 |
+" |
120 |
+DEPEND="${RDEPEND}" |
121 |
+BDEPEND="virtual/pkgconfig" |
122 |
+ |
123 |
+PATCHES=( |
124 |
+ "${FILESDIR}"/gst-plugins-libnice-${PV}-use-installed-libnice.patch |
125 |
+) |
126 |
+ |
127 |
+S=${WORKDIR}/${MY_P} |
128 |
+ |
129 |
+multilib_src_configure() { |
130 |
+ # gnutls vs openssl left intentionally automagic here - the chosen USE flag configuration of libnice will ensure |
131 |
+ # one of them is present, configure will be happy, but gstreamer bits don't use it, so it doesn't matter. |
132 |
+ # gupnp is not used in the gst plugin. |
133 |
+ local emesonargs=( |
134 |
+ -Dgstreamer=enabled |
135 |
+ -Dcrypto-library=auto |
136 |
+ -Dintrospection=disabled |
137 |
+ -Dgupnp=disabled |
138 |
+ ) |
139 |
+ |
140 |
+ meson_src_configure |
141 |
+} |