freebsd-ports/security/hashcat-legacy/Makefile
Mathieu Arnold 4a3bebcae1 Add EXAMPLES options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:15:47 +00:00

42 lines
1,012 B
Makefile

# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
# $FreeBSD$
PORTNAME= hashcat-legacy
PORTVERSION= 2.00
PORTREVISION= 5
CATEGORIES= security
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Advanced CPU-based password recovery utility
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/docs/license.txt
LIB_DEPENDS= libgmp.so:math/gmp
USE_GITHUB= yes
GH_ACCOUNT= hashcat
USE_GCC= any
USES= gmake
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= uses amd64 instructions
ALL_TARGET= posix64 posixXOP
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -r 's|^(CC_.*[[:blank:]]*=[[:blank:]]*)gcc[[:blank:]]*$$|\1${CC}|' ${WRKSRC}/src/Makefile
do-install:
.for v in 64 XOP
${INSTALL_PROGRAM} ${WRKSRC}/hashcat-cli${v}.bin ${STAGEDIR}${LOCALBASE}/bin
.endfor
(cd ${WRKSRC} && ${COPYTREE_SHARE} "charsets rules tables salts" ${STAGEDIR}${DATADIR})
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>