1 |
commit: 5788e578c90e7ce72cdbacc851eb7d7c3ef42bb4 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 12:46:13 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 12:47:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5788e578 |
7 |
|
8 |
media-video/pipewire: bump to v0.3.30 |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
media-video/pipewire/Manifest | 1 + |
14 |
media-video/pipewire/pipewire-0.3.30.ebuild | 271 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 272 insertions(+) |
16 |
|
17 |
diff --git a/media-video/pipewire/Manifest b/media-video/pipewire/Manifest |
18 |
index 94d25adbc07..0811bf42388 100644 |
19 |
--- a/media-video/pipewire/Manifest |
20 |
+++ b/media-video/pipewire/Manifest |
21 |
@@ -4,3 +4,4 @@ DIST pipewire-0.3.26.tar.gz 1447673 BLAKE2B 67feb1288fcdc9ac5578b97ab2567b46a743 |
22 |
DIST pipewire-0.3.27.tar.gz 1459913 BLAKE2B b6db73de85c41932b630e62b3dcc589529ae5457cae6731a8ec5db50f20b541e7e9596976a368c4bb654b1443071c53f8fe4a9ddfc1ee8a0ecc04d69b683456a SHA512 a2df1df8e43846b91fbeedeb1cda9c73b970ac9de58d8b4e97ada54ee74a8f26a168504289c7392c94cc7ea54aa01ada4791c66a5d3159a2bc980df633f6bcfe |
23 |
DIST pipewire-0.3.28.tar.gz 1474219 BLAKE2B d20b39c8ed49cd44f2109aab6453aac547ff66dc2ef4a52fb71fea27eb07920efc58498e5ddd82e9f6d86981185e37313748d9157c9a09a3ae1e8ae48d5d45d6 SHA512 f2ed23609c6a45fb80f54caabaa304ba4f318c905a28350c89c65f179a95cc2022f1acbb0c2ec558baf4dc6bcc5623b8daa6678d52cdb9179a88c67b6c1fe0ff |
24 |
DIST pipewire-0.3.29.tar.gz 1504935 BLAKE2B fe3984ec4b02fe91683d382e3891e174748b52c5e2f609dc838837f1ac0fea736e06395a022b8ec152fe015cca24c54d4c1896acde3a2ac66eb700dc2336fe4f SHA512 bc163ad3e2d7696295fd3720e8f9cc4d478a55c0694c0faa03a40333e3b65fcbff27e4e296eb9dd0191ca2782e04934915c46e04a2444b458491cd2905823ddd |
25 |
+DIST pipewire-0.3.30.tar.gz 1540950 BLAKE2B 69b35743e3ad9a8caf68d9bb16cf395203efed6c3046b3f4ea33bbcdd6649f5d425d813042c12396a7cd5ff4e8ed91dbc395a96fe55935ad50f9c3f3918b0407 SHA512 ec525e0fb7e5c5313245fcc745b971fd7d4a1caa7ab9fe1fa38dc20d50f03e5969197e86b60659971676bec0f79aa7b7951c8209bfe9565a3fd1dcac1b8535b3 |
26 |
|
27 |
diff --git a/media-video/pipewire/pipewire-0.3.30.ebuild b/media-video/pipewire/pipewire-0.3.30.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..ed54b0ec601 |
30 |
--- /dev/null |
31 |
+++ b/media-video/pipewire/pipewire-0.3.30.ebuild |
32 |
@@ -0,0 +1,271 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+inherit meson-multilib optfeature udev |
39 |
+ |
40 |
+if [[ ${PV} == 9999 ]]; then |
41 |
+ EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Multimedia processing graphs" |
49 |
+HOMEPAGE="https://pipewire.org/" |
50 |
+ |
51 |
+LICENSE="MIT LGPL-2.1+ GPL-2" |
52 |
+SLOT="0/0.3" |
53 |
+IUSE="aac aptx bluetooth doc extra gstreamer jack-client jack-sdk ldac pipewire-alsa systemd test v4l" |
54 |
+ |
55 |
+# Once replacing system JACK libraries is possible, it's likely that |
56 |
+# jack-client IUSE will need blocking to avoid users accidentally |
57 |
+# configuring their systems to send PW sink output to the emulated |
58 |
+# JACK's sink - doing so is likely to yield no audio, cause a CPU |
59 |
+# cycles consuming loop (and may even cause GUI crashes)! |
60 |
+ |
61 |
+REQUIRED_USE=" |
62 |
+ aac? ( bluetooth ) |
63 |
+ aptx? ( bluetooth ) |
64 |
+ jack-sdk? ( !jack-client ) |
65 |
+ ldac? ( bluetooth ) |
66 |
+" |
67 |
+ |
68 |
+RESTRICT="!test? ( test )" |
69 |
+ |
70 |
+BDEPEND=" |
71 |
+ app-doc/xmltoman |
72 |
+ virtual/pkgconfig |
73 |
+ doc? ( |
74 |
+ app-doc/doxygen |
75 |
+ media-gfx/graphviz |
76 |
+ ) |
77 |
+" |
78 |
+RDEPEND=" |
79 |
+ acct-group/audio |
80 |
+ media-libs/alsa-lib |
81 |
+ sys-apps/dbus[${MULTILIB_USEDEP}] |
82 |
+ sys-libs/ncurses[unicode] |
83 |
+ virtual/libintl[${MULTILIB_USEDEP}] |
84 |
+ virtual/libudev[${MULTILIB_USEDEP}] |
85 |
+ bluetooth? ( |
86 |
+ aac? ( media-libs/fdk-aac ) |
87 |
+ aptx? ( media-libs/libopenaptx ) |
88 |
+ ldac? ( media-libs/libldac ) |
89 |
+ media-libs/sbc |
90 |
+ >=net-wireless/bluez-4.101:= |
91 |
+ ) |
92 |
+ extra? ( |
93 |
+ >=media-libs/libsndfile-1.0.20 |
94 |
+ ) |
95 |
+ gstreamer? ( |
96 |
+ >=dev-libs/glib-2.32.0:2 |
97 |
+ >=media-libs/gstreamer-1.10.0:1.0 |
98 |
+ media-libs/gst-plugins-base:1.0 |
99 |
+ ) |
100 |
+ jack-client? ( >=media-sound/jack2-1.9.10:2[dbus] ) |
101 |
+ jack-sdk? ( |
102 |
+ !media-sound/jack-audio-connection-kit |
103 |
+ !media-sound/jack2 |
104 |
+ ) |
105 |
+ pipewire-alsa? ( |
106 |
+ >=media-libs/alsa-lib-1.1.7[${MULTILIB_USEDEP}] |
107 |
+ || ( |
108 |
+ media-plugins/alsa-plugins[-pulseaudio] |
109 |
+ !media-plugins/alsa-plugins |
110 |
+ ) |
111 |
+ ) |
112 |
+ !pipewire-alsa? ( media-plugins/alsa-plugins[${MULTILIB_USEDEP},pulseaudio] ) |
113 |
+ systemd? ( sys-apps/systemd ) |
114 |
+ v4l? ( media-libs/libv4l ) |
115 |
+" |
116 |
+ |
117 |
+DEPEND="${RDEPEND}" |
118 |
+ |
119 |
+# Present RDEPEND that are currently always disabled due to the PW |
120 |
+# code using them being required to be disabled by Gentoo guidelines |
121 |
+# (i.e. developer binaries not meant for users) and unready code |
122 |
+# media-video/ffmpeg:= |
123 |
+# media-libs/libsdl2 |
124 |
+# >=media-libs/vulkan-loader-1.1.69 |
125 |
+# |
126 |
+# Ditto for DEPEND |
127 |
+# >=dev-util/vulkan-headers-1.1.69 |
128 |
+ |
129 |
+DOCS=( {README,INSTALL}.md NEWS ) |
130 |
+ |
131 |
+PATCHES=( |
132 |
+ "${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch |
133 |
+ "${FILESDIR}"/${PN}-0.3.29-revert-openaptx-restriction.patch |
134 |
+) |
135 |
+ |
136 |
+# limitsdfile related code taken from =sys-auth/realtime-base-0.1 |
137 |
+# with changes as necessary. |
138 |
+limitsdfile=40-${PN}.conf |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ default |
142 |
+ |
143 |
+ if ! use systemd; then |
144 |
+ # This can be applied non-conditionally but would make for a |
145 |
+ # significantly worse user experience on systemd then. |
146 |
+ eapply "${FILESDIR}"/${PN}-0.3.25-non-systemd-integration.patch |
147 |
+ fi |
148 |
+ |
149 |
+ einfo "Generating ${limitsdfile}" |
150 |
+ cat > ${limitsdfile} <<- EOF || die |
151 |
+ # Start of ${limitsdfile} from ${P} |
152 |
+ |
153 |
+ @audio - memlock 256 |
154 |
+ |
155 |
+ # End of ${limitsdfile} from ${P} |
156 |
+ EOF |
157 |
+} |
158 |
+ |
159 |
+multilib_src_configure() { |
160 |
+ local emesonargs=( |
161 |
+ -Ddocdir="${EPREFIX}"/usr/share/doc/${PF} |
162 |
+ $(meson_native_use_feature doc docs) |
163 |
+ $(meson_native_enabled examples) # Disabling this implicitly disables -Dmedia-session |
164 |
+ $(meson_native_enabled media-session) |
165 |
+ $(meson_native_enabled man) |
166 |
+ $(meson_feature test tests) |
167 |
+ -Dinstalled_tests=disabled # Matches upstream; Gentoo never installs tests |
168 |
+ $(meson_native_use_feature gstreamer) |
169 |
+ $(meson_native_use_feature gstreamer gstreamer-device-provider) |
170 |
+ $(meson_native_use_feature systemd) |
171 |
+ -Dsystemd-system-service=disabled # Matches upstream |
172 |
+ $(meson_native_use_feature systemd systemd-user-service) |
173 |
+ $(meson_feature pipewire-alsa) # Allows integrating ALSA apps into PW graph |
174 |
+ -Dspa-plugins=enabled |
175 |
+ -Dalsa=enabled # Allows using kernel ALSA for sound I/O (-Dmedia-session depends on this) |
176 |
+ -Daudiomixer=enabled # Matches upstream |
177 |
+ -Daudioconvert=enabled # Matches upstream |
178 |
+ $(meson_native_use_feature bluetooth bluez5) |
179 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hsp-native) |
180 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hfp-native) |
181 |
+ $(meson_native_use_feature bluetooth bluez5-backend-ofono) |
182 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hsphfpd) |
183 |
+ $(meson_native_use_feature aac bluez5-codec-aac) |
184 |
+ $(meson_native_use_feature aptx bluez5-codec-aptx) |
185 |
+ $(meson_native_use_feature ldac bluez5-codec-ldac) |
186 |
+ -Dcontrol=enabled # Matches upstream |
187 |
+ -Daudiotestsrc=enabled # Matches upstream |
188 |
+ -Dffmpeg=disabled # Disabled by upstream and no major developments to spa/plugins/ffmpeg/ since May 2020 |
189 |
+ -Dpipewire-jack=enabled # Allows integrating JACK apps into PW graph |
190 |
+ $(meson_native_use_feature jack-client jack) # Allows PW to act as a JACK client |
191 |
+ $(meson_feature jack-sdk jack-devel) |
192 |
+ $(usex jack-sdk "-Dlibjack-path=${EPREFIX}/usr/$(get_libdir)" '') |
193 |
+ -Dsupport=enabled # Miscellaneous/common plugins, such as null sink |
194 |
+ -Devl=disabled # Matches upstream |
195 |
+ -Dtest=disabled # fakesink and fakesource plugins |
196 |
+ $(meson_native_use_feature v4l v4l2) |
197 |
+ -Dlibcamera=disabled # libcamera is not in Portage tree |
198 |
+ -Dvideoconvert=enabled # Matches upstream |
199 |
+ -Dvideotestsrc=enabled # Matches upstream |
200 |
+ -Dvolume=enabled # Matches upstream |
201 |
+ -Dvulkan=disabled # Uses pre-compiled Vulkan compute shader to provide a CGI video source (dev thing; disabled by upstream) |
202 |
+ $(meson_native_use_feature extra pw-cat) |
203 |
+ -Dudev=enabled |
204 |
+ -Dudevrulesdir="$(get_udevdir)/rules.d" |
205 |
+ -Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install) |
206 |
+ $(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat) |
207 |
+ ) |
208 |
+ |
209 |
+ meson_src_configure |
210 |
+} |
211 |
+ |
212 |
+multilib_src_install() { |
213 |
+ # Our customs DOCS do not exist in multilib source directory |
214 |
+ DOCS= meson_src_install |
215 |
+} |
216 |
+ |
217 |
+multilib_src_install_all() { |
218 |
+ einstalldocs |
219 |
+ |
220 |
+ insinto /etc/security/limits.d |
221 |
+ doins ${limitsdfile} |
222 |
+ |
223 |
+ if use pipewire-alsa; then |
224 |
+ dodir /etc/alsa/conf.d |
225 |
+ # These will break if someone has /etc that is a symbol link to a subfolder! See #724222 |
226 |
+ # And the current dosym8 -r implementation is likely affected by the same issue, too. |
227 |
+ dosym ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/50-pipewire.conf |
228 |
+ dosym ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/99-pipewire-default.conf |
229 |
+ fi |
230 |
+ |
231 |
+ if ! use systemd; then |
232 |
+ insinto /etc/xdg/autostart |
233 |
+ newins "${FILESDIR}"/pipewire.desktop pipewire.desktop |
234 |
+ |
235 |
+ exeinto /usr/libexec |
236 |
+ newexe "${FILESDIR}"/pipewire-launcher.sh pipewire-launcher |
237 |
+ fi |
238 |
+} |
239 |
+ |
240 |
+pkg_postinst() { |
241 |
+ elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" |
242 |
+ elog "using PipeWire. Do it either manually or add yourself" |
243 |
+ elog "to the 'audio' group:" |
244 |
+ elog |
245 |
+ elog " usermod -aG audio <youruser>" |
246 |
+ elog |
247 |
+ |
248 |
+ if ! use jack-sdk; then |
249 |
+ elog "JACK emulation is incomplete and not all programs will work. PipeWire's" |
250 |
+ elog "alternative libraries have been installed to a non-default location." |
251 |
+ elog "To use them, put pw-jack <application> before every JACK application." |
252 |
+ elog "When using pw-jack, do not run jackd/jackdbus. However, a virtual/jack" |
253 |
+ elog "provider is still needed to compile the JACK applications themselves." |
254 |
+ elog |
255 |
+ fi |
256 |
+ |
257 |
+ if use systemd; then |
258 |
+ elog "To use PipeWire for audio, the user units must be manually enabled:" |
259 |
+ elog |
260 |
+ elog " systemctl --user enable pipewire.socket pipewire-pulse.socket" |
261 |
+ elog |
262 |
+ elog "When switching from PulseAudio, do not forget to disable PulseAudio:" |
263 |
+ elog |
264 |
+ elog " systemctl --user disable pulseaudio.service pulseaudio.socket" |
265 |
+ elog |
266 |
+ elog "A reboot is recommended to avoid interferences from still running" |
267 |
+ elog "PulseAudio daemon." |
268 |
+ elog |
269 |
+ elog "Both, new users and those upgrading, need to enable pipewire-media-session:" |
270 |
+ elog |
271 |
+ elog " systemctl --user enable pipewire-media-session.service" |
272 |
+ elog |
273 |
+ elog "NOTE: This is not required when using PipeWire only for screencasting." |
274 |
+ elog |
275 |
+ else |
276 |
+ elog "This ebuild auto-enables PulseAudio replacement. Because of that, users" |
277 |
+ elog "are recommended to edit: ${EROOT}/etc/pulse/client.conf and disable " |
278 |
+ elog "autospawn'ing of the original daemon by setting:" |
279 |
+ elog |
280 |
+ elog " autospawn = no" |
281 |
+ elog |
282 |
+ elog "Please note that the semicolon (;) must _NOT_ be at the beginning of the line!" |
283 |
+ elog |
284 |
+ elog "Alternatively, if replacing PulseAudio daemon is not desired, edit" |
285 |
+ elog "${EROOT}/etc/pipewire/pipewire.conf by commenting out the relevant" |
286 |
+ elog "command near the end of the file:" |
287 |
+ elog |
288 |
+ elog "#\"/usr/bin/pipewire\" = { args = \"-c pipewire-pulse.conf\" }" |
289 |
+ elog |
290 |
+ fi |
291 |
+ |
292 |
+ elog "For latest tips and tricks, troubleshooting information and documentation" |
293 |
+ elog "in general, please refer to https://wiki.gentoo.org/wiki/PipeWire" |
294 |
+ elog |
295 |
+ |
296 |
+ optfeature_header "The following can be installed for optional runtime features:" |
297 |
+ optfeature "restricted realtime capabilities vai D-Bus" sys-auth/rtkit |
298 |
+ # Once hsphfpd lands in tree, both it and ofono will need to be checked for presence here! |
299 |
+ if use bluetooth; then |
300 |
+ optfeature "better BT headset support (daemon startup required)" net-misc/ofono |
301 |
+ #optfeature "an oFono alternative (not packaged)" foo-bar/hsphfpd |
302 |
+ fi |
303 |
+} |