git: 3de211c0e018 - main - multimedia/pipewire: Put the ebur128 dependency under an OPTION

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 24 Mar 2025 07:09:35 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3de211c0e018b688ad84b033d517e5f50eab0135

commit 3de211c0e018b688ad84b033d517e5f50eab0135
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-03-24 07:09:00 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-24 07:09:00 +0000

    multimedia/pipewire: Put the ebur128 dependency under an OPTION
    
    PR:             285610
---
 multimedia/pipewire/Makefile  | 10 +++++++---
 multimedia/pipewire/pkg-plist |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/multimedia/pipewire/Makefile b/multimedia/pipewire/Makefile
index eb46aea13052..0c57e9f1bfa0 100644
--- a/multimedia/pipewire/Makefile
+++ b/multimedia/pipewire/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS=	libdbus-1.so:devel/dbus \
 		libudev.so:devel/libudev-devd \
 		libwebrtc-audio-processing-1.so:audio/webrtc-audio-processing
 
-USES=		compiler:c11 ebur128 gettext-tools gnome localbase:ldflags meson \
+USES=		compiler:c11 gettext-tools gnome localbase:ldflags meson \
 		ncurses pkgconfig python:build readline shebangfix ssl
 USE_GNOME=	glib20
 USE_LDCONFIG=	yes
@@ -29,9 +29,9 @@ GL_SITE=	https://gitlab.freedesktop.org
 SHEBANG_FILES=	doc/*.py
 PORTDOCS=	*
 
-OPTIONS_DEFINE=		ALSA AVAHI DOCS DOXYGEN GSTREAMER JACK LV2 PULSEAUDIO \
+OPTIONS_DEFINE=		ALSA AVAHI DOCS DOXYGEN EBUR GSTREAMER JACK LV2 PULSEAUDIO \
 			VULKAN X11_BELL
-OPTIONS_DEFAULT=	GSTREAMER JACK
+OPTIONS_DEFAULT=	EBUR GSTREAMER JACK
 OPTIONS_SUB=		yes
 
 ALSA_MESON_ENABLED=	alsa pipewire-alsa
@@ -48,6 +48,10 @@ DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
 DOXYGEN_MESON_ENABLED=	docs
 DOXYGEN_IMPLIES=	DOCS
 
+EBUR_DESC=		Loudness normalization plugin based on ebur128
+EBUR_MESON_ENABLED=	ebur128
+EBUR_USES=		ebur128
+
 GSTREAMER_USES=		gstreamer
 GSTREAMER_MESON_ENABLED=gstreamer gstreamer-device-provider
 
diff --git a/multimedia/pipewire/pkg-plist b/multimedia/pipewire/pkg-plist
index e94ebfc58cfd..1f5c6bcba414 100644
--- a/multimedia/pipewire/pkg-plist
+++ b/multimedia/pipewire/pkg-plist
@@ -304,7 +304,7 @@ lib/spa-0.2/audiomixer/libspa-audiomixer.so
 lib/spa-0.2/audiotestsrc/libspa-audiotestsrc.so
 lib/spa-0.2/control/libspa-control.so
 lib/spa-0.2/filter-graph/libspa-filter-graph-plugin-builtin.so
-lib/spa-0.2/filter-graph/libspa-filter-graph-plugin-ebur128.so
+%%EBUR%%lib/spa-0.2/filter-graph/libspa-filter-graph-plugin-ebur128.so
 lib/spa-0.2/filter-graph/libspa-filter-graph-plugin-ladspa.so
 %%LV2%%lib/spa-0.2/filter-graph/libspa-filter-graph-plugin-lv2.so
 lib/spa-0.2/filter-graph/libspa-filter-graph.so