aboutsummaryrefslogtreecommitdiff
path: root/ports/cryptopp
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-06-11 16:00:07 +0800
committerGitHub <noreply@github.com>2020-06-11 01:00:07 -0700
commitcb537a2aeef96e96663d4b2fa3a6f18dcd1b5457 (patch)
tree1140aa6313490c4dd3d6c5b60b5e6ac100a86c84 /ports/cryptopp
parent1901067fc673c25b76a67cc2d18d0d827e9e59b0 (diff)
downloadvcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.tar.gz
vcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.zip
[licensepp] Add new port (#11711)
* [licensepp] Add new port * [cryptopp-pem] Update to a newer version that will make lincensepp happy * Revert "[cryptopp-pem] Update to a newer version that will make lincensepp happy" This reverts commit 726e3ce3d20bc6266bc7bf63cb35572fe297869f. This version can not compile with cryptopp. * [licensepp] Finish it * [licensepp] Fix interface include directory * [licensepp] Fixup cmake targets * [licensepp] -O3 is not recognised by msvc * [licensepp] Fix _iterator_debug_level value mismatch * [licensepp] Update patch file * [licensepp] Fail fast on UWP * [licensepp] Simplify patch file * [licensepp] Tabs -> Spaces
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")