summaryrefslogtreecommitdiff
path: root/security/cryptopp/Makefile
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2022-09-15 23:26:18 -0400
committerJason E. Hale <jhale@FreeBSD.org>2022-09-15 23:56:45 -0400
commit5a19c0823bb11a2d2da10a3d92a574a8aafcb661 (patch)
tree9abec8ddedf592d7915de09722fc31908484d1c8 /security/cryptopp/Makefile
parentfinance/kmymoney: Update to 5.1.3 (diff)
security/cryptopp: Update to 8.7.0
Drop most of the SIMD logic. The cryptopp Makefile autodetects CPU features regardless if CPUTYPE is set and it is not possible to disable specific instruction sets. It is only possible to completely disable assembly optimizations, which is recommended for package building unless all consumer machines support the build machine's CPU instruction sets. Since version 8.1, it is no longer necessary to export -DCRYPTOPP_DISABLE_ASM to the pkgconfig file. Consumers will now build without it defined if the SIMD option is disabled. Remove old workarounds pertaining to this issue. https://github.com/weidai11/cryptopp/issues/779 Bump PORTREVISION on consumers due to ABI incompatibility. https://www.cryptopp.com/release870.html
Diffstat (limited to 'security/cryptopp/Makefile')
-rw-r--r--security/cryptopp/Makefile22
1 files changed, 3 insertions, 19 deletions
diff --git a/security/cryptopp/Makefile b/security/cryptopp/Makefile
index 193bc797cf85..f9fa20a3d824 100644
--- a/security/cryptopp/Makefile
+++ b/security/cryptopp/Makefile
@@ -1,5 +1,5 @@
PORTNAME= cryptopp
-PORTVERSION= 8.6.0
+PORTVERSION= 8.7.0
CATEGORIES= security
MASTER_SITES= http://www.cryptopp.com/
DISTNAME= cryptopp${PORTVERSION:S/.//g}
@@ -55,24 +55,8 @@ TOOLS_TEST_TARGET_OFF= test
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MSIMD}
-. if ${ARCH} == i386 || ${ARCH} == amd64
-. if !${MACHINE_CPU:Msse2}
-CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM -DCRYPTOPP_DISABLE_SSE2
-. endif
-. if !${MACHINE_CPU:Mssse3}
-CXXFLAGS+= -DCRYPTOPP_DISABLE_SSSE3
-. endif
-. if !${MACHINE_CPU:Msse41}
-CXXFLAGS+= -DCRYPTOPP_DISABLE_SSE4
-. endif
-. elif ${ARCH} == powerpc || ${ARCH:Mpowerpc64*}
-CXXFLAGS+= -DCRYPTOPP_ALTIVEC_AVAILABLE
-. endif
-.else
-CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM -DCRYPTOPP_DISABLE_SSE2 \
- -DCRYPTOPP_DISABLE_SSSE3 -DCRYPTOPP_DISABLE_SSE4 \
- -DCRYPTOPP_DISABLE_ALTIVEC
+.if !${PORT_OPTIONS:MSIMD}
+CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM
.endif
pre-configure-FULL_DEBUG-on: