vcpkg/ports/libremidi/portfile.cmake
Jia Yue Hua 6653330b70
[alsa,libremidi] update to 1.2.11,4.3.0 (#36633)
* [alsa] update to 1.2.11

* [alsa] update to 1.2.11

* [libremidi] update to 4.3.0

* [libremidi] update to 4.3.0
2024-02-07 22:26:06 -08:00

28 lines
821 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jcelerier/libremidi
REF "v${VERSION}"
SHA512 899528b10dcc26321f9c5cd00fd3e8bee19b6e1adc56bc8f213760d91137faee36cd545285e20b93ee6996b330b6c2d98975d000624e3897dfe4036549361d70
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
)
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")