summaryrefslogtreecommitdiff
path: root/security/libmerkletree/Makefile
blob: 8e8915bb684c0ae9467cbb1efdceae6f67fa4dd9 (plain)
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
# $NetBSD: Makefile,v 1.2 2020/01/18 23:35:08 rillig Exp $

DISTNAME=	libmerkletree-${VERSION}
CATEGORIES=	security
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	agc@NetBSD.org
HOMEPAGE=	https://www.NetBSD.org/
COMMENT=	Calculate and verify Merkle tree digests
LICENSE=	modified-bsd

FILESDIR=	${.CURDIR}/../../security/merkletree/files

GNU_CONFIGURE=	yes
.if !defined(BOOTSTRAP)
USE_LIBTOOL=	yes
.endif
AUTO_MKDIRS=	yes

.include "../../mk/bsd.prefs.mk"

VERSION!=	${AWK} '/\#define.*MERKLETREE_H_/ {print $$3}' ${FILESDIR}/merkletree.h

do-extract:
	${CP} -R ${FILESDIR} ${WRKSRC}
.if defined(BOOTSTRAP)
	cd ${WRKSRC} && ${CP} Makefile.lib.in Makefile.in
.else
	cd ${WRKSRC} && ${CP} Makefile.libtool.in Makefile.in
.endif

.include "../../security/libmultigest/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"