Import an upstream commit fixing the CPU feature detection code. Obtained from: https://github.com/open-quantum-safe/liboqs/pull/1267 Approved by: yuri (maintainer) Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38862
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= liboqs
|
|
DISTVERSION= 0.7.2-20220607
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
|
|
PATCH_SITES= https://github.com/open-quantum-safe/liboqs/pull/1267/commits/
|
|
PATCHFILES= 676c0f53fd7d5601636cf698f04131b832f9d672.diff:-p1
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C library for quantum-resistant cryptography
|
|
WWW= https://openquantumsafe.org/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
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>
|