aboutsummaryrefslogtreecommitdiff
path: root/security/ykpers/Makefile
blob: 2f06f778cbe13fd36f0c90d2c85d2e21f2503c32 (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
# $FreeBSD$

PORTNAME=	ykpers
PORTVERSION=	1.17.1
CATEGORIES=	security
MASTER_SITES=	http://opensource.yubico.com/yubikey-personalization/releases/

MAINTAINER=	matt@mjslabs.com
COMMENT=	Library and tool for personalization of Yubico's YubiKey

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libyubikey.so:security/libyubikey

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USES=		libtool pathfix pkgconfig

PLIST_FILES=	bin/ykchalresp \
		bin/ykinfo \
		bin/ykpersonalize \
		include/ykpers-1/ykcore.h \
		include/ykpers-1/ykdef.h \
		include/ykpers-1/ykpbkdf2.h \
		include/ykpers-1/ykpers.h \
		include/ykpers-1/ykpers-version.h \
		include/ykpers-1/ykstatus.h \
		lib/libykpers-1.so \
		lib/libykpers-1.so.1 \
		lib/libykpers-1.so.${PORTVERSION} \
		libdata/pkgconfig/ykpers-1.pc \
		man/man1/ykchalresp.1.gz \
		man/man1/ykinfo.1.gz \
		man/man1/ykpersonalize.1.gz

OPTIONS_DEFINE=	STATIC

STATIC_CONFIGURE_ENABLE=	static
STATIC_PLIST_FILES=		lib/libykpers-1.a

MAKE_JOBS_UNSAFE=	yes

LDFLAGS+=	-L/usr/lib

regression-test: build
	@(cd ${WRKSRC}; ${MAKE} check)

.include <bsd.port.mk>