Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fluidsynth] Add pulseaudio feature for Linux #31138

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion ports/fluidsynth/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if("pulseaudio" IN_LIST FEATURES)
message(
"${PORT} with pulseaudio feature currently requires the following from the system package manager:
libpulse-dev pulseaudio
These can be installed on Ubuntu systems via sudo apt install libpulse-dev pulseaudio"
)
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO FluidSynth/fluidsynth
Expand All @@ -13,6 +21,7 @@ vcpkg_check_features(
FEATURES
buildtools VCPKG_BUILD_MAKE_TABLES
sndfile enable-libsndfile
pulseaudio enable-pulseaudio
)

# enable platform-specific features, force the build to fail if the required libraries are not found,
Expand All @@ -23,7 +32,7 @@ set(LINUX_OPTIONS enable-alsa ALSA_FOUND)
set(ANDROID_OPTIONS enable-opensles OpenSLES_FOUND)
set(IGNORED_OPTIONS enable-coverage enable-dbus enable-floats enable-fpe-check enable-framework enable-jack enable-lash
enable-libinstpatch enable-midishare enable-oboe enable-openmp enable-oss enable-pipewire enable-portaudio
enable-profiling enable-pulseaudio enable-readline enable-sdl2 enable-systemd enable-trap-on-fpe enable-ubsan)
enable-profiling enable-readline enable-sdl2 enable-systemd enable-trap-on-fpe enable-ubsan)

if(VCPKG_TARGET_IS_WINDOWS)
set(OPTIONS_TO_ENABLE ${WINDOWS_OPTIONS})
Expand Down
6 changes: 5 additions & 1 deletion ports/fluidsynth/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fluidsynth",
"version": "2.3.2",
"port-version": 1,
"port-version": 2,
"description": "FluidSynth reads and handles MIDI events from the MIDI input device. It is the software analogue of a MIDI synthesizer. FluidSynth can also play midifiles using a Soundfont.",
"homepage": "https://github.com/FluidSynth/fluidsynth",
"license": "LGPL-2.1-or-later",
Expand Down Expand Up @@ -32,6 +32,10 @@
"buildtools": {
"description": "Build tools gentables"
},
"pulseaudio": {
"description": "Build with PulseAudio support",
"supports": "linux"
},
d10sfan marked this conversation as resolved.
Show resolved Hide resolved
"sndfile": {
"description": "Enable rendering to file and SF3 support",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@
},
"fluidsynth": {
"baseline": "2.3.2",
"port-version": 1
"port-version": 2
},
"fmem": {
"baseline": "c-libs-2ccee3d2fb",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fluidsynth.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "eb9b815d5af8da59d2cb5a42361a9c88e7d6a1f4",
"version": "2.3.2",
"port-version": 2
},
{
"git-tree": "0deaa03650b97bd28bcaa13d05fb3502f8651e48",
"version": "2.3.2",
Expand Down