diff --git a/ports/ignition-tools/portfile.cmake b/ports/ignition-tools/portfile.cmake new file mode 100644 index 0000000000..58e821cb31 --- /dev/null +++ b/ports/ignition-tools/portfile.cmake @@ -0,0 +1,43 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO gazebosim/gz-tools + REF ignition-tools_1.5.0 + SHA512 3e8267fc16295e269a1fb4867235bca858fea0f5f048831b0dc5f087907897042edb0f4757aef1bad824f3f109959286a441ca5315b6815c557e7deba9f8d151 + HEAD_REF ign-tools1 +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() + +# Fix cmake targets and pkg-config file location +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ignition-tools") +vcpkg_fixup_pkgconfig() + +if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + file(GLOB DEBUG_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*") + file(COPY ${DEBUG_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}") +endif() + +if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + file(GLOB RELEASE_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*") + file(COPY ${RELEASE_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/debug/bin" +) + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/ignition-tools/vcpkg.json b/ports/ignition-tools/vcpkg.json new file mode 100644 index 0000000000..3d0704e3ee --- /dev/null +++ b/ports/ignition-tools/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "ignition-tools", + "version": "1.5.0", + "description": "Gazebo tools provide the ign command line tool that accepts multiple subcommands.", + "homepage": "https://gazebosim.org", + "license": "Apache-2.0", + "supports": "!(arm & windows) & !uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index e5fd5fb592..3cc2ee3c81 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3012,6 +3012,10 @@ "baseline": "1.1.0", "port-version": 2 }, + "ignition-tools": { + "baseline": "1.5.0", + "port-version": 0 + }, "ignition-transport4": { "baseline": "4.0.0", "port-version": 6 diff --git a/versions/i-/ignition-tools.json b/versions/i-/ignition-tools.json new file mode 100644 index 0000000000..27201bf426 --- /dev/null +++ b/versions/i-/ignition-tools.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "5567f256c2183bacba71d78d26362a1b76021bcf", + "version": "1.5.0", + "port-version": 0 + } + ] +}