mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
Changes: https://developers.yubico.com/libfido2/Release_Notes.html https://github.com/Yubico/libfido2/blob/master/NEWS
36 lines
925 B
Makefile
36 lines
925 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libfido2
|
|
PORTVERSION= 1.4.0
|
|
CATEGORIES= security
|
|
MASTER_SITES= https://developers.yubico.com/libfido2/Releases/
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Provides library functionality for FIDO 2.0
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libcbor.so:devel/libcbor \
|
|
libhidapi.so.0:comms/hidapi
|
|
|
|
USES= cmake compiler pkgconfig ssl
|
|
|
|
CFLAGS+= -D_WITH_GETLINE
|
|
CMAKE_ON= USE_HIDAPI
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/libcrypto/d' ${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/openbsd-compat/openbsd-compat.h
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
@${REINPLACE_CMD} -e '/-Wno-unused-result/d; /-Wno-discarded-qualifiers/d' ${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|