aboutsummaryrefslogtreecommitdiff
path: root/ports/cryptopp
diff options
context:
space:
mode:
Diffstat (limited to 'ports/cryptopp')
-rw-r--r--ports/cryptopp/CONTROL5
-rw-r--r--ports/cryptopp/portfile.cmake16
2 files changed, 20 insertions, 1 deletions
diff --git a/ports/cryptopp/CONTROL b/ports/cryptopp/CONTROL
index 9c11e1906..c70415dd1 100644
--- a/ports/cryptopp/CONTROL
+++ b/ports/cryptopp/CONTROL
@@ -1,4 +1,7 @@
Source: cryptopp
-Version: 8.2.0-1
+Version: 8.2.0-2
Homepage: https://github.com/weidai11/cryptopp
Description: Crypto++ is a free C++ class library of cryptographic schemes.
+
+Feature: pem-pack
+Description: Crypto++ with PEM pack
diff --git a/ports/cryptopp/portfile.cmake b/ports/cryptopp/portfile.cmake
index 36c747884..b88f2e321 100644
--- a/ports/cryptopp/portfile.cmake
+++ b/ports/cryptopp/portfile.cmake
@@ -24,6 +24,22 @@ vcpkg_from_github(
file(COPY ${CMAKE_SOURCE_PATH}/cryptopp-config.cmake DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_SOURCE_PATH}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+if("pem-pack" IN_LIST FEATURES)
+ vcpkg_from_github(
+ OUT_SOURCE_PATH PEM_PACK_SOURCE_PATH
+ REPO noloader/cryptopp-pem
+ REF 095f08ff2ef9bca7b81036a59f2395e4f08ce2e8
+ SHA512 49912758a635faca1f49665ac9552b20576b46e0283aaabc19bb012bdc80586106452018e5088b9b46967717982ca6022ca968edc4cac96a7506d2b1a3e4bf13
+ HEAD_REF master
+ )
+
+ file(GLOB PEM_PACK_FILES
+ ${PEM_PACK_SOURCE_PATH}/*.h
+ ${PEM_PACK_SOURCE_PATH}/*.cpp
+ )
+ file(COPY ${PEM_PACK_FILES} DESTINATION ${SOURCE_PATH})
+endif()
+
# disable assembly on OSX and ARM Windows to fix broken build
if (VCPKG_TARGET_IS_OSX)
set(CRYPTOPP_DISABLE_ASM "ON")