Skip to content

Commit

Permalink
[fluidsynth] update portfile features. (#17235)
Browse files Browse the repository at this point in the history
* [fluidsynth] update deps.

* add all the features. (at least in the portfile)

* bump port version

* use version instead of version-string

* revert version bump

* version stuff

* default everything to off without vcpkg_check_features

* version stuff
  • Loading branch information
Neumann-A authored Apr 15, 2021
1 parent fe430b9 commit 2bdc34f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
5 changes: 0 additions & 5 deletions ports/fluidsynth/CONTROL

This file was deleted.

15 changes: 13 additions & 2 deletions ports/fluidsynth/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,20 @@ vcpkg_from_github(
force-x86-gentables.patch
)

set(feature_list dbus jack libinstpatch libsndfile midishare opensles oboe oss sdl2 pulseaudio readline lash alsa systemd coreaudio coremidi dart)
set(FEATURE_OPTIONS)
foreach(_feature IN LISTS feature_list)
list(APPEND FEATURE_OPTIONS -Denable-${_feature}:BOOL=OFF)
endforeach()

vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -Denable-pkgconfig=0
OPTIONS
${FEATURE_OPTIONS}
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
OPTIONS_DEBUG
-Denable-debug:BOOL=ON
)

vcpkg_install_cmake()
Expand All @@ -27,4 +38,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
endif()

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
10 changes: 10 additions & 0 deletions ports/fluidsynth/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "fluidsynth",
"version": "2.1.4",
"port-version": 1,
"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",
"dependencies": [
"glib"
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@
},
"fluidsynth": {
"baseline": "2.1.4",
"port-version": 0
"port-version": 1
},
"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": "e0fa8719cb1348a12b177ffdba4943891bede664",
"version": "2.1.4",
"port-version": 1
},
{
"git-tree": "3c4776e7b26493ea0fa2f825a2e855231805e978",
"version-string": "2.1.4",
Expand Down

0 comments on commit 2bdc34f

Please sign in to comment.