Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[manifold] Add new port #42347

Merged
merged 14 commits into from
Dec 12, 2024
27 changes: 27 additions & 0 deletions ports/manifold/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO elalish/manifold
REF v${VERSION}
SHA512 881d3b0e3ff03794ce66b09c4a7be675e5dcd5d5b269d62ad5c5de177e76a01460f6f0fb55a2973a92abda3bf32b8a08bafdff5c0b379ae095d9806eb5669022
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DMANIFOLD_TEST=OFF
-DMANIFOLD_CROSS_SECTION=ON
-DMANIFOLD_CBIND=ON
-DMANIFOLD_PYBIND=OFF
-DMANIFOLD_JSBIND=OFF
)

vcpkg_cmake_install()
JeffreyWardman marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/manifold)
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
)

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
4 changes: 4 additions & 0 deletions ports/manifold/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
manifold provides CMake targets:

find_package(manifold CONFIG REQUIRED)
target_link_libraries(main PRIVATE manifold::manifold)
19 changes: 19 additions & 0 deletions ports/manifold/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "manifold",
"version": "3.0.0",
"description": "Geometry library for topological robustness.",
"homepage": "https://github.com/elalish/manifold",
"license": "Apache-2.0",
"dependencies": [
"clipper2",
"tbb",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5764,6 +5764,10 @@
"baseline": "2023-07-17",
"port-version": 0
},
"manifold": {
"baseline": "3.0.0",
"port-version": 0
},
"mapbox-geojson-cpp": {
"baseline": "0.5.1",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/manifold.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d3885feb3202f23105c65b533abbfe05c42850ec",
"version": "3.0.0",
"port-version": 0
}
]
}