aboutsummaryrefslogtreecommitdiff
path: root/ports/libzip
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-02-27 11:56:29 -0800
committerPhil Christensen <philc@microsoft.com>2019-02-27 11:56:29 -0800
commit2cc7fa27e57f1129d1f37ccb009563509ca25720 (patch)
tree3c75e423b71e54f6f65ec085c5d3d190d9d0d1a9 /ports/libzip
parent3830517ec7519b823f5d8c404710889c6bd00278 (diff)
parent2dfa568d186e4f0d199040929f9b3e44f27c8943 (diff)
downloadvcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.tar.gz
vcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/5254
Diffstat (limited to 'ports/libzip')
-rw-r--r--ports/libzip/CONTROL7
-rw-r--r--ports/libzip/portfile.cmake9
2 files changed, 15 insertions, 1 deletions
diff --git a/ports/libzip/CONTROL b/ports/libzip/CONTROL
index 52681ed04..c318303dc 100644
--- a/ports/libzip/CONTROL
+++ b/ports/libzip/CONTROL
@@ -1,4 +1,9 @@
Source: libzip
-Version: rel-1-5-1-vcpkg1
+Version: rel-1-5-1-vcpkg2
Build-Depends: zlib
+Default-Features: openssl
Description: A library for reading, creating, and modifying zip archives.
+
+Feature: openssl
+Build-Depends: openssl
+Description: AES (encryption) support using OpenSSL
diff --git a/ports/libzip/portfile.cmake b/ports/libzip/portfile.cmake
index de7940b3a..c4dee7221 100644
--- a/ports/libzip/portfile.cmake
+++ b/ports/libzip/portfile.cmake
@@ -8,9 +8,18 @@ vcpkg_from_github(
PATCHES cmake_dont_build_more_than_needed.patch
)
+# AES encryption
+set(USE_OPENSSL OFF)
+if("openssl" IN_LIST FEATURES)
+ set(USE_OPENSSL ON)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ OPTIONS
+ # see https://github.com/nih-at/libzip/blob/rel-1-5-1/INSTALL.md
+ -DENABLE_OPENSSL=${USE_OPENSSL}
)
vcpkg_install_cmake()