diff options
| author | Kevin Hartman <kevin@hart.mn> | 2018-10-09 03:43:02 -0400 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-10-09 00:43:02 -0700 |
| commit | 59f88c7b109438bf08f20d50b10f107592b14079 (patch) | |
| tree | 2a3f33665aeb91f66e6ad9062e9f5d43bd487229 | |
| parent | 6ca2efc631d93b2034ace02c04923b0952756757 (diff) | |
| download | vcpkg-59f88c7b109438bf08f20d50b10f107592b14079.tar.gz vcpkg-59f88c7b109438bf08f20d50b10f107592b14079.zip | |
[morton-nd] Add port (#4420)
* [morton-nd] Add port
* [morton-md] Remove 'v' from CONTROL version
| -rw-r--r-- | ports/morton-nd/CONTROL | 3 | ||||
| -rw-r--r-- | ports/morton-nd/portfile.cmake | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/morton-nd/CONTROL b/ports/morton-nd/CONTROL new file mode 100644 index 000000000..40065dbee --- /dev/null +++ b/ports/morton-nd/CONTROL @@ -0,0 +1,3 @@ +Source: morton-nd +Version: 2.0.0 +Description: (C++14) header-only library for fast Morton encoding/decoding in N dimensions. diff --git a/ports/morton-nd/portfile.cmake b/ports/morton-nd/portfile.cmake new file mode 100644 index 000000000..63c8ee95f --- /dev/null +++ b/ports/morton-nd/portfile.cmake @@ -0,0 +1,16 @@ +#header-only library +include(vcpkg_common_functions) +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kevinhartman/morton-nd + REF v2.0.0 + SHA512 f349187a9c6094ebdc8dc10a0b028e119a82721946e2f629b3f64edade9665a97824d6a52496e470da61e5b65ae46c953346b271c2db11f5f2e3c7748de03daf + HEAD_REF master +) + +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/morton-nd) +file(COPY ${SOURCE_PATH}/NOTICE DESTINATION ${CURRENT_PACKAGES_DIR}/share/morton-nd) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/morton-nd/LICENSE ${CURRENT_PACKAGES_DIR}/share/morton-nd/copyright) + +file(GLOB HEADER_FILES ${SOURCE_PATH}/morton-nd/include/*.h) +file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/morton-nd) |
