[mqtt_cpp] Add new port (#9787)

* feat(mqtt-cpp): add control file

* feat(mqtt-cpp): add portfile

* feat(mqtt-cpp): add boost-timer dep
This commit is contained in:
Михайлов Антон 2020-01-23 00:57:21 +05:00 committed by Victor Romero
parent 3f62e5d55d
commit 2831e429f4
2 changed files with 25 additions and 0 deletions

5
ports/mqtt-cpp/CONTROL Normal file
View File

@ -0,0 +1,5 @@
Source: mqtt-cpp
Version: 7.0.1
Description: Header-only MQTT client/server for C++14 based on Boost.Asio.
Homepage: https://github.com/redboltz/mqtt_cpp
Build-Depends: boost-asio, boost-timer

View File

@ -0,0 +1,20 @@
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO redboltz/mqtt_cpp
REF v7.0.1
SHA512 7128943e1136200debca344600b015b94a6e216f6136f2b432f4692fd8dabe1a7e50fa3d436d4df85950831f5ed776e03fc02c324afbf2178455770a33bff828
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DMQTT_BUILD_EXAMPLES=OFF
-DMQTT_BUILD_TESTS=OFF
)
file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)