2018-02-17 15:43:25 +08:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2019-05-24 02:27:54 +08:00
|
|
|
message(FATAL_ERROR "matroska does not currently support UWP")
|
2018-02-17 15:43:25 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Matroska-Org/libmatroska
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 684560a3ce962a7abe89be93cc8ffa483f7f853f # release-1.6.2
|
|
|
|
SHA512 d9b0e392cc99d9eec99ef90431589778976508c5ccbd8bbb166f390653c27b4cc84de189f7cd3bf5b039ecb38a96b0e341cc39195099ec415cc48d40e0b78c01
|
2018-02-17 15:43:25 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-04-07 13:56:04 +08:00
|
|
|
PREFER_NINJA
|
2018-02-17 15:43:25 +08:00
|
|
|
OPTIONS -DDISABLE_PKGCONFIG=1
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-05-24 02:27:54 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Matroska)
|
2018-02-17 15:43:25 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/matroska RENAME copyright)
|