summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-25 23:28:27 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-25 23:28:27 +0000
commite1a264a17849bcda3c8a89af1b58f45a20124d56 (patch)
treec80bc09b96b9cd2844dd41d5ee0c2d626bdd09d1 /games-emulation/advancemenu
parent#99426: fixed hardcoded pointer size (diff)
downloadgentoo-2-e1a264a17849bcda3c8a89af1b58f45a20124d56.tar.gz
gentoo-2-e1a264a17849bcda3c8a89af1b58f45a20124d56.tar.bz2
gentoo-2-e1a264a17849bcda3c8a89af1b58f45a20124d56.zip
Fix building with alsa and static #97628 by Mr. Anderson.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'games-emulation/advancemenu')
-rw-r--r--games-emulation/advancemenu/ChangeLog9
-rw-r--r--games-emulation/advancemenu/advancemenu-2.4.10.ebuild3
-rw-r--r--games-emulation/advancemenu/files/advancemenu-2.4.10-alsa-pkg-config.patch44
3 files changed, 53 insertions, 3 deletions
diff --git a/games-emulation/advancemenu/ChangeLog b/games-emulation/advancemenu/ChangeLog
index 82c71c0223df..be662d62005e 100644
--- a/games-emulation/advancemenu/ChangeLog
+++ b/games-emulation/advancemenu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-emulation/advancemenu
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/advancemenu/ChangeLog,v 1.18 2005/07/20 16:38:27 mr_bones_ Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/advancemenu/ChangeLog,v 1.19 2005/07/25 23:28:27 vapier Exp $
+
+ 25 Jul 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/advancemenu-2.4.10-alsa-pkg-config.patch,
+ advancemenu-2.4.10.ebuild:
+ Fix building with alsa and static #97628 by Mr. Anderson.
*advancemenu-2.4.10 (20 Jul 2005)
diff --git a/games-emulation/advancemenu/advancemenu-2.4.10.ebuild b/games-emulation/advancemenu/advancemenu-2.4.10.ebuild
index 8e5afaf6a774..6f8eadf2c738 100644
--- a/games-emulation/advancemenu/advancemenu-2.4.10.ebuild
+++ b/games-emulation/advancemenu/advancemenu-2.4.10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/advancemenu/advancemenu-2.4.10.ebuild,v 1.1 2005/07/20 16:38:27 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/advancemenu/advancemenu-2.4.10.ebuild,v 1.2 2005/07/25 23:28:27 vapier Exp $
inherit eutils games
@@ -29,6 +29,7 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}"/${P}-alsa-pkg-config.patch
use x86 && ln -s $(which nasm) "${T}/${CHOST}-nasm"
use sdl && ln -s $(which sdl-config) "${T}/${CHOST}-sdl-config"
use truetype && ln -s $(which freetype-config) "${T}/${CHOST}-freetype-config"
diff --git a/games-emulation/advancemenu/files/advancemenu-2.4.10-alsa-pkg-config.patch b/games-emulation/advancemenu/files/advancemenu-2.4.10-alsa-pkg-config.patch
new file mode 100644
index 000000000000..de0af21f2fc0
--- /dev/null
+++ b/games-emulation/advancemenu/files/advancemenu-2.4.10-alsa-pkg-config.patch
@@ -0,0 +1,44 @@
+Make sure we ask alsa what libraries it needs rather than assuming.
+
+http://bugs.gentoo.org/97628
+
+Changes for configure.ac:
+ --------------------------------------
+ [snd_pcm_open],
+ [ac_lib_alsa=yes],
+ [ac_lib_alsa=no],
+ - [-lm]
+ + [`pkg-config alsa --libs`]
+ )
+ if test $ac_lib_alsa = yes; then
+ AC_MSG_CHECKING([for ALSA])
+ --------------------------------------
+ [snd_pcm_open],
+ [],
+ [AC_MSG_ERROR([the ALSA library is missing])],
+ - [-lm]
+ + [`pkg-config alsa --libs`]
+ )
+ AC_MSG_CHECKING([for ALSA version])
+ AC_TRY_COMPILE([
+
+--- configure
++++ configure
+@@ -8298,7 +8298,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lasound -lm
++LIBS="-lasound `pkg-config alsa --libs`
+ $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+@@ -8428,7 +8428,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lasound -lm
++LIBS="-lasound `pkg-config alsa --libs`
+ $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */