freebsd-ports/security/hashcat/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

51 lines
1.4 KiB
Makefile

PORTNAME= hashcat
PORTVERSION= 6.2.6
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= security
MAINTAINER= se@FreeBSD.org
COMMENT= Advanced CPU-based password recovery utility
WWW= https://hashcat.net/hashcat/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/docs/license.txt
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= fails to compile: compiling for big-endian architecture not supported
BUILD_DEPENDS= minizip:archivers/minizip
USES= compiler:c11 gmake iconv localbase python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= KhronosGroup:opencl Cyan4973:xxhash
GH_PROJECT= OpenCL-Headers:opencl xxHash:xxhash
GH_SUBDIR= deps/git/OpenCL-Headers:opencl deps/git/xxHash:xxhash
GH_TAGNAME= 1d3dc4e:opencl c0e86bc:xxhash
PYTHON_NO_DEPENDS= yes
SHEBANG_FILES= extra/tab_completion/install tools/*.py
MAKE_ARGS+= SHARED=1 \
CC="${CC}" \
LFLAGS_NATIVE="${LDFLAGS} -lpthread -lm" \
CFLAGS_NATIVE="${CFLAGS} -Iinclude -IOpenCL -Ideps/LZMA-SDK/C \
-Ideps/git/OpenCL-Headers"
ALL_TARGET= default
CFLAGS_aarch64+= -march=armv8-a+crc+crypto
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= BRAIN DOCS
OPTIONS_DEFAULT= BRAIN
BRAIN_DESC= Build Hashcat Brain
BRAIN_MAKE_ARGS_OFF= ENABLE_BRAIN=0
BRAIN_CFLAGS= -DWITH_BRAIN -Ideps/git/xxHash
pre-install:
${STRIP_CMD} ${WRKSRC}/libhashcat.so.${PORTVERSION}
${STRIP_CMD} ${WRKSRC}/modules/*.so
${STRIP_CMD} ${WRKSRC}/hashcat
.include <bsd.port.mk>