diff options
| author | Antoine Hoarau <703240+ahoarau@users.noreply.github.com> | 2020-11-06 07:52:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-05 22:52:44 -0800 |
| commit | 7fbbc599ec816c456a02180ac75d42f1fb9e1d73 (patch) | |
| tree | fb3d9123f1f9792bc0a4dd8154f4f447333ffd66 /ports/sdformat10 | |
| parent | 193e348cf34c442c5499fbff5f5b6cc78faea6e3 (diff) | |
| download | vcpkg-7fbbc599ec816c456a02180ac75d42f1fb9e1d73.tar.gz vcpkg-7fbbc599ec816c456a02180ac75d42f1fb9e1d73.zip | |
[ignition] Updates on various pkgs 🤖 (#14324)
Diffstat (limited to 'ports/sdformat10')
| -rw-r--r-- | ports/sdformat10/CONTROL | 6 | ||||
| -rw-r--r-- | ports/sdformat10/portfile.cmake | 41 |
2 files changed, 47 insertions, 0 deletions
diff --git a/ports/sdformat10/CONTROL b/ports/sdformat10/CONTROL new file mode 100644 index 000000000..9ec10952d --- /dev/null +++ b/ports/sdformat10/CONTROL @@ -0,0 +1,6 @@ +Source: sdformat10 +Version: 10.0.0 +Homepage: http://sdformat.org/ +Build-Depends: ignition-math6, urdfdom, tinyxml2 +Description: Simulation Description Format (SDF) parser and description files. +Supports: !(uwp)
\ No newline at end of file diff --git a/ports/sdformat10/portfile.cmake b/ports/sdformat10/portfile.cmake new file mode 100644 index 000000000..d4166962f --- /dev/null +++ b/ports/sdformat10/portfile.cmake @@ -0,0 +1,41 @@ +vcpkg_fail_port_install(ON_TARGET "uwp") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO osrf/sdformat + REF sdformat10_10.0.0 + SHA512 1caf98427d25e7c17bfacaab20382c573fac0c965b40ad0c5e0efd32ddfdaa20250d8c79ecf574989ba10b1feb884a9df3927b18ec2cd88f7c66b4d8194bc731 + HEAD_REF sdf10 +) + +# Ruby is required by the sdformat build process +vcpkg_find_acquire_program(RUBY) +get_filename_component(RUBY_PATH ${RUBY} DIRECTORY) +set(_path $ENV{PATH}) +vcpkg_add_to_path(${RUBY_PATH}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_TESTING=OFF + -DUSE_EXTERNAL_URDF=ON + -DUSE_EXTERNAL_TINYXML=ON +) + +vcpkg_install_cmake() + +# Restore original path +set(ENV{PATH} ${_path}) + +# Fix cmake targets and pkg-config file location +vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/sdformat10") +vcpkg_fixup_pkgconfig() + +# Remove debug files +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include + ${CURRENT_PACKAGES_DIR}/debug/lib/cmake + ${CURRENT_PACKAGES_DIR}/debug/share) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
