diff options
-rw-r--r-- | games-fps/quakeforge/files/0.5.4-alsa.patch | 27 | ||||
-rw-r--r-- | games-fps/quakeforge/quakeforge-0.5.4.ebuild | 3 |
2 files changed, 29 insertions, 1 deletions
diff --git a/games-fps/quakeforge/files/0.5.4-alsa.patch b/games-fps/quakeforge/files/0.5.4-alsa.patch new file mode 100644 index 000000000000..9bde50b38f63 --- /dev/null +++ b/games-fps/quakeforge/files/0.5.4-alsa.patch @@ -0,0 +1,27 @@ +diff -ur quakeforge-0.5.4/configure quakeforge-0.5.4-fixed/configure +--- quakeforge-0.5.4/configure 2003-07-17 21:25:53.000000000 -0500 ++++ quakeforge-0.5.4-fixed/configure 2004-01-22 23:20:32.000000000 -0600 +@@ -17032,7 +17032,7 @@ + + #include <sys/asoundlib.h> + #if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) +-#if SND_LIB_MAJOR > 0 || (SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5) ++#if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5 + QF_maGiC_VALUE + #endif + #endif +diff -ur quakeforge-0.5.4/libs/audio/targets/snd_alsa_0_9.c quakeforge-0.5.4-fixed/libs/audio/targets/snd_alsa_0_9.c +--- quakeforge-0.5.4/libs/audio/targets/snd_alsa_0_9.c 2003-04-14 21:34:17.000000000 -0500 ++++ quakeforge-0.5.4-fixed/libs/audio/targets/snd_alsa_0_9.c 2004-01-22 23:18:36.000000000 -0600 +@@ -34,6 +34,11 @@ + + #include <stdio.h> + #include <dlfcn.h> ++#include <alsa/version.h> ++#if SND_LIB_MAJOR==1 ++#define ALSA_PCM_OLD_HW_PARAMS_API ++#define ALSA_PCM_NEW_HW_PARAMS_API ++#endif + #include <alsa/asoundlib.h> + + #include "QF/cvar.h" diff --git a/games-fps/quakeforge/quakeforge-0.5.4.ebuild b/games-fps/quakeforge/quakeforge-0.5.4.ebuild index 75191a24667d..09f9749dd929 100644 --- a/games-fps/quakeforge/quakeforge-0.5.4.ebuild +++ b/games-fps/quakeforge/quakeforge-0.5.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/quakeforge-0.5.4.ebuild,v 1.4 2003/10/27 23:34:42 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/quakeforge-0.5.4.ebuild,v 1.5 2004/01/29 09:24:46 vapier Exp $ inherit games @@ -34,6 +34,7 @@ src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}-com-parse.patch + epatch ${FILESDIR}/${PV}-alsa.patch # sed -i \ # -e 's:heavy=.*:heavy=:' \ # -e 's:light=.*:light=:' \ |