Skip to content

Commit

Permalink
[fluidsynth] Add pulseaudio feature for Linux (#31138)
Browse files Browse the repository at this point in the history
* Add pulseaudio feature for fluidsynth

* Add pulseaudio feature definition

* Formatting fix

* Update version

* x-add-version run

* Add pulseaudio feature package manager notice

* vcpkg x-add-version --all
  • Loading branch information
d10sfan authored May 1, 2023
1 parent 197818b commit 8849a1a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
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"
},
"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

0 comments on commit 8849a1a

Please sign in to comment.