summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2009-05-29 00:00:20 +0000
committeragc <agc@pkgsrc.org>2009-05-29 00:00:20 +0000
commit3e89c4ad203090a927d7be63292e0f86afe79ebe (patch)
tree2ce0e10dc1dce07cd5a4d33034c000a21b373964 /security
parent6941cbd7220016ce47bc516d5bd0acaabfdc1eba (diff)
downloadpkgsrc-3e89c4ad203090a927d7be63292e0f86afe79ebe.tar.gz
Only link with libcrypt if we have a libcrypt - makes this package build
on Darwin.
Diffstat (limited to 'security')
-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 \