diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2020-02-06 14:54:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-06 14:54:39 -0800 |
| commit | b8cd54d4e6e62f113825d9116d2e0230f98e8199 (patch) | |
| tree | e072af79af4cbd7f566ad35a06097709f4849282 /ports | |
| parent | 6c978f40bc5d830baaced3f2a14a997e2af678c5 (diff) | |
| parent | e1f5b5029613bf0559763190e913aa447416a09b (diff) | |
| download | vcpkg-b8cd54d4e6e62f113825d9116d2e0230f98e8199.tar.gz vcpkg-b8cd54d4e6e62f113825d9116d2e0230f98e8199.zip | |
Merge pull request #9914 from kreuzerkrieg/H3
[H3] Add new port
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/h3/CONTROL | 4 | ||||
| -rw-r--r-- | ports/h3/portfile.cmake | 29 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/h3/CONTROL b/ports/h3/CONTROL new file mode 100644 index 000000000..8f37d9d6e --- /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 000000000..07a5b47f3 --- /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) |
