diff options
Diffstat (limited to 'vcpkg/ports/libremidi')
| -rw-r--r-- | vcpkg/ports/libremidi/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/libremidi/vcpkg.json | 22 |
2 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/libremidi/portfile.cmake b/vcpkg/ports/libremidi/portfile.cmake new file mode 100644 index 0000000..de83d9d --- /dev/null +++ b/vcpkg/ports/libremidi/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jcelerier/libremidi
+ REF "v${VERSION}"
+ SHA512 4ba9d06a171dc29c393d5401661cbefbd5cdcc00ae8a02cb64345367b829ea49b109056167ea86c0f85e1d4f6ce9a01be89c988f03dc90f02ae4943d13b74845
+ HEAD_REF master
+)
+
+vcpkg_list(SET options)
+if(VCPKG_TARGET_IS_LINUX)
+ vcpkg_list(APPEND options -DLIBREMIDI_NO_ALSA=OFF)
+else()
+ vcpkg_list(APPEND options -DLIBREMIDI_NO_ALSA=ON)
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${options}
+ -DLIBREMIDI_NO_BOOST=ON
+ -DLIBREMIDI_NO_JACK=ON
+ -DLIBREMIDI_NO_PIPEWIRE=ON
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/libremidi/vcpkg.json b/vcpkg/ports/libremidi/vcpkg.json new file mode 100644 index 0000000..1bc5d0d --- /dev/null +++ b/vcpkg/ports/libremidi/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "libremidi", + "version": "4.5.0", + "port-version": 2, + "description": "A modern C++ MIDI real-time & file I/O library", + "homepage": "https://github.com/jcelerier/libremidi", + "license": "BSD-2-Clause", + "dependencies": [ + { + "name": "alsa", + "platform": "linux" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |