aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/nng/CONTROL2
-rw-r--r--ports/nng/fix-include-path.patch14
-rw-r--r--ports/nng/portfile.cmake19
3 files changed, 5 insertions, 30 deletions
diff --git a/ports/nng/CONTROL b/ports/nng/CONTROL
index b70aaa5b0..de66fb2c6 100644
--- a/ports/nng/CONTROL
+++ b/ports/nng/CONTROL
@@ -1,5 +1,5 @@
Source: nng
-Version: 1.0.1
+Version: 1.1.0
Description: NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery.
Feature: mbedtls
diff --git a/ports/nng/fix-include-path.patch b/ports/nng/fix-include-path.patch
deleted file mode 100644
index 9c18b9933..000000000
--- a/ports/nng/fix-include-path.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index e59ee5b..b5f6a0d 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -238,6 +238,9 @@ set_target_properties (${PROJECT_NAME} ${PROJECT_NAME}
- target_link_libraries (${PROJECT_NAME} PRIVATE ${NNG_REQUIRED_LIBRARIES})
- target_link_libraries (${PROJECT_NAME} PRIVATE Threads::Threads)
-
-+# See: https://github.com/nanomsg/nanomsg/pull/949/
-+target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
-+
- install (TARGETS ${PROJECT_NAME}
- EXPORT ${PROJECT_NAME}-target
- FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library
diff --git a/ports/nng/portfile.cmake b/ports/nng/portfile.cmake
index d7465170a..b16632ff9 100644
--- a/ports/nng/portfile.cmake
+++ b/ports/nng/portfile.cmake
@@ -3,10 +3,9 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nanomsg/nng
- REF ce9f0cb155ad0e97cfc7703d9d7c8e5bec3201bc
- SHA512 e1fca685e3397398bd259d126560902e813d1e2fb5cdb04de9d3f2fd74961f53af53dbaf9a555113a5588f07a3859d16bdc64f0a0ff65a7b5cf89965e764e68d
+ REF v1.1.0
+ SHA512 79f8d66cdf1d8f0f50f888edf59b46671ca7439d1da0f25e5f729bd1365b4bc2969c90a377bbd25c41f84eeb231d03fb0bc7c2d5435e3e55f4cf80ae62f9b934
HEAD_REF master
- PATCHES fix-include-path.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" NNG_STATIC_LIB)
@@ -31,21 +30,11 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
# Move CMake config files to the right place
-if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
- vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
-endif()
-if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/nng)
- vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nng)
-endif()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nng)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Put the licence file where vcpkg expects it
-file(COPY
- ${SOURCE_PATH}/LICENSE.txt
- DESTINATION ${CURRENT_PACKAGES_DIR}/share/nng)
-file(RENAME
- ${CURRENT_PACKAGES_DIR}/share/nng/LICENSE.txt
- ${CURRENT_PACKAGES_DIR}/share/nng/copyright)
+configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/nng/copyright COPYONLY)
vcpkg_copy_pdbs()