|
@@ -4,45 +4,116 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-PIPEWIRE_VERSION = 0.2.7
|
|
|
+PIPEWIRE_VERSION = 0.3.26
|
|
|
PIPEWIRE_SITE = $(call github,PipeWire,pipewire,$(PIPEWIRE_VERSION))
|
|
|
-PIPEWIRE_LICENSE = LGPL-2.1+
|
|
|
-PIPEWIRE_LICENSE_FILES = LICENSE LGPL
|
|
|
+PIPEWIRE_LICENSE = MIT
|
|
|
+PIPEWIRE_LICENSE_FILES = COPYING LICENSE
|
|
|
PIPEWIRE_INSTALL_STAGING = YES
|
|
|
-PIPEWIRE_DEPENDENCIES = host-pkgconf alsa-lib dbus udev
|
|
|
+PIPEWIRE_DEPENDENCIES = host-pkgconf dbus
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
-PIPEWIRE_DEPENDENCIES += ffmpeg
|
|
|
+PIPEWIRE_CONF_OPTS += \
|
|
|
+ -Ddocs=disabled \
|
|
|
+ -Dexamples=disabled \
|
|
|
+ -Dman=disabled \
|
|
|
+ -Dtests=disabled \
|
|
|
+ -Dspa-plugins=enabled \
|
|
|
+ -Daudiomixer=enabled \
|
|
|
+ -Daudioconvert=enabled \
|
|
|
+ -Dcontrol=enabled \
|
|
|
+ -Daudiotestsrc=enabled \
|
|
|
+ -Dsupport=enabled \
|
|
|
+ -Devl=disabled \
|
|
|
+ -Dtest=disabled \
|
|
|
+ -Dvideoconvert=enabled \
|
|
|
+ -Dvideotestsrc=enabled \
|
|
|
+ -Dvolume=enabled
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dudev=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += udev
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dudev=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_LIBVA),y)
|
|
|
-PIPEWIRE_DEPENDENCIES += libva
|
|
|
+ifeq ($(BR2_PACKAGE_PIPEWIRE_GSTREAMER),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dgstreamer=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += libglib2 gstreamer1 gst1-plugins-base
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dgstreamer=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_SBC),y)
|
|
|
-PIPEWIRE_DEPENDENCIES += sbc
|
|
|
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dsystemd=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += systemd
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dsystemd=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_SDL2),y)
|
|
|
-PIPEWIRE_DEPENDENCIES += sdl2
|
|
|
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dpipewire-alsa=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += alsa-lib
|
|
|
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dalsa=enabled
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dalsa=disabled
|
|
|
+endif
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dalsa=disabled -Dpipewire-alsa=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
|
|
-PIPEWIRE_DEPENDENCIES += xlib_libX11
|
|
|
+ifeq ($(BR2_PACKAGE_JACK2),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dpipewire-jack=enabled -Djack=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += jack2
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dpipewire-jack=disabled -Djack=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_PIPEWIRE_GSTREAMER),y)
|
|
|
-PIPEWIRE_CONF_OPTS += -Dgstreamer=enabled
|
|
|
-PIPEWIRE_DEPENDENCIES += libglib2 gstreamer1 gst1-plugins-base
|
|
|
+ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_SBC),yy)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dbluez5=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += bluez5_utils sbc
|
|
|
else
|
|
|
-PIPEWIRE_CONF_OPTS += -Dgstreamer=disabled
|
|
|
+PIPEWIRE_CONF_OPTS += -Dbluez5=disabled
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
-PIPEWIRE_CONF_OPTS += -Dsystemd=true
|
|
|
-PIPEWIRE_DEPENDENCIES += systemd
|
|
|
+ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dffmpeg=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += ffmpeg
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dffmpeg=disabled
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_PIPEWIRE_V4L2),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dv4l2=enabled
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dv4l2=disabled
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCAMERA)$(BR2_PACKAGE_HAS_UDEV),yy)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dlibcamera=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += libcamera
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dlibcamera=disabled
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dvulkan=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += mesa3d
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dvulkan=disabled
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
|
|
+PIPEWIRE_CONF_OPTS += -Dpw-cat=enabled -Dsndfile=enabled
|
|
|
+PIPEWIRE_DEPENDENCIES += libsndfile
|
|
|
+else
|
|
|
+PIPEWIRE_CONF_OPTS += -Dpw-cat=disabled -Dsndfile=disabled
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_SDL2),y)
|
|
|
+PIPEWIRE_DEPENDENCIES += sdl2
|
|
|
+PIPEWIRE_CONF_OPTS += -Dsdl2=enabled
|
|
|
else
|
|
|
-PIPEWIRE_CONF_OPTS += -Dsystemd=false
|
|
|
+PIPEWIRE_CONF_OPTS += -Dsdl2=disabled
|
|
|
endif
|
|
|
|
|
|
$(eval $(meson-package))
|