blob: 36ad02e07c85fd015e03f225a1024109c047636e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
PORTNAME= yubico-piv-tool
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://developers.yubico.com/yubico-piv-tool/Releases/
MAINTAINER= ume@FreeBSD.org
COMMENT= Yubico PIV tool
WWW= https://developers.yubico.com/yubico-piv-tool/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/check.pc:devel/check \
gengetopt:devel/gengetopt \
help2man:misc/help2man
LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
USES= compiler cmake:noninja gmake libtool pathfix pkgconfig ssl
USE_LDCONFIG= yes
CMAKE_ARGS= -D LIBCRYPTO_CFLAGS="-I${OPENSSLINC}" \
-D LIBCRYPTO_LDFLAGS="-L${OPENSSLLIB} -lcrypto -L${LOCALBASE}/lib -pthread" \
-D YKPIV_INSTALL_MAN_DIR="${LOCALBASE}/share/man" \
-D YKPIV_INSTALL_PKGCONFIG_DIR="${LOCALBASE}/libdata/pkgconfig"
PLIST_FILES= bin/yubico-piv-tool \
include/ykpiv/ykpiv-config.h \
include/ykpiv/ykpiv.h \
lib/libykcs11.a \
lib/libykcs11.so \
lib/libykcs11.so.2 \
lib/libykcs11.so.${PORTVERSION} \
lib/libykpiv.a \
lib/libykpiv.so \
lib/libykpiv.so.2 \
lib/libykpiv.so.${PORTVERSION} \
libdata/pkgconfig/ykcs11.pc \
libdata/pkgconfig/ykpiv.pc \
share/man/man1/yubico-piv-tool.1.gz
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
post-patch:
@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
${WRKSRC}/lib/ykpiv.c \
${WRKSRC}/lib/util.c \
${WRKSRC}/lib/internal.c \
${WRKSRC}/tool/yubico-piv-tool.c
.endif
.include <bsd.port.post.mk>
|