pkgsrc/security/argon2/Makefile
nia 1e1e382dbd argon2: Update to 20190702
Add a pkg-config file.
2019-08-07 12:58:49 +00:00

38 lines
1.3 KiB
Makefile

# $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"