diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2010-05-24 09:40:42 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2010-05-24 09:40:42 +0000 |
commit | c8cf7371f4ab0cdac96d388adeb130e9ed6afa3c (patch) | |
tree | f1289052f9a3221f8872f3f9aa55a14dc52be6f2 /games-emulation | |
parent | Taking over from Mr. Maintainer-Needed (diff) | |
download | gentoo-2-c8cf7371f4ab0cdac96d388adeb130e9ed6afa3c.tar.gz gentoo-2-c8cf7371f4ab0cdac96d388adeb130e9ed6afa3c.tar.bz2 gentoo-2-c8cf7371f4ab0cdac96d388adeb130e9ed6afa3c.zip |
Build with gcc-4.5 Bug #321009
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/mednafen/ChangeLog | 6 | ||||
-rw-r--r-- | games-emulation/mednafen/files/mednafen-0.8.12-gcc45.patch | 28 | ||||
-rw-r--r-- | games-emulation/mednafen/mednafen-0.8.12.ebuild | 3 |
3 files changed, 35 insertions, 2 deletions
diff --git a/games-emulation/mednafen/ChangeLog b/games-emulation/mednafen/ChangeLog index 17a6ab7ea957..8cc36645b92b 100644 --- a/games-emulation/mednafen/ChangeLog +++ b/games-emulation/mednafen/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-emulation/mednafen # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.20 2010/05/23 19:55:46 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.21 2010/05/24 09:40:42 tupone Exp $ + + 24 May 2010; Tupone Alfredo <tupone@gentoo.org> mednafen-0.8.12.ebuild, + +files/mednafen-0.8.12-gcc45.patch: + Build with gcc-4.5 Bug #321009 by flameeyes@gentoo.org 23 May 2010; Pacho Ramos <pacho@gentoo.org> mednafen-0.8.12.ebuild: stable amd64, bug 312535 diff --git a/games-emulation/mednafen/files/mednafen-0.8.12-gcc45.patch b/games-emulation/mednafen/files/mednafen-0.8.12-gcc45.patch new file mode 100644 index 000000000000..eb513f77885e --- /dev/null +++ b/games-emulation/mednafen/files/mednafen-0.8.12-gcc45.patch @@ -0,0 +1,28 @@ +--- src/pce/adpcm.cpp.old 2010-05-24 11:12:19.000000000 +0200 ++++ src/pce/adpcm.cpp 2010-05-24 11:12:40.000000000 +0200 +@@ -244,12 +244,12 @@ + if(f >= 14) + { + int rolloff = (int)((((double)32087.5 / (16 - f)) / 2) * 0.70); +- ADPCMSynth.treble_eq( blip_eq_t::blip_eq_t(-1000, rolloff, FSettings.SndRate)); ++ ADPCMSynth.treble_eq( blip_eq_t(-1000, rolloff, FSettings.SndRate)); + } + else + { + int rolloff = (int)((((double)32087.5 / (16 - f)) / 2) * 0.80); +- ADPCMSynth.treble_eq( blip_eq_t::blip_eq_t(-1000, rolloff, FSettings.SndRate)); ++ ADPCMSynth.treble_eq( blip_eq_t(-1000, rolloff, FSettings.SndRate)); + } + } + } +--- src/pcfx/soundbox.cpp.old 2010-05-24 11:15:20.000000000 +0200 ++++ src/pcfx/soundbox.cpp 2010-05-24 11:15:36.000000000 +0200 +@@ -416,7 +416,7 @@ + int rolloff = (int)((double)0.90 * 21477272 * 2 / 1365 / (1 << SampleFreq) ) / 2; + for(int ch = 0; ch < 2; ch++) + for(int lr = 0; lr < 2; lr++) +- ADPCMSynth[ch][lr].treble_eq(blip_eq_t::blip_eq_t(-1000, rolloff, FSettings.SndRate)); ++ ADPCMSynth[ch][lr].treble_eq(blip_eq_t(-1000, rolloff, FSettings.SndRate)); + LSampleFreq = SampleFreq; + } + } diff --git a/games-emulation/mednafen/mednafen-0.8.12.ebuild b/games-emulation/mednafen/mednafen-0.8.12.ebuild index af3e21af49ac..74f57c380fe1 100644 --- a/games-emulation/mednafen/mednafen-0.8.12.ebuild +++ b/games-emulation/mednafen/mednafen-0.8.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.8.12.ebuild,v 1.3 2010/05/23 19:55:46 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.8.12.ebuild,v 1.4 2010/05/24 09:40:42 tupone Exp $ EAPI=2 inherit autotools eutils games @@ -39,6 +39,7 @@ src_prepare() { -e '/-ffast-math/d' \ configure.ac \ || die "sed failed" + epatch "${FILESDIR}"/${P}-gcc45.patch eautoreconf } |