summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2005-03-06 02:00:06 +0000
committerJoseph Jezak <josejx@gentoo.org>2005-03-06 02:00:06 +0000
commit171ea9ba6c6e727171b9bd9dbfd4824dbafcdd72 (patch)
treee27f2c74c115d06fbbf1c4bdbbd0fda2f0a66ded /media-sound/alsaplayer
parentMarked ppc stable for bug #84174. (diff)
downloadgentoo-2-171ea9ba6c6e727171b9bd9dbfd4824dbafcdd72.tar.gz
gentoo-2-171ea9ba6c6e727171b9bd9dbfd4824dbafcdd72.tar.bz2
gentoo-2-171ea9ba6c6e727171b9bd9dbfd4824dbafcdd72.zip
Added bigendian patch. See bug #76409.
(Portage version: 2.0.51.19)
Diffstat (limited to 'media-sound/alsaplayer')
-rw-r--r--media-sound/alsaplayer/ChangeLog6
-rw-r--r--media-sound/alsaplayer/alsaplayer-0.99.76.ebuild14
-rw-r--r--media-sound/alsaplayer/files/alsaplayer-endian.patch34
3 files changed, 51 insertions, 3 deletions
diff --git a/media-sound/alsaplayer/ChangeLog b/media-sound/alsaplayer/ChangeLog
index 7743aa059a19..f0faf0d0976f 100644
--- a/media-sound/alsaplayer/ChangeLog
+++ b/media-sound/alsaplayer/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/alsaplayer
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/ChangeLog,v 1.29 2005/02/13 03:36:26 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/ChangeLog,v 1.30 2005/03/06 02:00:06 josejx Exp $
+
+ 06 Mar 2005; Joseph Jezak <josejx@gentoo.org>
+ +files/alsaplayer-endian.patch, alsaplayer-0.99.76.ebuild:
+ Added Chris White's patch for big endian machines. See bug #76409.
12 Feb 2005; Robin H. Johnson <robbat2@gentoo.org>
alsaplayer-0.99.76.ebuild:
diff --git a/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild b/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild
index e7a495e92a25..c84433f4f2fb 100644
--- a/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild
+++ b/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild,v 1.13 2005/02/13 03:36:26 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/alsaplayer-0.99.76.ebuild,v 1.14 2005/03/06 02:00:06 josejx Exp $
+
+inherit eutils
IUSE="nas nls esd opengl doc oss gtk oggvorbis alsa jack mikmod flac"
@@ -10,7 +12,7 @@ SRC_URI="http://www.alsaplayer.org/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="~alpha amd64 ~ia64 ~ppc ~sparc x86 ~mips"
+KEYWORDS="~alpha amd64 ~ia64 ppc ~sparc x86 ~mips"
RDEPEND=">=dev-libs/glib-1.2.10
doc? ( app-doc/doxygen )
@@ -28,6 +30,14 @@ DEPEND="${RDEPEND}
sys-apps/sed
nls? ( sys-devel/gettext )"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ if use ppc; then
+ epatch ${FILESDIR}/alsaplayer-endian.patch
+ fi
+}
+
src_compile() {
export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include"
diff --git a/media-sound/alsaplayer/files/alsaplayer-endian.patch b/media-sound/alsaplayer/files/alsaplayer-endian.patch
new file mode 100644
index 000000000000..c42deefeca6c
--- /dev/null
+++ b/media-sound/alsaplayer/files/alsaplayer-endian.patch
@@ -0,0 +1,34 @@
+--- output/alsa-final/alsa.c.old 2004-12-23 13:20:52.238347728 +0900
++++ output/alsa-final/alsa.c 2004-12-23 13:21:15.998735600 +0900
+@@ -173,9 +173,9 @@
+ goto _err;
+ }
+ err = snd_pcm_hw_params_set_format(sound_handle, hwparams,
+- SND_PCM_FORMAT_S16_LE);
++ SND_PCM_FORMAT_S16);
+ if (err < 0) {
+- puts("error on set_format SND_PCM_FORMAT_S16_LE");
++ puts("error on set_format SND_PCM_FORMAT_S16");
+ goto _err;
+ }
+ val = output_rate;
+--- output/alsa-0.5.x/alsa.old 2004-12-23 14:32:41.420252504 +0900
++++ output/alsa-0.5.x/alsa.c 2004-12-23 14:33:07.996212344 +0900
+@@ -121,7 +121,7 @@
+ params.buf.block.frags_min = 1;
+
+ memset(&format, 0, sizeof(format));
+- format.format = SND_PCM_SFMT_S16_LE;
++ format.format = SND_PCM_SFMT_S16;
+ format.rate = output_rate;
+ format.voices = *channels;
+ format.interleave = 1;
+@@ -166,7 +166,7 @@
+ params.start_mode = SND_PCM_START_FULL;
+ params.stop_mode = SND_PCM_STOP_STOP;
+ memset(&format, 0, sizeof(format));
+- format.format = SND_PCM_SFMT_S16_LE;
++ format.format = SND_PCM_SFMT_S16;
+ format.rate = output_rate = rate;
+ format.voices = 2;
+ format.interleave = 1;