summaryrefslogtreecommitdiff
path: root/security/john
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-26 19:17:33 +0000
committergrant <grant@pkgsrc.org>2004-06-26 19:17:33 +0000
commit1379931ff3e8244e16ec9ee1b620b01f4f7696d7 (patch)
tree8b87d3dd091d8369faf153d673aa97223ca7041e /security/john
parent6556c758cf72b7d74828844e8fca53ac2e43d0fc (diff)
downloadpkgsrc-1379931ff3e8244e16ec9ee1b620b01f4f7696d7.tar.gz
use the specially provided targets for solaris sparc and i386
optimisations. this doesn't have a configure script.
Diffstat (limited to 'security/john')
-rw-r--r--security/john/Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/security/john/Makefile b/security/john/Makefile
index c63e7909fe0..66fc7a99938 100644
--- a/security/john/Makefile
+++ b/security/john/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2004/06/26 19:07:25 grant Exp $
+# $NetBSD: Makefile,v 1.8 2004/06/26 19:17:33 grant Exp $
#
DISTNAME= john-1.6
@@ -11,7 +11,27 @@ HOMEPAGE= http://www.openwall.com/john/
COMMENT= Unix Password Cracker
WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+NO_CONFIGURE= # defined
+
+.include "../../mk/compiler.mk"
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
+. if !empty(CC_VERSION:MSun)
+. if defined(SPARC_TARGET_ARCH) && ${SPARC_TARGET_ARCH} == "sparcv9"
+ALL_TARGET= solaris-sparc-v9-cc
+. else
+ALL_TARGET= solaris-sparc-v8-cc
+. endif
+. else
+ALL_TARGET= solaris-sparc-gcc
+. endif
+.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386"
+ALL_TARGET= solaris-x86-any
+.else
ALL_TARGET= generic
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../run/john ${PREFIX}/bin