vcpkg/ports/ebml/portfile.cmake
evpobr 25d80a74d6 [ebml, matroska] Updates (#6526)
* [ebml, matroska] Updates

* ebml: use standard CMake project
* ebml: no patches needed (merged in upstream)
* matroska: update to 1.5.0
* matroska: use standard CMake project

Breaking changes from upstream:

* ebml target is now in EBML:: namespace
* matroska target is now in Matroska:: namespace

* Fix configuration on Unix platforms

* [matroska] Bump CONTROL version

* [ebml] Export targets to share/EBML to match casing in find_package()

* [matroska] Fix on Linux and MacOS
2019-05-23 11:27:54 -07:00

29 lines
849 B
CMake

include(vcpkg_common_functions)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "ebml does not currently support UWP")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Matroska-Org/libebml
REF 20e9d85e5d18fa262c95202751fbba824fe43f19
SHA512 d0352921f8e6546343da0c74727662b41d36f2b62f8ab79da0e86c9eb916984f9bb43c4a78459593b56bec4d9a8f4950754b1132b9b489cc9cef85dcfb4f6890
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DDISABLE_PKGCONFIG=1
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/EBML)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/ebml RENAME copyright)