diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/portmidi/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/portmidi/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/portmidi/portfile.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/portmidi/portfile.cmake b/vcpkg/ports/portmidi/portfile.cmake new file mode 100644 index 0000000..5b455df --- /dev/null +++ b/vcpkg/ports/portmidi/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO PortMidi/portmidi + REF "v${VERSION}" + SHA512 00d7cec97b58c074d484793b6097f4e60d061a9d680940bbcdb6670b287b78dbc099af378fb2e066c61f1c26e5060ded9c8f78c80fc03518b33e43f830e34a27 + HEAD_REF master + PATCHES + "android-support.patch" +) + +if(VCPKG_CRT_LINKAGE STREQUAL static) + set(PM_USE_STATIC_RUNTIME ON) +else() + set(PM_USE_STATIC_RUNTIME OFF) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DPM_USE_STATIC_RUNTIME="${PM_USE_STATIC_RUNTIME}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortMidi) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt") |