51f30f47cd
The pipewire-media-session has been moved into a separate package which pipewire attempts to download via meson wraps if session-managers are enabled, since we don't support meson wraps we need to disable session-managers in the pipewire package and create a new pipewire-media-session package. We also need to add a patch removing an invalid session-managers option check from pipewire-media-session. There is an alsa with-module-sets option in pipewire-media-session, however at the moment alsa is an unconditional dependency so we need to always enable it and select alsa-lib. Note: it was previously an option of the pipewire package, named media-session, so the symbol was BR2_PACKAGE_PIPEWIRE_MEDIA_SESSION. Now it is a package name pipewire-media-session, so the symbol is still BR2_PACKAGE_PIPEWIRE_MEDIA_SESSION. So there is no legacy entry needed, and users previously using that option will now get the package. Sneaky. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - extend commit log with legacy handling - first unconditional CONF_OPTS uses =, not +=; fits on one line - slight reorder in variables assignments ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# pipewire-media-session
|
|
#
|
|
################################################################################
|
|
|
|
PIPEWIRE_MEDIA_SESSION_VERSION = 0.4.1
|
|
PIPEWIRE_MEDIA_SESSION_SOURCE = media-session-$(PIPEWIRE_MEDIA_SESSION_VERSION).tar.bz2
|
|
PIPEWIRE_MEDIA_SESSION_SITE = https://gitlab.freedesktop.org/pipewire/media-session/-/archive/$(PIPEWIRE_MEDIA_SESSION_VERSION)
|
|
PIPEWIRE_MEDIA_SESSION_LICENSE = MIT
|
|
PIPEWIRE_MEDIA_SESSION_LICENSE_FILES = COPYING LICENSE
|
|
PIPEWIRE_MEDIA_SESSION_INSTALL_STAGING = YES
|
|
PIPEWIRE_MEDIA_SESSION_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
alsa-lib \
|
|
dbus \
|
|
pipewire \
|
|
$(TARGET_NLS_DEPENDENCIES)
|
|
|
|
PIPEWIRE_MEDIA_SESSION_CONF_OPTS = -Ddocs=disabled -Dtests=disabled
|
|
|
|
PIPEWIRE_MEDIA_SESSION_MODULE_SETS_LIST = alsa
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
PIPEWIRE_MEDIA_SESSION_DEPENDENCIES += systemd
|
|
PIPEWIRE_MEDIA_SESSION_CONF_OPTS += \
|
|
-Dsystemd=enabled \
|
|
-Dsystemd-system-service=enabled \
|
|
-Dsystemd-user-service=enabled
|
|
else
|
|
PIPEWIRE_MEDIA_SESSION_CONF_OPTS += \
|
|
-Dsystemd=disabled \
|
|
-Dsystemd-system-service=disabled \
|
|
-Dsystemd-user-service=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JACK2),y)
|
|
PIPEWIRE_MEDIA_SESSION_DEPENDENCIES += jack2
|
|
PIPEWIRE_MEDIA_SESSION_MODULE_SETS_LIST += jack
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
|
PIPEWIRE_MEDIA_SESSION_DEPENDENCIES += pulseaudio
|
|
PIPEWIRE_MEDIA_SESSION_MODULE_SETS_LIST += pulseaudio
|
|
endif
|
|
|
|
PIPEWIRE_MEDIA_SESSION_CONF_OPTS += -Dwith-module-sets='$(subst $(space),$(comma),$(PIPEWIRE_MEDIA_SESSION_MODULE_SETS_LIST))'
|
|
|
|
$(eval $(meson-package))
|