freebsd-ports/security/ophcrack/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= ophcrack
PORTVERSION= 3.7.0
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= danfe@FreeBSD.org
COMMENT= Windows password cracker based on rainbow tables
LICENSE= APACHE20 GPLv2
LICENSE_COMB= multi
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= gmake localbase ssl tar:bzip2
GNU_CONFIGURE= yes
PLIST_FILES= bin/ophcrack
PORTDOCS= AUTHORS ChangeLog README.md
OPTIONS_DEFINE= X11 GRAPH DOCS
OPTIONS_DEFAULT= X11 GRAPH
GRAPH_IMPLIES= X11
X11_DESC= Build Qt 4 GUI frontend
GRAPH_DESC= Enable graph rendering via Qwt
X11_USES= qt:4
X11_USE= QT=moc_build,qmake_build,rcc_build,uic_build,corelib,gui
X11_CONFIGURE_OFF= --disable-gui
GRAPH_LIB_DEPENDS= libqwt.so:x11-toolkits/qwt5
GRAPH_CONFIGURE_OFF= --disable-graph
post-patch:
@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \
/#include/s,"bswap\.h",<machine/endian.h>, ; \
s,bswap_([[:digit:]]+),bswap\1, ' \
${WRKSRC}/src/samdump2/bkhive.c \
${WRKSRC}/src/samdump2/hive.c \
${WRKSRC}/src/samdump2/samdump2.c \
${WRKSRC}/src/core/misc.h
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>