summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authorschwarz <schwarz>2006-03-11 17:41:59 +0000
committerschwarz <schwarz>2006-03-11 17:41:59 +0000
commit4226df90f06927dff7c402fcee755e6b62528826 (patch)
tree09c91e38b152a2fbeb2d262b09173ce3fca3200a /graphics/netpbm
parentb3ed8bcd67fb2b2813e9b38e64cc9f392234a74c (diff)
downloadpkgsrc-4226df90f06927dff7c402fcee755e6b62528826.tar.gz
added a workaround for a bug with Apple's gcc-4.0.0
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/hacks.mk19
1 files changed, 18 insertions, 1 deletions
diff --git a/graphics/netpbm/hacks.mk b/graphics/netpbm/hacks.mk
index 6a10a841053..2ae2ab983a9 100644
--- a/graphics/netpbm/hacks.mk
+++ b/graphics/netpbm/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.3 2006/01/22 21:36:31 schwarz Exp $
+# $NetBSD: hacks.mk,v 1.4 2006/03/11 17:41:59 schwarz Exp $
.if !defined(NETPBM_HACKS_MK)
NETPBM_HACKS_MK= # defined
@@ -34,4 +34,21 @@ post-wrapper:
# should match int8_t, int16_t, and int32_t (only)
.endif
+### [ Sun Mar 5 20:19:52 CET 2006 : schwarz ]
+### work around bug in Apple's gcc-4.0.0
+### 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)
+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
+# with gcc-3.3 when compiling exif.c
+post-wrapper:
+ ${SED} -e s,/gcc,/gcc-3.3, ${WRKDIR}/.gcc/bin/gcc > ${WRKDIR}/.gcc/bin/gcc-3.3 && ${MV} -f ${WRKDIR}/.gcc/bin/gcc-3.3 ${WRKDIR}/.gcc/bin/gcc && ${CHMOD} a+rx ${WRKDIR}/.gcc/bin/gcc
+# use gcc-3.3 instead of gcc-4.0.0
+. endif
+.endif
+
.endif