From 5d46defdbae242e469bc305f565556ba5bde7e0f Mon Sep 17 00:00:00 2001 From: grant Date: Thu, 22 Jan 2004 07:57:11 +0000 Subject: don't assume the base system has bzcat, test for it and depend on archivers/bzip2 if we don't have it. --- cross/mipsEEel-netbsd/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cross') 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 -- cgit v1.2.3