diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-03-18 21:53:29 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-03-18 21:53:29 +0000 |
commit | 291ecdb5f0bb0374ce3cb55e5feda841f3473735 (patch) | |
tree | 9764ed92c4b1102b56dfafb21f3a027eb17c4c3c /archivers/bzip2/Makefile | |
parent | 07ada1cbd555bf9ccc932233dfa50af3f66baff2 (diff) | |
download | pkgsrc-291ecdb5f0bb0374ce3cb55e5feda841f3473735.tar.gz |
Make this compile on Irix with the MIPSPro compiler by removing gcc-only
CFLAGS from a patch iff CC is not gcc.
Diffstat (limited to 'archivers/bzip2/Makefile')
-rw-r--r-- | archivers/bzip2/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/archivers/bzip2/Makefile b/archivers/bzip2/Makefile index 0561a2d7a60..d224d50e9ef 100644 --- a/archivers/bzip2/Makefile +++ b/archivers/bzip2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2002/10/31 22:08:15 grant Exp $ +# $NetBSD: Makefile,v 1.21 2003/03/18 21:53:29 jschauma Exp $ # DISTNAME= bzip2-1.0.2 @@ -13,6 +13,16 @@ USE_BUILDLINK2= # defined USE_LIBTOOL= # defined MAKE_ENV+= REALCC="${BUILDLINK_CC}" +.include "../../mk/bsd.prefs.mk" + +CCVERS!= ${CC} -v 2>&1 | ${GREP} "gcc" || ${ECHO} "notgcc" + +.if ${CCVERS} != "notgcc" +BZIP_CFLAGS= -Wall -Winline -fomit-frame-pointer -fno-strength-reduce +.endif + +MAKE_ENV+= BZIP_CFLAGS="${BZIP_CFLAGS}" + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${PREFIX}/bin ${LN} -f ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bunzip2 |