2022-01-04 05:23:35 +08:00
|
|
|
vcpkg_from_github(
|
2020-06-27 06:06:30 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-01-04 05:23:35 +08:00
|
|
|
REPO PortMidi/portmidi
|
2023-03-20 14:18:59 +08:00
|
|
|
REF "v${VERSION}"
|
2022-10-17 22:47:07 +08:00
|
|
|
SHA512 d9f22d161e1dd9a4bde1971bb2b6e5352da51545f4fe5ecad11c55e7a535f0d88efce18d1c8fd91e93b70a7926150f86a0f53972ad92370e86556a8dd72dc194
|
2022-01-04 05:23:35 +08:00
|
|
|
HEAD_REF master
|
2023-03-20 14:18:59 +08:00
|
|
|
PATCHES
|
|
|
|
"search-for-threads-in-config.patch"
|
2017-12-27 18:49:36 +08:00
|
|
|
)
|
|
|
|
|
2022-10-17 22:47:07 +08:00
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
2023-03-20 14:18:59 +08:00
|
|
|
set(PM_USE_STATIC_RUNTIME ON)
|
2022-10-17 22:47:07 +08:00
|
|
|
else()
|
2023-03-20 14:18:59 +08:00
|
|
|
set(PM_USE_STATIC_RUNTIME OFF)
|
2022-10-17 22:47:07 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-03-20 14:18:59 +08:00
|
|
|
-DPM_USE_STATIC_RUNTIME="${PM_USE_STATIC_RUNTIME}"
|
2022-10-17 22:47:07 +08:00
|
|
|
)
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2023-03-20 14:18:59 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2022-01-04 05:23:35 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortMidi)
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-03-20 14:18:59 +08:00
|
|
|
|
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt")
|