2021-08-10 00:07:37 +08:00
|
|
|
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl-orb/copyright")
|
|
|
|
message(FATAL_ERROR "${PORT} conflict with rbdl-orb, please remove rbdl-orb before install ${PORT}.")
|
2020-10-13 06:51:43 +08:00
|
|
|
endif()
|
|
|
|
|
2021-08-10 00:07:37 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
|
|
|
|
|
2022-05-18 02:15:06 +08:00
|
|
|
vcpkg_from_github(
|
2020-10-13 06:51:43 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rbdl/rbdl
|
|
|
|
REF v2.6.0
|
|
|
|
SHA512 7b5fd03c0090277f295a28a1ff0542cd8cff76dda4379b3edc61ca3d868bf77d8b4882f81865fdffd0cf756c613fe55238b29a83bc163fc32aa94aa9d5781480
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES 001_x64_number_of_sections_exceeded_in_object_file_patch.diff
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-08-10 00:07:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-13 06:51:43 +08:00
|
|
|
OPTIONS
|
|
|
|
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
|
|
|
|
)
|
|
|
|
|
2021-08-10 00:07:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-13 06:51:43 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-08-10 00:07:37 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2022-05-18 02:15:06 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|