diff options
Diffstat (limited to 'vcpkg/ports/reactphysics3d')
| -rw-r--r-- | vcpkg/ports/reactphysics3d/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/reactphysics3d/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/reactphysics3d/vcpkg.json | 17 |
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/reactphysics3d/portfile.cmake b/vcpkg/ports/reactphysics3d/portfile.cmake new file mode 100644 index 0000000..42d219e --- /dev/null +++ b/vcpkg/ports/reactphysics3d/portfile.cmake @@ -0,0 +1,32 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +vcpkg_download_distfile(FIX_UPSTREAM_421 + URLS https://github.com/DanielChappuis/reactphysics3d/pull/421.patch?full_index=1 + SHA512 71ab7d5024fff100546d1cc934976f15e3ee3fe8df29ff62e1c743d3f0c5f6dad73def0b9d0a560fa423e610cb1388c88c3226d8e2b9f2b1afdf4535204541ff + FILENAME reactphysics3d-421.patch +) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DanielChappuis/reactphysics3d + REF "v${VERSION}" + SHA512 3ba9ec0e399d2dc46c126e4aa20718b9024f8097f36157e31b469f5135a726d3c0811e79335db970dfab7f258d1506dd4cefa46edca73f5940bf561dc9a5b11a + HEAD_REF master + PATCHES + "${FIX_UPSTREAM_421}" +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ReactPhysics3D") + +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/vcpkg/ports/reactphysics3d/usage b/vcpkg/ports/reactphysics3d/usage new file mode 100644 index 0000000..cd97529 --- /dev/null +++ b/vcpkg/ports/reactphysics3d/usage @@ -0,0 +1,4 @@ +ReactPhysics3D provides CMake targets: + + find_package(ReactPhysics3D REQUIRED) + target_link_libraries(main PRIVATE ReactPhysics3D::ReactPhysics3D) diff --git a/vcpkg/ports/reactphysics3d/vcpkg.json b/vcpkg/ports/reactphysics3d/vcpkg.json new file mode 100644 index 0000000..08f2b30 --- /dev/null +++ b/vcpkg/ports/reactphysics3d/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "reactphysics3d", + "version": "0.10.2", + "description": "Open source C++ physics engine library in 3D", + "homepage": "www.reactphysics3d.com", + "license": "Zlib", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |