- Fix build with clang < 3.6 (which doesn't recognize -fforce-addr option)

- Strip binary

PR:		200035
Submitted by:	amdmi3
Approved by:	maintainer timeout (lasg@lasg.dk, 2 weeks)
This commit is contained in:
Dmitry Marakasov 2015-05-26 16:00:41 +00:00
parent 246d2efa62
commit 4cae4c46b1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=387488

View file

@ -3,7 +3,7 @@
PORTNAME= mdcrack
PORTVERSION= 1.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://membres.lycos.fr/mdcrack/download/
@ -13,4 +13,16 @@ COMMENT= Bruteforce password MD5 hashes
ALL_TARGET= little
PLIST_FILES= bin/mdcrack
.include <bsd.port.mk>
USES= compiler:features
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 36
post-patch:
@${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/Makefile
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.post.mk>