mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
945c965a73
Reported by: fallout
(cherry picked from commit 0de3c2d8e9
)
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
PORTNAME= liboqs
|
|
DISTVERSION= 0.7.2.20220607
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C library for quantum-resistant cryptography
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
BROKEN_aarch64= build breaks: use of undeclared identifier 'ID_AA64ISAR0_SHA3_BASE', see https://github.com/open-quantum-safe/liboqs/issues/1266
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest4>0:devel/py-pytest4@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
|
|
bash:shells/bash
|
|
|
|
USES= cmake python:test shebangfix ssl
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= open-quantum-safe
|
|
GH_TAGNAME= 38d3014dc2f74ec0f0c1a9e7e61aa4d2251adcc9
|
|
|
|
SHEBANG_GLOB= *.sh
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS OQS_DIST_BUILD \
|
|
OQS_PERMIT_UNSUPPORTED_ARCHITECTURE # trying to build on i386, powerpc, armv6, riscv64
|
|
|
|
TEST_TARGET= run_tests
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64
|
|
PLIST_SUB+= KEM_BIKE="" # BIKE algorithm is limited by architecture in .CMake/alg_support.cmake
|
|
.else
|
|
PLIST_SUB+= KEM_BIKE="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|