diff options
-rw-r--r-- | games-strategy/lgeneral/ChangeLog | 6 | ||||
-rw-r--r-- | games-strategy/lgeneral/files/1.1.1-netbsd-audio.patch | 34 | ||||
-rw-r--r-- | games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild | 10 |
3 files changed, 47 insertions, 3 deletions
diff --git a/games-strategy/lgeneral/ChangeLog b/games-strategy/lgeneral/ChangeLog index ad94b455b391..d854a9581c15 100644 --- a/games-strategy/lgeneral/ChangeLog +++ b/games-strategy/lgeneral/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-strategy/lgeneral # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.3 2004/03/20 10:14:06 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.4 2004/04/06 06:59:17 mr_bones_ Exp $ + + 05 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org> + lgeneral-1.1.1-r1.ebuild, files/1.1.1-netbsd-audio.patch: + audio patch from netbsd 20 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> lgeneral-1.1.1-r1.ebuild: diff --git a/games-strategy/lgeneral/files/1.1.1-netbsd-audio.patch b/games-strategy/lgeneral/files/1.1.1-netbsd-audio.patch new file mode 100644 index 000000000000..41e7b394b11e --- /dev/null +++ b/games-strategy/lgeneral/files/1.1.1-netbsd-audio.patch @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/11/15 17:28:57 wiz Exp $ + +--- src/audio.c.orig Thu Aug 8 11:02:58 2002 ++++ src/audio.c +@@ -87,6 +87,7 @@ void audio_set_volume( int level ) + } + void audio_fade_out( int channel, int ms ) + { ++ if ( !audio_ok ) return; + Mix_FadeOutChannel( channel, ms ); + } + +@@ -113,6 +114,7 @@ Wav* wav_load( char *fname, int channel + } + void wav_free( Wav *wav ) + { ++ if ( !audio_ok ) return; + if ( wav ) { + if ( wav->chunk ) + Mix_FreeChunk( wav->chunk ); +@@ -132,11 +134,13 @@ void wav_play( Wav *wav ) + } + void wav_play_at( Wav *wav, int channel ) + { ++ if ( !audio_ok ) return; + wav->channel = channel; + wav_play( wav ); + } + void wav_fade_out( Wav *wav, int ms ) + { ++ if ( !audio_ok ) return; + Mix_FadeOutChannel( wav->channel, ms ); + } + diff --git a/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild b/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild index 968c963479a4..838696feec8b 100644 --- a/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild +++ b/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild,v 1.3 2004/03/20 10:14:06 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.1.1-r1.ebuild,v 1.4 2004/04/06 06:59:17 mr_bones_ Exp $ -inherit games +inherit eutils games DATA=lgeneral-data-1.1.3 @@ -19,6 +19,12 @@ IUSE="" DEPEND=">=media-libs/libsdl-1.2.4 >=media-libs/sdl-mixer-1.2.3" +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}/${PV}-netbsd-audio.patch" +} + src_compile() { egamesconf --datadir=${GAMES_DATADIR}/../ emake || die "emake failed" |