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/mapbox-polylabel | |
Diffstat (limited to 'vcpkg/ports/mapbox-polylabel')
| -rw-r--r-- | vcpkg/ports/mapbox-polylabel/portfile.cmake | 15 | ||||
| -rw-r--r-- | vcpkg/ports/mapbox-polylabel/vcpkg.json | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/mapbox-polylabel/portfile.cmake b/vcpkg/ports/mapbox-polylabel/portfile.cmake new file mode 100644 index 0000000..c371022 --- /dev/null +++ b/vcpkg/ports/mapbox-polylabel/portfile.cmake @@ -0,0 +1,15 @@ +#header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mapbox/polylabel + REF "v${VERSION}" + SHA512 e739b0f9c293fd1fd50de56be0804b638ad4ca5ca2c6ee6272907cffc99e133f183f62dd75ca415983ebf9a03da07910b2fa5e8d18b606a6faf7b14baa930622 + HEAD_REF master +) + +# Copy header files +file(COPY "${SOURCE_PATH}/include/mapbox/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mapbox" FILES_MATCHING PATTERN "*.hpp") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/mapbox-polylabel/vcpkg.json b/vcpkg/ports/mapbox-polylabel/vcpkg.json new file mode 100644 index 0000000..59e6722 --- /dev/null +++ b/vcpkg/ports/mapbox-polylabel/vcpkg.json @@ -0,0 +1,11 @@ +{ + "name": "mapbox-polylabel", + "version-semver": "2.0.1", + "description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)", + "homepage": "https://github.com/mapbox/polylabel", + "license": "ISC", + "dependencies": [ + "mapbox-geometry", + "mapbox-variant" + ] +} |