diff options
Diffstat (limited to 'vcpkg/ports/rtmidi')
| -rw-r--r-- | vcpkg/ports/rtmidi/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/rtmidi/vcpkg.json | 27 |
2 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/rtmidi/portfile.cmake b/vcpkg/ports/rtmidi/portfile.cmake new file mode 100644 index 0000000..7778224 --- /dev/null +++ b/vcpkg/ports/rtmidi/portfile.cmake @@ -0,0 +1,33 @@ +# Upstream uses CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, which causes issues +# https://github.com/thestk/rtmidi/blob/4.0.0/CMakeLists.txt#L20 +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO thestk/rtmidi + REF "${VERSION}" + SHA512 7ff7f85ff86fc019ab7906a46efc986b2a340b2f9a9d504bda85d0afc75921b905b32cb37f87e30ab9d1f13e62587c4ade736dad1609a0880eeab3fe5a936acb + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + alsa RTMIDI_API_ALSA +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DRTMIDI_API_JACK=OFF + -DRTMIDI_BUILD_TESTING=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_fixup_pkgconfig() + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/rtmidi/vcpkg.json b/vcpkg/ports/rtmidi/vcpkg.json new file mode 100644 index 0000000..36b70af --- /dev/null +++ b/vcpkg/ports/rtmidi/vcpkg.json @@ -0,0 +1,27 @@ +{ + "name": "rtmidi", + "version": "6.0.0", + "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", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "alsa": { + "description": "Build ALSA API", + "supports": "linux", + "dependencies": [ + "alsa" + ] + } + } +} |