From 3f62e5d55d1a7d8905df35d5c441d6e9ad64ffdf Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Tue, 21 Jan 2020 15:42:42 -0800 Subject: [PATCH] [mosquitto] Install mosquittopp.lib to dest (#9754) --- ports/mosquitto/CONTROL | 2 +- ports/mosquitto/archive-dest.patch | 17 +++++++++++++++-- ports/mosquitto/portfile.cmake | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ports/mosquitto/CONTROL b/ports/mosquitto/CONTROL index 126fa2a72a..b5b8e44430 100644 --- a/ports/mosquitto/CONTROL +++ b/ports/mosquitto/CONTROL @@ -1,5 +1,5 @@ Source: mosquitto -Version: 1.6.7-1 +Version: 1.6.7-2 Build-Depends: c-ares, libwebsockets, openssl, pthreads Description: Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino. diff --git a/ports/mosquitto/archive-dest.patch b/ports/mosquitto/archive-dest.patch index 11a9ccce4d..40d6c1f6db 100644 --- a/ports/mosquitto/archive-dest.patch +++ b/ports/mosquitto/archive-dest.patch @@ -1,8 +1,8 @@ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt -index 221c230..1bd4e96 100644 +index e1521f1..bd60b75 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt -@@ -89,7 +89,7 @@ set_target_properties(libmosquitto PROPERTIES +@@ -87,7 +87,7 @@ set_target_properties(libmosquitto PROPERTIES SOVERSION 1 ) @@ -11,3 +11,16 @@ index 221c230..1bd4e96 100644 if (WITH_STATIC_LIBRARIES) add_library(libmosquitto_static STATIC ${C_SRC}) +diff --git a/lib/cpp/CMakeLists.txt b/lib/cpp/CMakeLists.txt +index b39ac3f..5805244 100644 +--- a/lib/cpp/CMakeLists.txt ++++ b/lib/cpp/CMakeLists.txt +@@ -13,7 +13,7 @@ set_target_properties(mosquittopp PROPERTIES + VERSION ${VERSION} + SOVERSION 1 + ) +-install(TARGETS mosquittopp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") ++install(TARGETS mosquittopp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") + + if (WITH_STATIC_LIBRARIES) + add_library(mosquittopp_static STATIC diff --git a/ports/mosquitto/portfile.cmake b/ports/mosquitto/portfile.cmake index a59dd6068f..3496f47b74 100644 --- a/ports/mosquitto/portfile.cmake +++ b/ports/mosquitto/portfile.cmake @@ -50,4 +50,4 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/mosquitto_sub${VCPKG_TARGET_EXECUTABLE_S endif() #endif() -file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/mosquitto RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file