diff options
author | agc <agc@pkgsrc.org> | 2009-05-29 00:00:20 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2009-05-29 00:00:20 +0000 |
commit | 3e89c4ad203090a927d7be63292e0f86afe79ebe (patch) | |
tree | 2ce0e10dc1dce07cd5a4d33034c000a21b373964 /security/crack | |
parent | 6941cbd7220016ce47bc516d5bd0acaabfdc1eba (diff) | |
download | pkgsrc-3e89c4ad203090a927d7be63292e0f86afe79ebe.tar.gz |
Only link with libcrypt if we have a libcrypt - makes this package build
on Darwin.
Diffstat (limited to 'security/crack')
-rw-r--r-- | security/crack/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile index 54061d17dfe..f9e6cbdbc21 100644 --- a/security/crack/Makefile +++ b/security/crack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2009/05/01 13:43:48 zafer Exp $ +# $NetBSD: Makefile,v 1.25 2009/05/29 00:00:20 agc Exp $ DISTNAME= crack5.0 PKGNAME= crack-5.0 @@ -23,7 +23,9 @@ REPLACE_FILES.xdawg= dict/*/* CHECK_INTERPRETER_SKIP+= share/crack/extra/Dictstats.pl pre-configure: - @${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile + @if [ -f /usr/lib/libcrypt.a ]; then \ + ${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile; \ + fi pre-build: @(if [ ! -f /usr/share/dict/words ];then \ |