diff --git a/ports/gz-physics6/dependencies.patch b/ports/gz-physics6/dependencies.patch new file mode 100644 index 00000000000000..16cc09e3d2e4c8 --- /dev/null +++ b/ports/gz-physics6/dependencies.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -73,9 +73,8 @@ + collision-bullet + collision-ode + utils + utils-urdf + CONFIG + VERSION 6.9 + REQUIRED_BY dartsim +- PKGCONFIG dart + PKGCONFIG_VER_COMPARISON >=) +@@ -82,7 +82,6 @@ + #-------------------------------------- + # Find bullet for the bullet plugin wrapper + gz_find_package(GzBullet + VERSION 2.87 + REQUIRED_BY bullet bullet-featherstone +- PKGCONFIG bullet + PKGCONFIG_VER_COMPARISON >=) diff --git a/ports/gz-physics6/portfile.cmake b/ports/gz-physics6/portfile.cmake new file mode 100644 index 00000000000000..1b7f2ad4430e47 --- /dev/null +++ b/ports/gz-physics6/portfile.cmake @@ -0,0 +1,25 @@ +set(PACKAGE_NAME physics) + +ignition_modular_library( + NAME ${PACKAGE_NAME} + REF ${PORT}_${VERSION} + VERSION ${VERSION} + SHA512 c29594663509234e25c7d0a33848c0fe222c2b9471513978c18ea6873a17c66c43b4037c74e8849995fa6449c2dddc0f2ee669605893daf65119c277a17f39e1 + OPTIONS + PATCHES + dependencies.patch +) + +if(VCPKG_TARGET_IS_WINDOWS) + file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-physics-6/engine-plugins/*.dll") + if (NOT plugins STREQUAL "") + file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/bin/engine-plugins/") + file(REMOVE ${plugins}) + endif() + + file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-physics-6/engine-plugins/*.dll") + if (NOT plugins_debug STREQUAL "") + file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin/engine-plugins/") + file(REMOVE ${plugins_debug}) + endif() +endif() diff --git a/ports/gz-physics6/vcpkg.json b/ports/gz-physics6/vcpkg.json new file mode 100644 index 00000000000000..6ec3970062fca3 --- /dev/null +++ b/ports/gz-physics6/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "gz-physics6", + "version": "6.5.1", + "description": "component of Gazebo, provides an abstract physics interface designed to support simulation and rapid development of robot applications.", + "homepage": "https://gazebosim.org/libs/physics", + "license": "Apache-2.0", + "dependencies": [ + "bullet3", + "dartsim", + "eigen3", + "gz-cmake3", + "gz-common5", + "gz-math7", + "gz-plugin2", + "gz-utils2", + { + "name": "ignition-modularscripts", + "host": true + }, + "sdformat13" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index aacdd48061e2a8..1603a6a85cd745 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3188,6 +3188,10 @@ "baseline": "9.5.0", "port-version": 0 }, + "gz-physics6": { + "baseline": "6.5.1", + "port-version": 0 + }, "gz-plugin2": { "baseline": "2.0.1", "port-version": 0 diff --git a/versions/g-/gz-physics6.json b/versions/g-/gz-physics6.json new file mode 100644 index 00000000000000..fafcde192d89d0 --- /dev/null +++ b/versions/g-/gz-physics6.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "9e84a89c5e37806e67295d51b6bd1ec565ccaede", + "version": "6.5.1", + "port-version": 0 + } + ] +}