[manifold] Add new port (#42347)

Co-authored-by: Jeffrey Wardman <jeffrey.w@zydex.com>
This commit is contained in:
Jeffrey Wardman 2024-12-13 06:20:32 +11:00 committed by GitHub
parent e7283e19e8
commit c7e10f6304
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 63 additions and 0 deletions

View File

@ -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()
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
ports/manifold/usage Normal file
View File

@ -0,0 +1,4 @@
manifold provides CMake targets:
find_package(manifold CONFIG REQUIRED)
target_link_libraries(main PRIVATE manifold::manifold)

19
ports/manifold/vcpkg.json Normal file
View File

@ -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
}
]
}

View File

@ -5768,6 +5768,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

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d3885feb3202f23105c65b533abbfe05c42850ec",
"version": "3.0.0",
"port-version": 0
}
]
}