pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/netpbm Fix bad shell code causing "make" warn...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82c5482510a3
branches:  trunk
changeset: 510754:82c5482510a3
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Apr 03 16:39:04 2006 +0000

description:
Fix bad shell code causing "make" warnings.

diffstat:

 graphics/netpbm/hacks.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c547bb9090eb -r 82c5482510a3 graphics/netpbm/hacks.mk
--- a/graphics/netpbm/hacks.mk  Mon Apr 03 16:13:43 2006 +0000
+++ b/graphics/netpbm/hacks.mk  Mon Apr 03 16:39:04 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.4 2006/03/11 17:41:59 schwarz Exp $
+# $NetBSD: hacks.mk,v 1.5 2006/04/03 16:39:04 tron Exp $
 
 .if !defined(NETPBM_HACKS_MK)
 NETPBM_HACKS_MK=       # defined
@@ -39,8 +39,8 @@
 ### that shows up when compiling frame.c
 ###
 .if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER} == "gcc"
-_GCC_BUILD!=   ${CC} --version|${GREP} '^powerpc-apple-darwin8-gcc-4\.0\.0.*build\ 4061'
-. if !empty(_GCC_BUILD)
+_BAD_GCC_BUILD!=       ${CC} --version | (${GREP} -c '^powerpc-apple-darwin8-gcc-4\.0\.0.*build\ 4061' || ${TRUE})
+. if ${_BAD_GCC_BUILD} == "1"
 PKG_HACKS+=            apple-gcc-4-bug
 BUILDLINK_TRANSFORM+=  rm:-finline-floor # unknown option to gcc-3.3
 BUILDLINK_TRANSFORM+=  rm:-mpowerpc64 # prevent internal compiler error



Home | Main Index | Thread Index | Old Index