git: 6e956b306e96 - main - multimedia/pipewire: Enable MEDIASESSION by default.

Gleb Popov arrowd at FreeBSD.org
Tue Jul 27 12:35:28 UTC 2021


The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e956b306e96701704da249305ab3dbfc6b823ed

commit 6e956b306e96701704da249305ab3dbfc6b823ed
Author:     Evgeniy Khramtsov <evgeniy at khramtsov.org>
AuthorDate: 2021-07-27 12:34:11 +0000
Commit:     Gleb Popov <arrowd at FreeBSD.org>
CommitDate: 2021-07-27 12:34:54 +0000

    multimedia/pipewire: Enable MEDIASESSION by default.
    
    PR:             255348
---
 multimedia/pipewire/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/multimedia/pipewire/Makefile b/multimedia/pipewire/Makefile
index b7c46792301c..120b4e4649c0 100644
--- a/multimedia/pipewire/Makefile
+++ b/multimedia/pipewire/Makefile
@@ -29,7 +29,8 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	PipeWire
 
-OPTIONS_DEFINE=	GSTREAMER MEDIASESSION PULSEAUDIO VULKAN
+OPTIONS_DEFINE=		GSTREAMER MEDIASESSION PULSEAUDIO VULKAN
+OPTIONS_DEFAULT=	MEDIASESSION
 OPTIONS_SUB=	yes
 
 GSTREAMER_MESON_ENABLED=gstreamer
@@ -56,4 +57,12 @@ MESON_ARGS=	-D bluez5=disabled \
 		-D sdl2=disabled \
 		-D udevrulesdir="${LOCALBASE}/lib/udev/rules.d"
 
+post-patch-MEDIASESSION-on:
+# alsa-seq is not supported & causes SIGSEGV with media session
+	@${REINPLACE_CMD} 's| alsa-seq|\ #alsa-seq|g' \
+		${WRKSRC}/src/daemon/media-session.d/media-session.conf
+# start media session by default
+	@${REINPLACE_CMD} '/manager_args/ s/@comment@//g' \
+		${WRKSRC}/src/daemon/pipewire.conf.in
+
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list