early-access version 2853
This commit is contained in:
32
externals/vcpkg/ports/rtmidi/fix-cmake-usage.patch
vendored
Executable file
32
externals/vcpkg/ports/rtmidi/fix-cmake-usage.patch
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 616fdaf..e6af930 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -280,7 +280,7 @@ include(CMakePackageConfigHelpers)
|
||||
|
||||
# Write cmake package version file
|
||||
write_basic_package_version_file(
|
||||
- RtMidi-config-version.cmake
|
||||
+ rtmidi-config-version.cmake
|
||||
VERSION ${FULL_VER}
|
||||
COMPATIBILITY SameMajorVersion
|
||||
)
|
||||
@@ -288,15 +288,15 @@ write_basic_package_version_file(
|
||||
# Write cmake package config file
|
||||
configure_package_config_file (
|
||||
cmake/RtMidi-config.cmake.in
|
||||
- RtMidi-config.cmake
|
||||
+ rtmidi-config.cmake
|
||||
INSTALL_DESTINATION "${RTMIDI_CMAKE_DESTINATION}"
|
||||
)
|
||||
|
||||
# Install package files
|
||||
install (
|
||||
FILES
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/RtMidi-config.cmake"
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/RtMidi-config-version.cmake"
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/rtmidi-config.cmake"
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/rtmidi-config-version.cmake"
|
||||
DESTINATION
|
||||
"${RTMIDI_CMAKE_DESTINATION}"
|
||||
)
|
||||
34
externals/vcpkg/ports/rtmidi/portfile.cmake
vendored
Executable file
34
externals/vcpkg/ports/rtmidi/portfile.cmake
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
# 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 84a99422a3faf1ab417fe71c0903a48debb9376a # 5.0.0
|
||||
SHA512 388e280b7966281e22b0048d6fb2541921df1113d84e49bbc444fff591d2025588edd8d61dbe5ff017afd76c26fd05edc8f9f15d0cce16315ccc15e6aac1d57f
|
||||
HEAD_REF master
|
||||
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_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)
|
||||
28
externals/vcpkg/ports/rtmidi/vcpkg.json
vendored
Executable file
28
externals/vcpkg/ports/rtmidi/vcpkg.json
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "rtmidi",
|
||||
"version": "5.0.0",
|
||||
"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",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"alsa": {
|
||||
"description": "Build ALSA API",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
"alsa"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user