summaryrefslogtreecommitdiff
path: root/security/argon2/Makefile
blob: df07e6901fd04ca90059e7ad2bb2982b8051dd91 (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
36
37
38
# $NetBSD: Makefile,v 1.5 2019/08/07 12:58:49 nia Exp $

DISTNAME=	${GITHUB_PROJECT}
PKGNAME=	${DISTNAME:S/phc-winner-//}-${GITHUB_TAG}
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_GITHUB:=P-H-C/}
GITHUB_PROJECT=	phc-winner-argon2
GITHUB_TAG=	20190702

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://password-hashing.net/
COMMENT=	Password hash Argon2
LICENSE=	cc0-1.0-universal OR apache-2.0

USE_TOOLS+=	gmake
TEST_TARGET=	test

INSTALLATION_DIRS+=	bin include lib
INSTALLATION_DIRS+=	lib/pkgconfig
INSTALLATION_DIRS+=	${PKGMANDIR}/man1
INSTALLATION_DIRS+=	share/doc/argon2

OPSYSVARS+=		SO_SUFFIX
SO_SUFFIX.Darwin=	dylib
SO_SUFFIX.*=		so
PLIST_SUBST+=		SO_SUFFIX=${SO_SUFFIX:Q}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/argon2 ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/include/argon2.h ${DESTDIR}${PREFIX}/include
	${INSTALL_LIB} ${WRKSRC}/libargon2.a ${DESTDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/libargon2.${SO_SUFFIX} ${DESTDIR}${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/libargon2.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
	${INSTALL_MAN} ${WRKSRC}/man/argon2.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKSRC}/argon2-specs.pdf ${DESTDIR}${PREFIX}/share/doc/argon2
	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/argon2

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