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
|
2021-11-17 08:48:12 +08:00
|
|
|
REF release-1.6.3
|
|
|
|
SHA512 f4b4cd5b5e76c452fb559ead28c4bcb5ec4e28d74898f13c1709a6ab75d95cf82b319118445d7a7f895708bb0d5d1f3c09040d3e3263c6a2f2a27ffc92d35c2f
|
2018-02-17 15:43:25 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-17 08:48:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DDISABLE_PKGCONFIG=1
|
2018-02-17 15:43:25 +08:00
|
|
|
)
|
|
|
|
|
2021-11-17 08:48:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-17 15:43:25 +08:00
|
|
|
|
2021-11-17 08:48:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Matroska)
|
2018-02-17 15:43:25 +08:00
|
|
|
|
2021-11-17 08:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-02-17 15:43:25 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-17 08:48:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|