aboutsummaryrefslogtreecommitdiff
path: root/ports/mosquitto
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-03-06 02:51:50 +0800
committerPhil Christensen <philc@microsoft.com>2019-03-05 10:51:50 -0800
commitfd2330af7af3c8b523bec5e3de8fdbaf7ed75f5e (patch)
treea02400c18a5b236fce71ec49ffa5df857e6dd96f /ports/mosquitto
parent140e2733f7fd2e6db5fe57834db3bdb3485d8236 (diff)
downloadvcpkg-fd2330af7af3c8b523bec5e3de8fdbaf7ed75f5e.tar.gz
vcpkg-fd2330af7af3c8b523bec5e3de8fdbaf7ed75f5e.zip
[pthreads]Modify library name "pthreadsVC2" to correct name "pthreadVC2" (#5532)
* [Pthreads]Modify library name "pthreadsVC2" to correct name "pthreadVC2". * [pthreads]update Version * [flint]fix dependence port pthreads library name to "pthreadVC2". * [usbmuxd]fix dependence port pthreads library name to "pthreadVC2". * [mosquitto]fix dependence port pthreads library name to "pthreadVC2".
Diffstat (limited to 'ports/mosquitto')
-rw-r--r--ports/mosquitto/CONTROL2
-rw-r--r--ports/mosquitto/fix-dependence-pthreads.patch13
-rw-r--r--ports/mosquitto/portfile.cmake1
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/mosquitto/CONTROL b/ports/mosquitto/CONTROL
index 97b464e41..8d4d2de0c 100644
--- a/ports/mosquitto/CONTROL
+++ b/ports/mosquitto/CONTROL
@@ -1,5 +1,5 @@
Source: mosquitto
-Version: 1.5.0
+Version: 1.5.0-1
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
diff --git a/ports/mosquitto/fix-dependence-pthreads.patch b/ports/mosquitto/fix-dependence-pthreads.patch
new file mode 100644
index 000000000..d21786646
--- /dev/null
+++ b/ports/mosquitto/fix-dependence-pthreads.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 6355eaa..490df32 100644
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -6,7 +6,7 @@ option(WITH_THREADING "Include client library threading support?" ON)
+ if (${WITH_THREADING} STREQUAL ON)
+ add_definitions("-DWITH_THREADING")
+ if (WIN32)
+- find_library(PTHREAD_LIBRARIES NAMES pthreadsVC2)
++ find_library(PTHREAD_LIBRARIES NAMES pthreadVC2)
+ find_path(PTHREAD_INCLUDE_DIR pthread.h)
+ else (WIN32)
+ find_library(LIBPTHREAD pthread)
diff --git a/ports/mosquitto/portfile.cmake b/ports/mosquitto/portfile.cmake
index 99fe48369..25ba0e598 100644
--- a/ports/mosquitto/portfile.cmake
+++ b/ports/mosquitto/portfile.cmake
@@ -22,6 +22,7 @@ vcpkg_apply_patches(
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/win64-cmake.patch"
"${CMAKE_CURRENT_LIST_DIR}/output_folders-cmake.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/fix-dependence-pthreads.patch"
)
vcpkg_configure_cmake(