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