summaryrefslogtreecommitdiff
path: root/security/crack/Makefile
diff options
context:
space:
mode:
authoragc <agc>2009-05-29 00:00:20 +0000
committeragc <agc>2009-05-29 00:00:20 +0000
commit27c9d95f10a44a6b8a27a796db2d0ddcbbf06731 (patch)
tree2ce0e10dc1dce07cd5a4d33034c000a21b373964 /security/crack/Makefile
parent868694ae8ab07ae59642d08de03f5afb2c8e3f5b (diff)
downloadpkgsrc-27c9d95f10a44a6b8a27a796db2d0ddcbbf06731.tar.gz
Only link with libcrypt if we have a libcrypt - makes this package build
on Darwin.
Diffstat (limited to 'security/crack/Makefile')
-rw-r--r--security/crack/Makefile6
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 \