aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-05-19 23:27:33 -0700
committerGitHub <noreply@github.com>2018-05-19 23:27:33 -0700
commite428da2b23c54a399004afbf4276e4ddbf901618 (patch)
tree544120b4d76dc65795229973aca7775f13021f61
parentf796ee4d6034b448967085ea6b6e1dcb53fda8e6 (diff)
parent461e886d268eddee569ce81e76ca9c956a0f2ea6 (diff)
downloadvcpkg-e428da2b23c54a399004afbf4276e4ddbf901618.tar.gz
vcpkg-e428da2b23c54a399004afbf4276e4ddbf901618.zip
Merge pull request #3523 from fcharlie/fcharlie_update
[nghttp2] update to 1.32.0
-rw-r--r--ports/nghttp2/CONTROL2
-rw-r--r--ports/nghttp2/enable-static.patch18
-rw-r--r--ports/nghttp2/portfile.cmake4
3 files changed, 14 insertions, 10 deletions
diff --git a/ports/nghttp2/CONTROL b/ports/nghttp2/CONTROL
index f4ff49ae0..0214aa9a3 100644
--- a/ports/nghttp2/CONTROL
+++ b/ports/nghttp2/CONTROL
@@ -1,3 +1,3 @@
Source: nghttp2
-Version: 1.30.0-1
+Version: 1.32.0
Description: Implementation of the Hypertext Transfer Protocol version 2 in C
diff --git a/ports/nghttp2/enable-static.patch b/ports/nghttp2/enable-static.patch
index 3b58979cf..18e58daeb 100644
--- a/ports/nghttp2/enable-static.patch
+++ b/ports/nghttp2/enable-static.patch
@@ -1,23 +1,27 @@
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
-index 0846d06..290679f 100644
+index 17e422b..b2e7a6e 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
-@@ -38,7 +38,7 @@ if(WIN32)
+@@ -37,8 +37,8 @@ if(WIN32)
+ set(NGHTTP2_RES ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
endif()
- # Public shared library
+-# Public shared library
-add_library(nghttp2 SHARED ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
++# Public library
+add_library(nghttp2 ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
set_target_properties(nghttp2 PROPERTIES
COMPILE_FLAGS "${WARNCFLAGS}"
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
-@@ -48,6 +48,9 @@ target_include_directories(nghttp2 INTERFACE
- "${CMAKE_CURRENT_BINARY_DIR}/includes"
+@@ -49,6 +49,10 @@ target_include_directories(nghttp2 INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
)
+
+if(NOT BUILD_SHARED_LIBS)
+ target_compile_definitions(nghttp2 PUBLIC "-DNGHTTP2_STATICLIB")
+endif()
-
- if(HAVE_CUNIT)
++
+ if(HAVE_CUNIT OR ENABLE_STATIC_LIB)
# Static library (for unittests because of symbol visibility)
+ add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES})
+
diff --git a/ports/nghttp2/portfile.cmake b/ports/nghttp2/portfile.cmake
index 3c082c191..c2caa520c 100644
--- a/ports/nghttp2/portfile.cmake
+++ b/ports/nghttp2/portfile.cmake
@@ -1,7 +1,7 @@
include(vcpkg_common_functions)
set(LIB_NAME nghttp2)
-set(LIB_VERSION 1.30.0)
+set(LIB_VERSION 1.32.0)
set(LIB_FILENAME ${LIB_NAME}-${LIB_VERSION}.tar.gz)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/${LIB_NAME}-${LIB_VERSION})
@@ -9,7 +9,7 @@ set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/${LIB_NAME}-${LIB_VERSION})
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/nghttp2/nghttp2/releases/download/v${LIB_VERSION}/${LIB_FILENAME}"
FILENAME "${LIB_FILENAME}"
- SHA512 26ce717a085e9fbdf8e644d4c8ab6961ca60029c4dfa112c9932523d1c4cc3f40fda4283afddf78a649e7f6fb7d3f3bfce3197186a4f70819b5996e8158089da
+ SHA512 f5bd36230cd42bd544d75b71af44f2fa2798363ddc1efb05499f6c8e86d54acfe6fde20f3d544ed560324a30141408dba6bc7e03e5f03ee7f7df532fb21aecbd
)
vcpkg_extract_source_archive(${ARCHIVE})