[ode] no absolute paths (#21713)

This commit is contained in:
autoantwort 2021-11-30 02:14:35 +01:00 committed by GitHub
parent 945f540e76
commit 3286f33088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 15 deletions

View File

@ -6,22 +6,24 @@ vcpkg_from_bitbucket(
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DODE_WITH_DEMOS=0 -DODE_WITH_TESTS=0
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ode-0.16.1)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ode-0.16.1)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
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`/..")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
endif()
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)
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")
vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,17 @@
{
"name": "ode",
"version-string": "0.16.1",
"port-version": 2,
"version": "0.16.1",
"port-version": 3,
"description": "Open Dynamics Engine",
"homepage": "https://bitbucket.org/odedevs/ode/src/default/"
"homepage": "https://bitbucket.org/odedevs/ode/src/default/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4834,7 +4834,7 @@
},
"ode": {
"baseline": "0.16.1",
"port-version": 2
"port-version": 3
},
"offscale-libetcd-cpp": {
"baseline": "2019-07-10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8bc51447289df2b0693e433dace17ac0facbeba9",
"version": "0.16.1",
"port-version": 3
},
{
"git-tree": "6a0ed0d341666ec960fd7596bb2ac66737604cd3",
"version-string": "0.16.1",