summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-01-22 07:57:11 +0000
committergrant <grant@pkgsrc.org>2004-01-22 07:57:11 +0000
commitda1eee67e965de63505f1ff0f4559081d904149e (patch)
treec5712e7064bde6c10244d5c0f2520dc7652af6ea /cross
parent05f1054e508711b511383ca79b9da8ab54438164 (diff)
downloadpkgsrc-da1eee67e965de63505f1ff0f4559081d904149e.tar.gz
don't assume the base system has bzcat, test for it and depend on
archivers/bzip2 if we don't have it.
Diffstat (limited to 'cross')
-rw-r--r--cross/mipsEEel-netbsd/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/cross/mipsEEel-netbsd/Makefile b/cross/mipsEEel-netbsd/Makefile
index 251c71bef4e..339a85264c3 100644
--- a/cross/mipsEEel-netbsd/Makefile
+++ b/cross/mipsEEel-netbsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2004/01/22 07:54:07 grant Exp $
+# $NetBSD: Makefile,v 1.10 2004/01/22 07:57:11 grant Exp $
DISTNAME= cross-${TARGET_ARCH}-${DISTVERSION}
TARGET_ARCH= mipsEEel-netbsd
@@ -8,9 +8,15 @@ CATEGORIES+= cross lang
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= Cross-compiler for NetBSD/PlayStation2 kernel
-BZCAT= /usr/bin/bzcat
USE_GNU_TOOLS+= make
+.if exists(/usr/bin/bzcat)
+BZCAT= /usr/bin/bzcat
+.else
+BZCAT= ${LOCALBASE}/bin/bzcat
+BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
+.endif
+
# We don't use CROSSBASE because the binutils are not the same as binutils
# for other cross compilers.
#USE_CROSSBASE= yes