Skip to content
Merged
15 changes: 15 additions & 0 deletions ports/mapbox-geojson-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mapbox/geojson-cpp
REF v0.5.1
SHA512 1282bd4a21773c8b300149abc95c4baea7c36facf283d05d18db246a40614625fab1a71e51190c1cdfc80852ea60b2727af9a679661bfede860d822306467037
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)
9 changes: 9 additions & 0 deletions ports/mapbox-geojson-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "mapbox-geojson-cpp",
"version-semver": "0.5.1",
"description": "A C++14 library for converting GeoJSON into geometry.hpp representation",
"homepage": "https://github.com/mapbox/geojson-cpp",
"dependencies": [
"mapbox-geometry"
]
}
15 changes: 15 additions & 0 deletions ports/mapbox-geojson-vt-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mapbox/geojson-vt-cpp
REF v6.6.4
SHA512 8a78159112be3e6a1a477fbb92e7bd9645b0b174ab6db7ef72557e154d53c3a9fb818d62b6f0d0a5b8b8a9839132c523fb44efa038388d4cd2b46c5bea60d2da
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)
9 changes: 9 additions & 0 deletions ports/mapbox-geojson-vt-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "mapbox-geojson-vt-cpp",
"version-semver": "6.6.4",
"description": "Port to C++ of JS GeoJSON-VT for slicing GeoJSON into vector tiles on the fly",
"homepage": "https://github.com/mapbox/geojson-vt-cpp",
"dependencies": [
"mapbox-geometry"
]
}
15 changes: 15 additions & 0 deletions ports/mapbox-geometry/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mapbox/geometry.hpp
REF v2.0.3
SHA512 76c10578e1fba44430786fb5e043dbc063aa251f62396701a509f7fa1e2e5c351fa0fe041d16be84bda9816ec5df3342cd9890da6fe99d78d6fb26e0a3b2485b
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)
6 changes: 6 additions & 0 deletions ports/mapbox-geometry/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "mapbox-geometry",
"version-semver": "2.0.3",
"description": "C++ geometry types",
"homepage": "https://github.com/mapbox/geometry.hpp"
}
15 changes: 15 additions & 0 deletions ports/mapbox-polylabel/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mapbox/polylabel
REF v1.0.4
SHA512 c337577545e072dbc43b5fc822e7a4fc9585051e24f6af76a3525faee7ab5c332915c43401629ad2e8f1f142f9e920f65347609607aec9394fd6bbc5d4936564
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)
10 changes: 10 additions & 0 deletions ports/mapbox-polylabel/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "mapbox-polylabel",
"version-semver": "1.0.4",
"description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)",
"homepage": "https://github.com/mapbox/polylabel",
"dependencies": [
"mapbox-geometry",
"mapbox-variant"
]
}
16 changes: 16 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3728,6 +3728,22 @@
"baseline": "0.20.0",
"port-version": 0
},
"mapbox-geojson-cpp": {
"baseline": "0.5.1",
"port-version": 0
},
"mapbox-geojson-vt-cpp": {
"baseline": "6.6.4",
"port-version": 0
},
"mapbox-geometry": {
"baseline": "2.0.3",
"port-version": 0
},
"mapbox-polylabel": {
"baseline": "1.0.4",
"port-version": 0
},
"mapbox-variant": {
"baseline": "1.2.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/mapbox-geojson-cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b49d52ff8e08ce5985c91e3690bf7a9866823bc1",
"version-semver": "0.5.1",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/m-/mapbox-geojson-vt-cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "61a9b2210212dbddceb433d2f61baa1da834ca8c",
"version-semver": "6.6.4",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/m-/mapbox-geometry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ad46e4919724e089e2644999d7a93cac6beff79e",
"version-semver": "2.0.3",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/m-/mapbox-polylabel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "964316686ad04d8fca92d15be807161886935979",
"version-semver": "1.0.4",
"port-version": 0
}
]
}