summaryrefslogtreecommitdiff
path: root/graphics/netpbm/hacks.mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-04-03 16:39:04 +0000
committertron <tron@pkgsrc.org>2006-04-03 16:39:04 +0000
commited8c6d479588c8379751d070c87cb5e3d473bf3e (patch)
tree5276df1dd1753bdc5c4a359d7b7a3293d8b70baf /graphics/netpbm/hacks.mk
parent98fc1e69440b0efff9f49e803c17c720b3fcdc10 (diff)
downloadpkgsrc-ed8c6d479588c8379751d070c87cb5e3d473bf3e.tar.gz
Fix bad shell code causing "make" warnings.
Diffstat (limited to 'graphics/netpbm/hacks.mk')
-rw-r--r--graphics/netpbm/hacks.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/netpbm/hacks.mk b/graphics/netpbm/hacks.mk
index 2ae2ab983a9..852083087aa 100644
--- a/graphics/netpbm/hacks.mk
+++ b/graphics/netpbm/hacks.mk
@@ -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 @@ post-wrapper:
### 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