Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Michael Fischer <mf@go-sys.de>,
	"Luke D . Jones" <luke@ljones.dev>,
	Angelo Compagnucci <angelo.compagnucci@gmail.com>
Subject: [Buildroot] [PATCH v2] package/sdl2: add PulseAudio support
Date: Fri, 20 Nov 2026 22:54:33 +0100	[thread overview]
Message-ID: <20261120215433.605054-1-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20230315085103.1671888-2-luke@ljones.dev>

From: "Luke D. Jones" <luke@ljones.dev>

Build the PulseAudio audio driver of SDL2 when pulseaudio is enabled,
as done for ALSA, so that SDL2 applications can play sound through a
PulseAudio server.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Co-authored-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
Changes v1 -> v2:
  - drop the Wayland video driver: Buildroot has it since commit
    4662553088b8 ("package/sdl2: add wayland support")
  - drop the Vivante video driver: SDL2 builds it only with the headers
    of the proprietary Vivante driver (gc_vdk.h or EGL/eglvivante.h,
    from imx-gpu-viv), not with etnaviv. It needs its own patch.
  - enable PulseAudio when the pulseaudio package is enabled, as done for
    ALSA, instead of a new option. SDL2 only needs libpulse: drop the
    alsa-lib dependency.
  - rebase on master, where DirectFB support was removed
  - new subject, as the patch now only adds PulseAudio support

Supersedes v1: https://patchwork.buildroot.org/project/buildroot/patch/20230315085103.1671888-2-luke@ljones.dev/

 package/sdl2/sdl2.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 31f96d8e9b..e77234d938 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -19,7 +19,6 @@ SDL2_CONF_OPTS += \
 	--disable-arts \
 	--disable-esd \
 	--disable-dbus \
-	--disable-pulseaudio \
 	--disable-video-vivante \
 	--disable-video-cocoa \
 	--disable-video-metal \
@@ -157,6 +156,13 @@ else
 SDL2_CONF_OPTS += --disable-alsa
 endif
 
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+SDL2_DEPENDENCIES += pulseaudio
+SDL2_CONF_OPTS += --enable-pulseaudio
+else
+SDL2_CONF_OPTS += --disable-pulseaudio
+endif
+
 ifeq ($(BR2_PACKAGE_SDL2_KMSDRM),y)
 SDL2_DEPENDENCIES += libdrm libgbm libegl
 SDL2_CONF_OPTS += --enable-video-kmsdrm
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-11-20 21:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15  8:51 [Buildroot] (no subject) Luke D. Jones
2023-03-15  8:51 ` [Buildroot] [PATCH] package/sdl2: Add config for wayland, vivante, pulseaudio Luke D. Jones
2023-03-16 14:09   ` Luke Jones
2024-08-30 17:52   ` [Buildroot] [PATCH v1] package/sdl2: enable wayland support Thomas Devoogdt
2025-02-09 18:16     ` [Buildroot] [PATCH v2] package/sdl2: add " Thomas Devoogdt
2025-05-16 15:17       ` Peter Korsgaard
2025-05-16 15:52         ` Peter Korsgaard
2026-11-20 21:54   ` Angelo Compagnucci [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261120215433.605054-1-angelo.compagnucci@gmail.com \
    --to=angelo.compagnucci@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=luke@ljones.dev \
    --cc=mf@go-sys.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox