From 1e238001403a36a17087777a8b6b56717e8cdd16 Mon Sep 17 00:00:00 2001 From: kreuzerkrieg Date: Tue, 4 Feb 2020 22:33:32 +0200 Subject: [PATCH] H3: A Hexagonal Hierarchical Geospatial Indexing System --- ports/h3/CONTROL | 4 ++++ ports/h3/portfile.cmake | 29 +++++++++++++++++++++++++++++ scripts/ci.baseline.txt | 7 +++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 ports/h3/CONTROL create mode 100644 ports/h3/portfile.cmake diff --git a/ports/h3/CONTROL b/ports/h3/CONTROL new file mode 100644 index 0000000000..8f37d9d6e8 --- /dev/null +++ b/ports/h3/CONTROL @@ -0,0 +1,4 @@ +Source: h3 +Version: 3.6.3 +Homepage: https://github.com/uber/h3 +Description: A Hexagonal Hierarchical Geospatial Indexing System diff --git a/ports/h3/portfile.cmake b/ports/h3/portfile.cmake new file mode 100644 index 0000000000..07a5b47f3e --- /dev/null +++ b/ports/h3/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP") +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO uber/h3 + REF v3.6.3 + SHA512 925438663ef9fb6541e4655dc95febe6233f078f8277937d8a9b33a76cf9b257d8c14e3ac5109460ac9188c426e6997700c4ec17926cf401577b3faf74c6c320 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_BENCHMARKS=OFF + -DBUILD_FILTERS=OFF + -DBUILD_GENERATORS=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/debug/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index b658bcea37..298c8ccb26 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -580,6 +580,9 @@ gtk:x86-windows=ignore gts:x64-linux=fail gts:x64-osx=fail guetzli:x64-osx=fail +h3:arm64-windows=ignore +h3:arm-uwp=ignore +h3:x64-uwp=ignore halide:x64-windows-static=fail hdf5:arm64-windows=fail hdf5:arm-uwp=fail @@ -1547,8 +1550,8 @@ sdl2-mixer:arm-uwp=fail sdl2-mixer:x64-uwp=fail sdl2-net:arm-uwp=fail sdl2-net:x64-uwp=fail -seal:arm-uwp=fail -seal:x64-uwp=fail +seal:arm-uwp=fail +seal:x64-uwp=fail secp256k1:x64-linux=fail secp256k1:x64-osx=fail selene:x64-linux=ignore