pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/firefox Compile without optimization if GCC <4.0 (...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2cc45c24c778
branches:  trunk
changeset: 497731:2cc45c24c778
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed Aug 03 16:55:19 2005 +0000

description:
Compile without optimization if GCC <4.0 (4.0 not tested) is used on
a powerpc architecture (e.g. NetBSD-mapcppc). This cures display glitches
(e.g. text appearing at the wrong location). Bump package revision
because of this change.

diffstat:

 www/firefox/Makefile |   3 ++-
 www/firefox/hacks.mk |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 91877e690bb9 -r 2cc45c24c778 www/firefox/Makefile
--- a/www/firefox/Makefile      Wed Aug 03 16:51:37 2005 +0000
+++ b/www/firefox/Makefile      Wed Aug 03 16:55:19 2005 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2005/06/03 14:41:19 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2005/08/03 16:55:19 tron Exp $
 
 MOZILLA=       firefox
 EXTRACT_SUFX=  .tar.bz2
+PKGREVISON=    1
 
 COMMENT=       Lightweight gecko-based web browser
 
diff -r 91877e690bb9 -r 2cc45c24c778 www/firefox/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox/hacks.mk      Wed Aug 03 16:55:19 2005 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: hacks.mk,v 1.1 2005/08/03 16:55:19 tron Exp $
+
+# Firefox suffers from display glitches (e.g. text appearing at the wrong
+# location) if it was compiled with optimization.
+
+.if ${MACHINE_ARCH} == "powerpc"
+.  include "../../mk/compiler.mk"
+.  if !empty(CC_VERSION:Mgcc*)
+.    if !defined(_GCC_IS_TOO_OLD)
+_GCC_IS_TOO_OLD!=      \
+       if ${PKG_ADMIN} pmatch 'gcc<4.0' ${CC_VERSION}; then            \
+               ${ECHO} "yes";                                          \
+       else                                                            \
+               ${ECHO} "no";                                           \
+       fi
+MAKEFLAGS+=    _GCC_IS_TOO_OLD=${_GCC_IS_TOO_OLD}
+.    endif
+.    if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS])
+PKG_HACKS+=            powerpc-codegen
+BUILDLINK_TRANSFORM+=  rm:-O[0-9]*
+.    endif
+.  endif
+.endif



Home | Main Index | Thread Index | Old Index