blob: 9c5f3a2ffa9d9cc0577228cf28ed2bbd88f66495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= nflib
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0-23
DISTVERSIONSUFFIX= -g5cf40ed
PORTREVISION= 2
CATEGORIES= security math
MAINTAINER= yuri@FreeBSD.org
COMMENT= NTT-based fast lattice cryptography library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/MIT_LICENSE.txt
BUILD_DEPENDS= as:devel/binutils
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= unconditionally includes amd64 assembler code
LIB_DEPENDS= libmpfr.so:math/mpfr \
libgmp.so:math/gmp
USES= cmake compiler:c++11-lang localbase
USE_GITHUB= yes
GH_ACCOUNT= quarkslab
GH_PROJECT= NFLlib
USE_LDCONFIG= yes
CMAKE_ON= NFL_OPTIMIZED
OPTIONS_DEFINE= NATIVE
NATIVE_DESC= Build with native optimizations (-march=native)
post-patch-NATIVE-off:
@${REINPLACE_CMD} -e 's|-march=native|| ; s|-mtune=native||' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/CMakeCompilers.txt
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|