2020-01-16 05:49:23 +00:00
|
|
|
PORTNAME= helib
|
|
|
|
DISTVERSIONPREFIX= v
|
2021-10-02 19:50:24 +00:00
|
|
|
DISTVERSION= 2.2.1
|
2021-12-20 21:33:51 +00:00
|
|
|
PORTREVISION= 1
|
2020-01-16 05:49:23 +00:00
|
|
|
CATEGORIES= security
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Implementation of homomorphic encryption
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
|
2021-07-11 22:31:17 +00:00
|
|
|
NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc powerpcspe
|
2020-01-18 19:05:05 +00:00
|
|
|
|
2020-01-16 05:49:23 +00:00
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp \
|
|
|
|
libntl.so:math/ntl
|
|
|
|
|
2021-01-24 05:54:44 +00:00
|
|
|
USES= cmake compiler:c++17-lang
|
2020-01-16 05:49:23 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= homenc
|
|
|
|
GH_PROJECT= HElib
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CMAKE_ON= BUILD_SHARED
|
2021-01-24 05:54:44 +00:00
|
|
|
CMAKE_ARGS= -DNTL_DIR=${LOCALBASE}
|
2020-01-16 05:49:23 +00:00
|
|
|
|
2020-12-14 00:17:15 +00:00
|
|
|
do-test:
|
|
|
|
@cd ${BUILD_WRKSRC} && \
|
|
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DENABLE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
|
|
|
|
|
2020-01-16 05:49:23 +00:00
|
|
|
.include <bsd.port.mk>
|