diff --git a/security/nflib/Makefile b/security/nflib/Makefile index 686d3f61c5e5..4f8abceb5760 100644 --- a/security/nflib/Makefile +++ b/security/nflib/Makefile @@ -1,40 +1,30 @@ PORTNAME= nflib DISTVERSIONPREFIX= v DISTVERSION= 1.0.0-23 DISTVERSIONSUFFIX= -g5cf40ed PORTREVISION= 3 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org COMMENT= NTT-based fast lattice cryptography library WWW= https://github.com/quarkslab/NFLlib 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 +BUILD_DEPENDS= as:devel/binutils LIB_DEPENDS= libmpfr.so:math/mpfr \ libgmp.so:math/gmp -USES= cmake compiler:c++11-lang localbase +USES= cmake:testing compiler:c++11-lang localbase USE_GITHUB= yes GH_ACCOUNT= quarkslab GH_PROJECT= NFLlib USE_LDCONFIG= yes CMAKE_ON= NFL_OPTIMIZED -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