2017-05-07 23:24:02 +02:00
|
|
|
include(vcpkg_common_functions)
|
2019-10-07 19:35:13 +02:00
|
|
|
|
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
|
|
|
|
REF 0.16
|
|
|
|
SHA512 6a98882aa3e6267423f745ec48f2472d330f94fa395c459e116174093ef1d479368efc0514ef04eff4e62eb7c3520a7a544fc3ed66ff2f1bd06bc13df4110581
|
|
|
|
HEAD_REF master
|
2017-05-07 23:24:02 +02:00
|
|
|
)
|
|
|
|
|
2019-09-30 20:22:01 +02:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS -DODE_WITH_DEMOS=0 -DODE_WITH_TESTS=0
|
2017-05-07 23:24:02 +02:00
|
|
|
)
|
|
|
|
|
2019-09-30 20:22:01 +02:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ode-0.16.0)
|
2019-05-02 22:57:43 -07:00
|
|
|
|
2019-09-30 20:22:01 +02:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
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)
|