mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 20:46:49 +08:00
[minizip] Enable decrypt support for password-encrypted ZIP files. (#5010)
* Enable support for password-encrypted ZIP files. * [minizip] combine patch with in vcpkg_from_github
This commit is contained in:
parent
2011b8512b
commit
672ea9a1b3
16
ports/minizip/minizip.patch
Normal file
16
ports/minizip/minizip.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
|
||||
index f12e3329..bfc05f77 100644
|
||||
--- a/contrib/minizip/unzip.c
|
||||
+++ b/contrib/minizip/unzip.c
|
||||
@@ -68,10 +68,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
-#ifndef NOUNCRYPT
|
||||
- #define NOUNCRYPT
|
||||
-#endif
|
||||
-
|
||||
#include "zlib.h"
|
||||
#include "unzip.h"
|
||||
|
||||
|
@ -10,6 +10,7 @@ vcpkg_from_github(
|
||||
REF v1.2.11
|
||||
SHA512 104c62ed1228b5f1199bc037081861576900eb0697a226cafa62a35c4c890b5cb46622e399f9aad82ee5dfb475bae26ae75e2bd6da3d261361b1c8b996970faf
|
||||
HEAD_REF master
|
||||
PATCHES minizip.patch # enable decrypt support for password-encrypted ZIP files
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
Loading…
Reference in New Issue
Block a user