vcpkg/ports/rbdl/portfile.cmake

42 lines
1.5 KiB
CMake
Raw Normal View History

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO rbdl/rbdl
2023-10-03 07:35:30 +08:00
REF 619175a441ba769ab1be34a727644f4dd13bf841
SHA512 0c6cd78c4385e582f481a6f92d5c3a01f5d3bcd3a7cc3417a504209dae1856d788157db8d9f4173493619f103dea323bd57ddae0bc63162d72b03031dae9a822
HEAD_REF master
[rbdl] Add new port (#13884) * Add RBDL core support (without features) * Fix port version * Add supports field to CONTROL * Mark rbdl:x64-uwp as fail in the CI baseline * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * ⏰ Temporal removing of Supports field * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Revert "Mark rbdl:x64-uwp as fail in the CI baseline" This reverts commit 65a8100131f18e70ffccc5cfeb7a38c561099fd9. * Add Supports field * Update ports/rbdl/001_x64_number_of_sections_exceeded_in_object_file_patch.diff Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_fail_port_install * Remove Supports field * Revert "Remove Supports field" This reverts commit b62ba898afea1c71f7484039b3c174585f9f53f3. * Revert "Remove vcpkg_fail_port_install" This reverts commit dd7aecaec64dc12c1105736331a36a7bd2b9b5d2. * Revert "Revert "Remove Supports field"" This reverts commit 0e1cd7aa92545d629a898fb0a21e171eb0004bc8. * Revert "Revert "Remove vcpkg_fail_port_install"" This reverts commit ae89760c296d3935fe9396907fab79b0c187964f. * Fix 001_x64_number_of_sections_exceeded_in_object_file_patch.diff * Remove vcpkg_fixup_cmake_targets * Disable manual handling for dynamic install target * ♻️ Clean code * Add 002_runtime_destination_for_not_static_build.diff patch * Revert "Add 002_runtime_destination_for_not_static_build.diff patch" This reverts commit 32a0cfa251b1fae9b0872f4e8f124ccce025dc9f. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-10-13 06:51:43 +08:00
)
vcpkg_from_github(
OUT_SOURCE_PATH PARSER_SOURCE_PATH
REPO ORB-HD/URDF_Parser
REF 8fcc3174743cf3e7561ffb6625524f8133161df4
SHA512 6cba22e98f23e74fd7c1dcb356d88b5e24c61913dc900e584ed313b1fcce5d6832ceafcf15a3ea7a56714ab82d3cd7d9f4350d3d242614561c836bd4735e3f4f
)
if(NOT EXISTS "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser/CMakeLists.txt")
file(REMOVE_RECURSE "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
file(RENAME "${PARSER_SOURCE_PATH}" "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
endif()
[rbdl] Add new port (#13884) * Add RBDL core support (without features) * Fix port version * Add supports field to CONTROL * Mark rbdl:x64-uwp as fail in the CI baseline * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * ⏰ Temporal removing of Supports field * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Revert "Mark rbdl:x64-uwp as fail in the CI baseline" This reverts commit 65a8100131f18e70ffccc5cfeb7a38c561099fd9. * Add Supports field * Update ports/rbdl/001_x64_number_of_sections_exceeded_in_object_file_patch.diff Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_fail_port_install * Remove Supports field * Revert "Remove Supports field" This reverts commit b62ba898afea1c71f7484039b3c174585f9f53f3. * Revert "Remove vcpkg_fail_port_install" This reverts commit dd7aecaec64dc12c1105736331a36a7bd2b9b5d2. * Revert "Revert "Remove Supports field"" This reverts commit 0e1cd7aa92545d629a898fb0a21e171eb0004bc8. * Revert "Revert "Remove vcpkg_fail_port_install"" This reverts commit ae89760c296d3935fe9396907fab79b0c187964f. * Fix 001_x64_number_of_sections_exceeded_in_object_file_patch.diff * Remove vcpkg_fixup_cmake_targets * Disable manual handling for dynamic install target * ♻️ Clean code * Add 002_runtime_destination_for_not_static_build.diff patch * Revert "Add 002_runtime_destination_for_not_static_build.diff patch" This reverts commit 32a0cfa251b1fae9b0872f4e8f124ccce025dc9f. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-10-13 06:51:43 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
[rbdl] Add new port (#13884) * Add RBDL core support (without features) * Fix port version * Add supports field to CONTROL * Mark rbdl:x64-uwp as fail in the CI baseline * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * ⏰ Temporal removing of Supports field * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Revert "Mark rbdl:x64-uwp as fail in the CI baseline" This reverts commit 65a8100131f18e70ffccc5cfeb7a38c561099fd9. * Add Supports field * Update ports/rbdl/001_x64_number_of_sections_exceeded_in_object_file_patch.diff Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_fail_port_install * Remove Supports field * Revert "Remove Supports field" This reverts commit b62ba898afea1c71f7484039b3c174585f9f53f3. * Revert "Remove vcpkg_fail_port_install" This reverts commit dd7aecaec64dc12c1105736331a36a7bd2b9b5d2. * Revert "Revert "Remove Supports field"" This reverts commit 0e1cd7aa92545d629a898fb0a21e171eb0004bc8. * Revert "Revert "Remove vcpkg_fail_port_install"" This reverts commit ae89760c296d3935fe9396907fab79b0c187964f. * Fix 001_x64_number_of_sections_exceeded_in_object_file_patch.diff * Remove vcpkg_fixup_cmake_targets * Disable manual handling for dynamic install target * ♻️ Clean code * Add 002_runtime_destination_for_not_static_build.diff patch * Revert "Add 002_runtime_destination_for_not_static_build.diff patch" This reverts commit 32a0cfa251b1fae9b0872f4e8f124ccce025dc9f. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-10-13 06:51:43 +08:00
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
-DRBDL_BUILD_ADDON_LUAMODEL=ON
-DRBDL_BUILD_ADDON_GEOMETRY=ON
-DRBDL_BUILD_ADDON_URDFREADER=ON
-DRBDL_BUILD_EXECUTABLES=OFF
-DRBDL_VCPKG_BUILD=ON
[rbdl] Add new port (#13884) * Add RBDL core support (without features) * Fix port version * Add supports field to CONTROL * Mark rbdl:x64-uwp as fail in the CI baseline * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * ⏰ Temporal removing of Supports field * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Revert "Mark rbdl:x64-uwp as fail in the CI baseline" This reverts commit 65a8100131f18e70ffccc5cfeb7a38c561099fd9. * Add Supports field * Update ports/rbdl/001_x64_number_of_sections_exceeded_in_object_file_patch.diff Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_fail_port_install * Remove Supports field * Revert "Remove Supports field" This reverts commit b62ba898afea1c71f7484039b3c174585f9f53f3. * Revert "Remove vcpkg_fail_port_install" This reverts commit dd7aecaec64dc12c1105736331a36a7bd2b9b5d2. * Revert "Revert "Remove Supports field"" This reverts commit 0e1cd7aa92545d629a898fb0a21e171eb0004bc8. * Revert "Revert "Remove vcpkg_fail_port_install"" This reverts commit ae89760c296d3935fe9396907fab79b0c187964f. * Fix 001_x64_number_of_sections_exceeded_in_object_file_patch.diff * Remove vcpkg_fixup_cmake_targets * Disable manual handling for dynamic install target * ♻️ Clean code * Add 002_runtime_destination_for_not_static_build.diff patch * Revert "Add 002_runtime_destination_for_not_static_build.diff patch" This reverts commit 32a0cfa251b1fae9b0872f4e8f124ccce025dc9f. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-10-13 06:51:43 +08:00
)
vcpkg_cmake_install()
[rbdl] Add new port (#13884) * Add RBDL core support (without features) * Fix port version * Add supports field to CONTROL * Mark rbdl:x64-uwp as fail in the CI baseline * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * ⏰ Temporal removing of Supports field * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Revert "Mark rbdl:x64-uwp as fail in the CI baseline" This reverts commit 65a8100131f18e70ffccc5cfeb7a38c561099fd9. * Add Supports field * Update ports/rbdl/001_x64_number_of_sections_exceeded_in_object_file_patch.diff Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/rbdl/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_fail_port_install * Remove Supports field * Revert "Remove Supports field" This reverts commit b62ba898afea1c71f7484039b3c174585f9f53f3. * Revert "Remove vcpkg_fail_port_install" This reverts commit dd7aecaec64dc12c1105736331a36a7bd2b9b5d2. * Revert "Revert "Remove Supports field"" This reverts commit 0e1cd7aa92545d629a898fb0a21e171eb0004bc8. * Revert "Revert "Remove vcpkg_fail_port_install"" This reverts commit ae89760c296d3935fe9396907fab79b0c187964f. * Fix 001_x64_number_of_sections_exceeded_in_object_file_patch.diff * Remove vcpkg_fixup_cmake_targets * Disable manual handling for dynamic install target * ♻️ Clean code * Add 002_runtime_destination_for_not_static_build.diff patch * Revert "Add 002_runtime_destination_for_not_static_build.diff patch" This reverts commit 32a0cfa251b1fae9b0872f4e8f124ccce025dc9f. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-10-13 06:51:43 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/RBDL PACKAGE_NAME RBDL)
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)