2023-09-26 15:33:50 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jcelerier/libremidi
|
|
|
|
REF "v${VERSION}"
|
2023-11-01 02:57:55 +08:00
|
|
|
SHA512 ed07f8553155fe7c643033e67e12f1eaf64c11240bb387d9dc2c7e5c54af95cf5b9a78472b2281c7f2f4ef27a8f06ae981705f1fa2321f1322842becc1406247
|
2023-09-26 15:33:50 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-10-10 09:03:23 +08:00
|
|
|
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()
|
|
|
|
|
2023-09-26 15:33:50 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-10-04 08:30:53 +08:00
|
|
|
OPTIONS
|
2023-10-10 09:03:23 +08:00
|
|
|
${options}
|
2023-10-04 08:30:53 +08:00
|
|
|
-DLIBREMIDI_NO_BOOST=ON
|
|
|
|
-DLIBREMIDI_NO_JACK=ON
|
2023-09-26 15:33:50 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
2023-10-27 07:49:30 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2023-09-26 15:33:50 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|