pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/mipsEEel-netbsd don't assume the base system has...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/229dd4c2c771
branches:  trunk
changeset: 466659:229dd4c2c771
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Jan 22 07:57:11 2004 +0000

description:
don't assume the base system has bzcat, test for it and depend on
archivers/bzip2 if we don't have it.

diffstat:

 cross/mipsEEel-netbsd/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 0eabba6c89e5 -r 229dd4c2c771 cross/mipsEEel-netbsd/Makefile
--- a/cross/mipsEEel-netbsd/Makefile    Thu Jan 22 07:49:20 2004 +0000
+++ b/cross/mipsEEel-netbsd/Makefile    Thu Jan 22 07:57:11 2004 +0000
@@ -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,8 +8,14 @@
 MAINTAINER=    tech-pkg%NetBSD.org@localhost
 COMMENT=       Cross-compiler for NetBSD/PlayStation2 kernel
 
+USE_GNU_TOOLS+=        make
+
+.if exists(/usr/bin/bzcat)
 BZCAT=         /usr/bin/bzcat
-USE_GNU_TOOLS+=        make
+.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.



Home | Main Index | Thread Index | Old Index