vcpkg/ports/matroska/portfile.cmake

27 lines
775 B
CMake
Raw Normal View History

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