diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2015-10-15 00:39:27 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2015-10-15 00:39:27 +0800 |
commit | dd3b24663fd5b046c67205b95b633170a2b4e52d (patch) | |
tree | a3dfc4eff392230e4a864308531c0eda7a505f3e /mail | |
parent | 29cfbe61f39a014f21bfcc23e636459713051146 (diff) | |
download | freebsd-ports-gnome-dd3b24663fd5b046c67205b95b633170a2b4e52d.tar.gz freebsd-ports-gnome-dd3b24663fd5b046c67205b95b633170a2b4e52d.tar.zst freebsd-ports-gnome-dd3b24663fd5b046c67205b95b633170a2b4e52d.zip |
Fix build on non-amd64.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/rspamd/Makefile | 1 | ||||
-rw-r--r-- | mail/rspamd/files/patch-src-libcryptobox-CMakeLists.txt | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile index 157a3008ff5e..bc0750384f04 100644 --- a/mail/rspamd/Makefile +++ b/mail/rspamd/Makefile @@ -2,6 +2,7 @@ PORTNAME= rspamd PORTVERSION= 1.0.5 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://rspamd.com/downloads/ diff --git a/mail/rspamd/files/patch-src-libcryptobox-CMakeLists.txt b/mail/rspamd/files/patch-src-libcryptobox-CMakeLists.txt new file mode 100644 index 000000000000..baba60433e08 --- /dev/null +++ b/mail/rspamd/files/patch-src-libcryptobox-CMakeLists.txt @@ -0,0 +1,36 @@ +diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt +index 80e922f..ccdfba2 100644 +--- src/libcryptobox/CMakeLists.txt ++++ src/libcryptobox/CMakeLists.txt +@@ -9,6 +9,9 @@ SET(POLYSRC ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/poly1305.c) + SET(SIPHASHSRC ${CMAKE_CURRENT_SOURCE_DIR}/siphash/siphash.c + ${CMAKE_CURRENT_SOURCE_DIR}/siphash/ref.c) + ++SET(CURVESRC ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/ref.c ++ ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519.c) ++ + # For now we support only x86_64 architecture with optimizations + IF(${ARCH} STREQUAL "x86_64") + SET(ASM_CODE "vpaddq %ymm0, %ymm0, %ymm0") +@@ -41,19 +44,14 @@ IF(${ARCH} STREQUAL "x86_64") + ASM_OP(HAVE_DOLLARMACRO "dollar macro convention") + + SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/ref-64.c) ++ SET(CURVESRC ${CURVESRC} ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna-c64.c) + ELSEIF(${ARCH} STREQUAL "i386") + SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/ref-32.c) +- ++ SET(CURVESRC ${CURVESRC} ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna.c) + ELSE() +- SET(CURVESRC ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/ref.c) + SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/ref-32.c) + ENDIF() + +-SET(CURVESRC ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna-c64.c +- ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna.c +- ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/ref.c +- ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519.c) +- + IF(HAVE_AVX2) + SET(CHACHASRC ${CHACHASRC} ${CMAKE_CURRENT_SOURCE_DIR}/chacha20/avx2.S) + SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/avx2.S) |