2019-09-30 20:22:01 +02:00
|
|
|
vcpkg_from_bitbucket(
|
2019-10-07 19:35:13 +02:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-09-30 20:22:01 +02:00
|
|
|
REPO odedevs/ode
|
2023-01-18 23:23:06 +02:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 3ea6245f622c5ca616cc4ae5e9877526c16d9174262fe107867a98b0976284d530ad71a97e5feac1fbfcc780bcd056330f47d3c9eb2bcc66e0696e17d54b93b1
|
2019-09-30 20:22:01 +02:00
|
|
|
HEAD_REF master
|
2022-10-25 21:21:52 -07:00
|
|
|
PATCHES
|
2017-05-07 23:24:02 +02:00
|
|
|
)
|
|
|
|
|
2021-11-30 02:14:35 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-10-25 21:21:52 -07:00
|
|
|
OPTIONS
|
|
|
|
-DODE_WITH_DEMOS=0
|
|
|
|
-DODE_WITH_TESTS=0
|
2017-05-07 23:24:02 +02:00
|
|
|
)
|
|
|
|
|
2021-11-30 02:14:35 +01:00
|
|
|
vcpkg_cmake_install()
|
2023-01-18 23:23:06 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ode-${VERSION})
|
2019-05-02 22:57:43 -07:00
|
|
|
|
2019-09-30 20:22:01 +02:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2021-11-30 02:14:35 +01: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`/..")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
|
2019-09-30 20:22:01 +02:00
|
|
|
endif()
|
2021-11-30 02:14:35 +01: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 00:19:28 +02:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|