diff --git a/ports/manifold/portfile.cmake b/ports/manifold/portfile.cmake new file mode 100644 index 00000000000000..5091fe1dad8349 --- /dev/null +++ b/ports/manifold/portfile.cmake @@ -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") diff --git a/ports/manifold/usage b/ports/manifold/usage new file mode 100644 index 00000000000000..401910838ba742 --- /dev/null +++ b/ports/manifold/usage @@ -0,0 +1,4 @@ +manifold provides CMake targets: + + find_package(manifold CONFIG REQUIRED) + target_link_libraries(main PRIVATE manifold::manifold) diff --git a/ports/manifold/vcpkg.json b/ports/manifold/vcpkg.json new file mode 100644 index 00000000000000..b9a4ec2ec98f61 --- /dev/null +++ b/ports/manifold/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 3b519efe645aae..0aaaf25e1e3e6b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/m-/manifold.json b/versions/m-/manifold.json new file mode 100644 index 00000000000000..a674995ae1032a --- /dev/null +++ b/versions/m-/manifold.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "d3885feb3202f23105c65b533abbfe05c42850ec", + "version": "3.0.0", + "port-version": 0 + } + ] +}