diff options
Diffstat (limited to 'security/cryptopp')
-rw-r--r-- | security/cryptopp/Makefile | 9 | ||||
-rw-r--r-- | security/cryptopp/distinfo | 6 | ||||
-rw-r--r-- | security/cryptopp/files/patch-GNUmakefile | 29 | ||||
-rw-r--r-- | security/cryptopp/files/patch-cpu.h | 17 | ||||
-rw-r--r-- | security/cryptopp/files/patch-sse-simd.cpp | 13 | ||||
-rw-r--r-- | security/cryptopp/pkg-plist | 26 |
6 files changed, 44 insertions, 56 deletions
diff --git a/security/cryptopp/Makefile b/security/cryptopp/Makefile index bb25b1935e9a..e5f9b1cbe610 100644 --- a/security/cryptopp/Makefile +++ b/security/cryptopp/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= cryptopp -PORTVERSION= 7.0.0 -PORTREVISION= 2 +PORTVERSION= 8.2.0 CATEGORIES= security MASTER_SITES= http://www.cryptopp.com/ DISTNAME= cryptopp${PORTVERSION:S/.//g} @@ -30,12 +29,12 @@ SOVERSION= ${PORTVERSION:R:R} PLIST_SUB+= SOVERSION=${SOVERSION} \ PORTVERSION=${PORTVERSION} -OPTIONS_DEFINE= DEBUG DOCS FULL_DEBUG THREADS TOOLS +OPTIONS_DEFINE= DEBUG DOCS FULL_DEBUG TOOLS OPTIONS_DEFINE_amd64= SIMD OPTIONS_DEFINE_i386= SIMD OPTIONS_DEFINE_powerpc= SIMD OPTIONS_DEFINE_powerpc64= SIMD -OPTIONS_DEFAULT= THREADS TOOLS +OPTIONS_DEFAULT= TOOLS OPTIONS_SUB= yes # Always compile with -DNDEBUG for release. Otherwise, sensitive @@ -52,8 +51,6 @@ TOOLS_MAKE_ENV= CRYPTOPP_DATA_DIR=${DATADIR}/ TOOLS_ALL_TARGET= cryptest.exe TOOLS_TEST_TARGET_OFF= test -THREADS_LDFLAGS= -lpthread - .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MSIMD} diff --git a/security/cryptopp/distinfo b/security/cryptopp/distinfo index b58dfc78260a..15f72bee6bcf 100644 --- a/security/cryptopp/distinfo +++ b/security/cryptopp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1534123149 -SHA256 (cryptopp700.zip) = a4bc939910edd3d29fb819a6fc0dfdc293f686fa62326f61c56d72d0a366ceb0 -SIZE (cryptopp700.zip) = 7296665 +TIMESTAMP = 1575820181 +SHA256 (cryptopp820.zip) = 03f0e2242e11b9d19b28d0ec5a3fa8ed5cc7b27640e6bed365744f593e858058 +SIZE (cryptopp820.zip) = 8859815 diff --git a/security/cryptopp/files/patch-GNUmakefile b/security/cryptopp/files/patch-GNUmakefile index 4e7fb30ea3a7..3e73b7ea6372 100644 --- a/security/cryptopp/files/patch-GNUmakefile +++ b/security/cryptopp/files/patch-GNUmakefile @@ -2,19 +2,28 @@ We need to export the CRYPTOPP_DISABLE_ASM flag if cryptopp was not built with SIMD support. Certain functions prototypes are guarded by this flag and build failures will arise in other ports if not set appropriately. ---- GNUmakefile.orig 2018-04-08 08:47:12 UTC +--- GNUmakefile.orig 2019-04-28 23:36:50 UTC +++ GNUmakefile -@@ -90,7 +90,7 @@ SUNCC_512_OR_LATER := $(shell echo "$(SUNCC_VERSION)" - SUNCC_513_OR_LATER := $(shell echo "$(SUNCC_VERSION)" | $(GREP) -i -c -E "CC: (Sun|Studio) .* (5\.1[3-9]|5\.[2-9]|6\.)") +@@ -57,7 +57,7 @@ ifeq ($(SYSTEMX),) + SYSTEMX := $(shell uname -s 2>/dev/null) + endif - # Enable shared object versioning for Linux --HAS_SOLIB_VERSION := $(IS_LINUX) -+HAS_SOLIB_VERSION := 1 +-IS_LINUX := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "Linux") ++IS_LINUX := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c -E "Linux|FreeBSD") + IS_HURD := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c -E "GNU|Hurd") + IS_MINGW := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "MinGW") + IS_CYGWIN := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "Cygwin") +@@ -742,7 +742,7 @@ endif - # Fixup SunOS - ifeq ($(IS_SUN),1) -@@ -957,7 +957,7 @@ libcryptopp.pc: - @echo 'Version: 7.0' >> libcryptopp.pc + # Use -pthread whenever it is available. See http://www.hpl.hp.com/techreports/2004/HPL-2004-209.pdf + # http://stackoverflow.com/questions/2127797/gcc-significance-of-pthread-flag-when-compiling +-ifeq ($(DETECT_FEATURES),1) ++ifeq (1,1) + ifeq ($(XLC_COMPILER),1) + ifeq ($(findstring -qthreaded,$(CXXFLAGS)),) + TPROG = TestPrograms/test_pthreads.cxx +@@ -1341,7 +1341,7 @@ libcryptopp.pc: + @echo 'Version: 8.2' >> libcryptopp.pc @echo 'URL: https://cryptopp.com/' >> libcryptopp.pc @echo '' >> libcryptopp.pc - @echo 'Cflags: -I$${includedir}' >> libcryptopp.pc diff --git a/security/cryptopp/files/patch-cpu.h b/security/cryptopp/files/patch-cpu.h deleted file mode 100644 index 11cc6b1df9fb..000000000000 --- a/security/cryptopp/files/patch-cpu.h +++ /dev/null @@ -1,17 +0,0 @@ -Fix build with SIMD on FreeBSD 10.x - ---- cpu.h.orig 2018-04-08 08:47:11 UTC -+++ cpu.h -@@ -614,7 +614,12 @@ inline int GetCacheLineSize() - #define GNU_AS2(x, y) #x ", " #y ";" NEW_LINE - #define GNU_AS3(x, y, z) #x ", " #y ", " #z ";" NEW_LINE - #define GNU_ASL(x) "\n" #x ":" NEW_LINE -+ // clang 5.0.0 and apple clang 9.0.0 don't support numerical backward jumps -+#if (CRYPTOPP_LLVM_CLANG_VERSION >= 30000) || (CRYPTOPP_APPLE_CLANG_VERSION >= 90000) -+ #define GNU_ASJ(x, y, z) ATT_PREFIX ";" NEW_LINE #x " " #y #z ";" NEW_LINE INTEL_PREFIX ";" NEW_LINE -+#else - #define GNU_ASJ(x, y, z) #x " " #y #z ";" NEW_LINE -+#endif - #define AS1(x) GNU_AS1(x) - #define AS2(x, y) GNU_AS2(x, y) - #define AS3(x, y, z) GNU_AS3(x, y, z) diff --git a/security/cryptopp/files/patch-sse-simd.cpp b/security/cryptopp/files/patch-sse-simd.cpp deleted file mode 100644 index 52eddb09bf38..000000000000 --- a/security/cryptopp/files/patch-sse-simd.cpp +++ /dev/null @@ -1,13 +0,0 @@ -Fix build without SIMD on FreeBSD 10.x - ---- sse-simd.cpp.orig 2018-04-08 08:47:12 UTC -+++ sse-simd.cpp -@@ -23,7 +23,7 @@ - #endif - - // Needed by SunCC and MSVC --#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) -+#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) && defined(CRYPTOPP_SSE2_ASM_AVAILABLE) - # include <emmintrin.h> - #endif - diff --git a/security/cryptopp/pkg-plist b/security/cryptopp/pkg-plist index bbe3232974fa..39c7b05697ba 100644 --- a/security/cryptopp/pkg-plist +++ b/security/cryptopp/pkg-plist @@ -1,13 +1,15 @@ %%TOOLS%%bin/cryptest include/cryptopp/3way.h include/cryptopp/adler32.h -include/cryptopp/adv-simd.h +include/cryptopp/adv_simd.h include/cryptopp/aes.h +include/cryptopp/aes_armv4.h include/cryptopp/algebra.h include/cryptopp/algparam.h include/cryptopp/arc4.h include/cryptopp/argnames.h include/cryptopp/aria.h +include/cryptopp/arm_simd.h include/cryptopp/asn.h include/cryptopp/authenc.h include/cryptopp/base32.h @@ -22,17 +24,24 @@ include/cryptopp/cast.h include/cryptopp/cbcmac.h include/cryptopp/ccm.h include/cryptopp/chacha.h +include/cryptopp/chachapoly.h +include/cryptopp/cham.h include/cryptopp/channels.h include/cryptopp/cmac.h include/cryptopp/config.h include/cryptopp/cpu.h include/cryptopp/crc.h include/cryptopp/cryptlib.h +include/cryptopp/darn.h include/cryptopp/default.h include/cryptopp/des.h include/cryptopp/dh.h include/cryptopp/dh2.h include/cryptopp/dmac.h +include/cryptopp/donna.h +include/cryptopp/donna_32.h +include/cryptopp/donna_64.h +include/cryptopp/donna_sse.h include/cryptopp/drbg.h include/cryptopp/dsa.h include/cryptopp/eax.h @@ -58,7 +67,10 @@ include/cryptopp/gfpcrypt.h include/cryptopp/gost.h include/cryptopp/gzip.h include/cryptopp/hashfwd.h +include/cryptopp/hc128.h +include/cryptopp/hc256.h include/cryptopp/hex.h +include/cryptopp/hight.h include/cryptopp/hkdf.h include/cryptopp/hmac.h include/cryptopp/hmqv.h @@ -69,6 +81,7 @@ include/cryptopp/integer.h include/cryptopp/iterhash.h include/cryptopp/kalyna.h include/cryptopp/keccak.h +include/cryptopp/lea.h include/cryptopp/lubyrack.h include/cryptopp/luc.h include/cryptopp/mars.h @@ -85,7 +98,6 @@ include/cryptopp/mqueue.h include/cryptopp/mqv.h include/cryptopp/naclite.h include/cryptopp/nbtheory.h -include/cryptopp/network.h include/cryptopp/nr.h include/cryptopp/oaep.h include/cryptopp/oids.h @@ -97,11 +109,12 @@ include/cryptopp/pch.h include/cryptopp/pkcspad.h include/cryptopp/poly1305.h include/cryptopp/polynomi.h -include/cryptopp/ppc-simd.h +include/cryptopp/ppc_simd.h include/cryptopp/pssr.h include/cryptopp/pubkey.h include/cryptopp/pwdbased.h include/cryptopp/queue.h +include/cryptopp/rabbit.h include/cryptopp/rabin.h include/cryptopp/randpool.h include/cryptopp/rc2.h @@ -125,7 +138,9 @@ include/cryptopp/serpentp.h include/cryptopp/sha.h include/cryptopp/sha3.h include/cryptopp/shacal2.h +include/cryptopp/shake.h include/cryptopp/shark.h +include/cryptopp/simeck.h include/cryptopp/simon.h include/cryptopp/simple.h include/cryptopp/siphash.h @@ -133,7 +148,6 @@ include/cryptopp/skipjack.h include/cryptopp/sm3.h include/cryptopp/sm4.h include/cryptopp/smartptr.h -include/cryptopp/socketft.h include/cryptopp/sosemanuk.h include/cryptopp/speck.h include/cryptopp/square.h @@ -143,18 +157,16 @@ include/cryptopp/tea.h include/cryptopp/threefish.h include/cryptopp/tiger.h include/cryptopp/trap.h -include/cryptopp/trdlocal.h include/cryptopp/trunhash.h include/cryptopp/ttmac.h include/cryptopp/tweetnacl.h include/cryptopp/twofish.h include/cryptopp/validate.h include/cryptopp/vmac.h -include/cryptopp/wait.h include/cryptopp/wake.h include/cryptopp/whrlpool.h -include/cryptopp/winpipes.h include/cryptopp/words.h +include/cryptopp/xed25519.h include/cryptopp/xtr.h include/cryptopp/xtrcrypt.h include/cryptopp/zdeflate.h |