2019-10-01 02:22:01 +08:00
|
|
|
vcpkg_from_bitbucket(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-01 02:22:01 +08:00
|
|
|
REPO odedevs/ode
|
2023-01-19 05:23:06 +08:00
|
|
|
REF ${VERSION}
|
2024-10-08 03:05:45 +08:00
|
|
|
SHA512 683869e6c7a39ea8dc6666b47633199111d1c0f2516cacb534ec57f6025a5780d85b2e59095a736790662280e4e4c9a2cd44b2cafaa34669e6861cce5b32e76b
|
2019-10-01 02:22:01 +08:00
|
|
|
HEAD_REF master
|
2022-10-26 12:21:52 +08:00
|
|
|
PATCHES
|
2017-05-08 05:24:02 +08:00
|
|
|
)
|
|
|
|
|
2021-11-30 09:14:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-10-26 12:21:52 +08:00
|
|
|
OPTIONS
|
|
|
|
-DODE_WITH_DEMOS=0
|
|
|
|
-DODE_WITH_TESTS=0
|
2017-05-08 05:24:02 +08:00
|
|
|
)
|
|
|
|
|
2021-11-30 09:14:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-01-19 05:23:06 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ode-${VERSION})
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2019-10-01 02:22:01 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2021-11-30 09:14:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
else()
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/..")
|
2023-03-29 02:38:18 +08:00
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
|
|
|
|
endif()
|
2019-10-01 02:22:01 +08:00
|
|
|
endif()
|
2023-03-29 02:38:18 +08:00
|
|
|
|
2021-11-30 09:14:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|