diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/morton-nd | |
Diffstat (limited to 'vcpkg/ports/morton-nd')
| -rw-r--r-- | vcpkg/ports/morton-nd/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/morton-nd/vcpkg.json | 17 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/morton-nd/portfile.cmake b/vcpkg/ports/morton-nd/portfile.cmake new file mode 100644 index 0000000..dba44d7 --- /dev/null +++ b/vcpkg/ports/morton-nd/portfile.cmake @@ -0,0 +1,30 @@ +#header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kevinhartman/morton-nd + REF v4.0.0 + SHA512 19dc51ae5d7fc868625a9c9f0dddec95a77fdeac714300033008f096bc3a83f146738e525e8a0ec541903263355a7fec84b1873d8eacfca4b93d3cd8945653da + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH share/morton-nd/cmake) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/share/doc" +) + +# Handle copyright +configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) +file(COPY "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/morton-nd/vcpkg.json b/vcpkg/ports/morton-nd/vcpkg.json new file mode 100644 index 0000000..422dc9c --- /dev/null +++ b/vcpkg/ports/morton-nd/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "morton-nd", + "version": "4.0.0", + "port-version": 3, + "description": "header-only constexpr library for fast Morton encoding/decoding in N dimensions.", + "homepage": "https://github.com/kevinhartman/morton-nd", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |