diff --git a/ports/rtmidi/portfile.cmake b/ports/rtmidi/portfile.cmake index d14dec4ea6b3f3..404a49ebc3f103 100644 --- a/ports/rtmidi/portfile.cmake +++ b/ports/rtmidi/portfile.cmake @@ -11,12 +11,17 @@ vcpkg_from_github( PATCHES fix-cmake-usage.patch # Remove this patch in the next update ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + alsa RTMIDI_API_ALSA +) + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS - -DRTMIDI_API_ALSA=OFF -DRTMIDI_API_JACK=OFF -DRTMIDI_BUILD_TESTING=OFF + ${FEATURE_OPTIONS} ) vcpkg_cmake_install() diff --git a/ports/rtmidi/vcpkg.json b/ports/rtmidi/vcpkg.json index bb43d6611a841c..91979a2d5394f1 100644 --- a/ports/rtmidi/vcpkg.json +++ b/ports/rtmidi/vcpkg.json @@ -1,7 +1,7 @@ { "name": "rtmidi", "version": "5.0.0", - "port-version": 1, + "port-version": 2, "description": "A set of C++ classes that provide a common API for realtime MIDI input/output across Linux (ALSA & JACK), Macintosh OS X (CoreMidi & JACK) and Windows (Multimedia)", "homepage": "https://github.com/thestk/rtmidi", "license": "MIT", @@ -15,5 +15,14 @@ "name": "vcpkg-cmake-config", "host": true } - ] + ], + "features": { + "alsa": { + "description": "Build ALSA API", + "supports": "linux", + "dependencies": [ + "alsa" + ] + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index bb54b660c8839e..17005aa435f51c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6318,7 +6318,7 @@ }, "rtmidi": { "baseline": "5.0.0", - "port-version": 1 + "port-version": 2 }, "rttr": { "baseline": "0.9.6", diff --git a/versions/r-/rtmidi.json b/versions/r-/rtmidi.json index 667c5a16432698..ec95ea91a161b0 100644 --- a/versions/r-/rtmidi.json +++ b/versions/r-/rtmidi.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "70873823ce910dcf80078a94f12191371523d84c", + "version": "5.0.0", + "port-version": 2 + }, { "git-tree": "30614a92baff91c2d2790029179dbb37122ca331", "version": "5.0.0",