diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2006-05-09 06:18:39 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2006-05-09 06:18:39 +0000 |
commit | 39df57402b6ff571a68b08e06b99c36a43bd1e7f (patch) | |
tree | 4ec6ef1290e87e79fbd1b3c654ceec576e2ccf6f /security/john/Makefile | |
parent | 9cd5e2a10fcfb529b3544bcfaefeb246f9b32fb9 (diff) | |
download | ports-39df57402b6ff571a68b08e06b99c36a43bd1e7f.tar.gz ports-39df57402b6ff571a68b08e06b99c36a43bd1e7f.zip |
Notes
Diffstat (limited to 'security/john/Makefile')
-rw-r--r-- | security/john/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/security/john/Makefile b/security/john/Makefile index dafd824c3b13..35b2368bf89c 100644 --- a/security/john/Makefile +++ b/security/john/Makefile @@ -7,6 +7,7 @@ PORTNAME= john PORTVERSION= 1.7.0.2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.openwall.com/john/f/ \ ftp://ftp.ru.openwall.com/pub/projects/john/${PORTVERSION}/ @@ -24,24 +25,32 @@ USE_BZIP2= yes .include <bsd.port.pre.mk> OSNAME= ${OPSYS:L} +CFLAGS+= -DJOHN_SYSTEMWIDE=1 \ + -DJOHN_SYSTEMWIDE_HOME=\\"${DATADIR}\\" \ + -DCFG_FULL_NAME=\\"${PREFIX}/etc/${PORTNAME}.conf\\" ALL_TARGET= generic .if ${ARCH} == "i386" -. if ${MACHINE_CPU:Mmmx} -ALL_TARGET= ${OSNAME}-x86-mmx -. else +. if defined(WITHOUT_MMX) ALL_TARGET= ${OSNAME}-x86-any +. else +ALL_TARGET= ${OSNAME}-x86-mmx . endif .elif ${ARCH} == "alpha" ALL_TARGET= ${OSNAME}-alpha .endif +pre-everything:: +.if !defined(WITHOUT_MMX) && ${ARCH} == "i386" + @${ECHO_MSG} + @${ECHO_MSG} "You can disable MMX optimizations by defining WITHOUT_MMX" + @${ECHO_MSG} +.endif + post-patch: - ${REINPLACE_CMD} -e 's|$$JOHN|${DATADIR}|g' \ - ${WRKDIR}/${DISTNAME}/run/john.conf - ${REINPLACE_CMD} -e \ - 's|%%PREFIX%%|${PREFIX}|g; s|%%DATADIR%%|${DATADIR}|g'\ - ${WRKSRC}/params.h + ${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \ + -e 's|CFLAGS =.*|CFLAGS = -c ${CFLAGS}|g' \ + ${WRKSRC}/Makefile pre-build: @${ECHO} "Building for ${ALL_TARGET}" |