From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/mpd: add fluidsynth optional dependency
Date: Sun, 28 Jun 2020 16:26:47 +0200 [thread overview]
Message-ID: <20200628142647.742636-2-fontaine.fabrice@gmail.com> (raw)
In-Reply-To: <20200628142647.742636-1-fontaine.fabrice@gmail.com>
fluidsynth is an optional dependency of mpd since version 0.18.5 and
https://github.com/MusicPlayerDaemon/MPD/commit/727c6226597fb710239b14e7985d97ec6b53f0ee
It is enabled by default
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/mpd/Config.in | 10 ++++++++++
package/mpd/mpd.mk | 7 +++++++
2 files changed, 17 insertions(+)
diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index e9e7b83cbd..1b3ab8fa5d 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -114,6 +114,16 @@ config BR2_PACKAGE_MPD_FLAC
Enable flac input/streaming support.
Select this if you want to play back FLAC files.
+config BR2_PACKAGE_MPD_FLUIDSYNTH
+ bool "fluidsynth"
+ depends on !BR2_STATIC_LIBS
+ select BR2_PACKAGE_FLUIDSYNTH
+ help
+ Enable fluidsynth MIDI decoder support.
+
+comment "fluidsynth support needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS
+
config BR2_PACKAGE_MPD_LIBSNDFILE
bool "libsndfile"
select BR2_PACKAGE_LIBSNDFILE
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 474927749a..b4bafbd64c 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -97,6 +97,13 @@ else
MPD_CONF_OPTS += -Dflac=disabled
endif
+ifeq ($(BR2_PACKAGE_MPD_FLUIDSYNTH),y)
+MPD_DEPENDENCIES += fluidsynth
+MPD_CONF_OPTS += -Dfluidsynth=enabled
+else
+MPD_CONF_OPTS += -Dfluidsynth=disabled
+endif
+
ifeq ($(BR2_PACKAGE_MPD_HTTPD_OUTPUT),y)
MPD_CONF_OPTS += -Dhttpd=true
else
--
2.26.2
next prev parent reply other threads:[~2020-06-28 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-28 14:26 [Buildroot] [PATCH 1/2] package/fluidsynth: needs dynamic library Fabrice Fontaine
2020-06-28 14:26 ` Fabrice Fontaine [this message]
2020-06-29 20:50 ` Yann E. MORIN
2020-06-29 21:22 ` Fabrice Fontaine
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=20200628142647.742636-2-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=buildroot@busybox.net \
/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