vcpkg/ports/matroska/portfile.cmake

33 lines
890 B
CMake
Raw Normal View History

2018-02-17 15:43:25 +08:00
include(vcpkg_common_functions)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "${PORT} does not currently support UWP")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Matroska-Org/libmatroska
2019-01-10 06:26:43 +08:00
REF release-1.4.9
SHA512 0c2e7324d62e1fc28b00a899f1d2fda88a3de474ea25c51624d716b869db72b4645b64cc434a0bdb7cefdd63b354de59920d4011889554f95a2905020b139fb1
2018-02-17 15:43:25 +08:00
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2018-02-17 15:43:25 +08:00
OPTIONS -DDISABLE_PKGCONFIG=1
)
vcpkg_install_cmake()
if (WIN32)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
else ()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/matroska)
endif ()
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)