vcpkg/ports/robotraconteur-companion/portfile.cmake
John Wason 73bc296b6f
[robotraconteur] Add robotraconteur and robotraconteur-companion ports (#36596)
* Add robotraconteur port

* version database

* Add robotraconteur-companion port

* version database

* Install usage

* Update manifests

* Add dbus and libusb dependencies on linux

* version database

* Add back vcpkg-cmake dependency

* version database

* Disable robotraconteur on linux

* version database

* usage newline

* Use vcpkg_cmake_config_fixup

* Add back linux support

* version database

* Improve check for libbluetooth using pkgconfig

* version database

* Change libbluetooth check to warning

* version database

* Set PACKAGE_NAME in vcpkg_cmake_config_fixup

* version database
2024-02-09 20:10:49 -08:00

38 lines
1.2 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO robotraconteur/robotraconteur_companion
REF v0.3.1
SHA512 ba6ac3777eb37411d1c52d3639aad668bc8bb6aa1a39e77a6b0288b6c130756f5bbbc0adcbaa13bb07fb152e76e29462eccc36c1cf1baf6aa0bfb81e3566a32f
HEAD_REF master
)
vcpkg_from_github(
OUT_SOURCE_PATH ROBDEF_SOURCE_PATH
REPO robotraconteur/robotraconteur_standard_robdef
REF group1-v1
SHA512 84724717e57c6e7ceefa957a8d94ee68db189e9a114564662d37b16a307735feea2a01c5622140118f537e6c084437d4bf11d0eb1e015b475fb3b636ed5009aa
HEAD_REF master
)
file(COPY ${ROBDEF_SOURCE_PATH}/group1 DESTINATION ${SOURCE_PATH}/robdef/)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME RobotRaconteurCompanion
CONFIG_PATH "lib/cmake/RobotRaconteurCompanion"
)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")