1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/security/libargon2/Makefile
Muhammad Moinur Rahman 5af9e49e1a security/libargon2: Impelled to share/man
Approved by:    portmgr (blanket)
2024-01-23 16:59:55 +01:00

36 lines
1.1 KiB
Makefile

PORTNAME= libargon2
PORTVERSION= 20190702
PORTREVISION= 1
CATEGORIES= security devel
MAINTAINER= hsw@bitmark.com
COMMENT= Memory hard password hashing program and library
WWW= https://github.com/P-H-C/phc-winner-argon2
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= P-H-C
GH_PROJECT= phc-winner-argon2
MAKE_JOBS_UNSAFE= yes
LIBARGON2= libargon2.so.0
MAKE_ARGS+= SO_LDFLAGS="-shared -Wl,-soname=${LIBARGON2}" \
OPTTARGET="generic" \
ARGON2_VERSION="${PORTVERSION}"
do-install:
${INSTALL_DATA} ${WRKSRC}/include/argon2.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libargon2.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libargon2.so ${STAGEDIR}${PREFIX}/lib/libargon2.so.0
${RLN} ${STAGEDIR}${PREFIX}/lib/${LIBARGON2} ${STAGEDIR}${PREFIX}/lib/libargon2.so
${INSTALL_PROGRAM} ${WRKSRC}/argon2 ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/argon2.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_DATA} ${WRKSRC}/libargon2.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libargon2.pc
.include <bsd.port.mk>