43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
PORTNAME= liboqs
|
|
DISTVERSION= 0.15.0
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C library for quantum-resistant cryptography
|
|
WWW= https://openquantumsafe.org/ \
|
|
https://github.com/open-quantum-safe/liboqs
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \
|
|
bash:shells/bash
|
|
|
|
USES= cmake:testing python:test shebangfix ssl
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= open-quantum-safe
|
|
|
|
SHEBANG_GLOB= *.sh
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS OQS_DIST_BUILD \
|
|
OQS_PERMIT_UNSUPPORTED_ARCHITECTURE # trying to build on i386, powerpc, armv6, riscv64
|
|
|
|
CMAKE_TESTING_TARGET= run_tests
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == aarch64 || ${ARCH} == risc64 || ${ARCH} == powerpc64le
|
|
PLIST_SUB+= KEM_BIKE="" # BIKE algorithm is limited by architecture in .CMake/alg_support.cmake
|
|
.else
|
|
PLIST_SUB+= KEM_BIKE="@comment "
|
|
.endif
|
|
|
|
# tests as of 0.11.0: 9 failed, 476 passed, 558 skipped in 1182.21s (0:19:42), see https://github.com/open-quantum-safe/liboqs/issues/1986
|
|
|
|
.include <bsd.port.mk>
|