2018-02-24 18:27:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO lcm-proj/lcm
|
2019-06-11 01:05:10 +08:00
|
|
|
REF v1.4.0
|
|
|
|
SHA512 ca036aa2c31911e0bfaeab9665188c97726201267314693a1c333c4efe13ea598b39a55a19bc1d48e65462ac9d1716adfda5af86c645d59c3247192631247cc6
|
2018-02-24 18:27:05 +08:00
|
|
|
HEAD_REF master
|
2020-10-27 14:43:25 +08:00
|
|
|
PATCHES
|
|
|
|
only-install-one-flavor.patch
|
|
|
|
fix-build-error.patch
|
2021-04-27 01:28:21 +08:00
|
|
|
glib.link.patch
|
2022-08-30 02:36:07 +08:00
|
|
|
disable-docs.patch
|
2018-03-26 01:29:20 +08:00
|
|
|
)
|
|
|
|
|
2022-06-24 04:47:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-02-24 18:27:05 +08:00
|
|
|
OPTIONS
|
2018-03-26 01:29:20 +08:00
|
|
|
-DLCM_ENABLE_JAVA=OFF
|
|
|
|
-DLCM_ENABLE_LUA=OFF
|
|
|
|
-DLCM_ENABLE_PYTHON=OFF
|
2022-08-30 02:36:07 +08:00
|
|
|
-DLCM_ENABLE_GO=OFF
|
2018-02-24 18:27:05 +08:00
|
|
|
-DLCM_ENABLE_TESTS=OFF
|
2022-08-30 02:36:07 +08:00
|
|
|
-DLCM_ENABLE_EXAMPLES=OFF
|
2018-03-26 01:29:20 +08:00
|
|
|
-DLCM_INSTALL_M4MACROS=OFF
|
|
|
|
-DLCM_INSTALL_PKGCONFIG=OFF
|
2018-02-24 18:27:05 +08:00
|
|
|
)
|
|
|
|
|
2022-06-24 04:47:33 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-27 14:43:25 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
2022-06-24 04:47:33 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2020-10-27 14:43:25 +08:00
|
|
|
else()
|
2022-06-24 04:47:33 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/lcm/cmake)
|
2020-10-27 14:43:25 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/lcm" "${CURRENT_PACKAGES_DIR}/lib/lcm")
|
|
|
|
endif()
|
|
|
|
|
2022-08-30 02:36:07 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2018-02-24 18:27:05 +08:00
|
|
|
|
2020-10-27 14:43:25 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
2018-02-24 18:27:05 +08:00
|
|
|
|
2022-08-30 02:36:07 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES lcm-gen lcm-logger lcm-logplayer AUTO_CLEAN)
|
2018-03-26 01:29:20 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2020-10-27 14:43:25 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2018-03-26 01:29:20 +08:00
|
|
|
endif()
|
|
|
|
|
2022-08-30 02:36:07 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|