mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:19:06 +08:00
876a60002b
- [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
28 lines
822 B
CMake
28 lines
822 B
CMake
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
|
|
)
|
|
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")
|