summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2007-09-08 06:05:01 +0000
committerJoseph Jezak <josejx@gentoo.org>2007-09-08 06:05:01 +0000
commite2fc96de2921f39c9f1ba63559b21ab1e743e0b4 (patch)
tree9ed4d2fdccce0911d4f4d4f569309c5c88613102 /media-sound
parentAssigning to python-herd, dropped old version. (diff)
downloadgentoo-2-e2fc96de2921f39c9f1ba63559b21ab1e743e0b4.tar.gz
gentoo-2-e2fc96de2921f39c9f1ba63559b21ab1e743e0b4.tar.bz2
gentoo-2-e2fc96de2921f39c9f1ba63559b21ab1e743e0b4.zip
Added patch for big endian systems, marked ppc stable.
(Portage version: 2.1.3.7)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/trommler/ChangeLog6
-rw-r--r--media-sound/trommler/files/trommler-be.patch33
-rw-r--r--media-sound/trommler/trommler-3.7.ebuild10
3 files changed, 46 insertions, 3 deletions
diff --git a/media-sound/trommler/ChangeLog b/media-sound/trommler/ChangeLog
index 3e6711f548d8..d65cdfc03c27 100644
--- a/media-sound/trommler/ChangeLog
+++ b/media-sound/trommler/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/trommler
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/trommler/ChangeLog,v 1.17 2007/08/20 23:35:32 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/trommler/ChangeLog,v 1.18 2007/09/08 06:05:00 josejx Exp $
+
+ 08 Sep 2007; Joseph Jezak <josejx@gentoo.org> +files/trommler-be.patch,
+ trommler-3.7.ebuild:
+ Added patch for big endian systems, marked ppc stable.
20 Aug 2007; Markus Ullmann <jokey@gentoo.org> trommler-3.7.ebuild:
Stable on x86 wrt bug #189143
diff --git a/media-sound/trommler/files/trommler-be.patch b/media-sound/trommler/files/trommler-be.patch
new file mode 100644
index 000000000000..49316012d059
--- /dev/null
+++ b/media-sound/trommler/files/trommler-be.patch
@@ -0,0 +1,33 @@
+--- drummer.c 2004-05-10 22:20:47.000000000 -0400
++++ /home/jjezak/Trommler/drummer.c 2007-09-07 22:53:57.000000000 -0400
+@@ -408,6 +408,16 @@
+ fseek(fp,0,SEEK_SET);
+ DRUM_SAMPLE(drum) = calloc(DRUM_LENGTH(drum),sizeof(INT16));
+ fread(DRUM_SAMPLE(drum),sizeof(INT16),DRUM_LENGTH(drum),fp);
++
++ /* Big endian swap fix */
++#ifdef __BIG_ENDIAN__
++ int i;
++ INT16 *p = DRUM_SAMPLE(drum);
++ for(i=0; i<DRUM_LENGTH(drum); i++){
++ *p = (INT16) (*p << 8 | *p >> 8);
++ p++;
++ }
++#endif /* __BIG_ENDIAN */
+ fclose(fp);
+ }
+
+--- soundcard.c 2004-05-07 18:18:50.000000000 -0400
++++ /home/jjezak/Trommler/soundcard.c 2007-09-07 22:53:57.000000000 -0400
+@@ -105,7 +105,11 @@
+ }Soundcard =
+ {
+ -1,
++#ifdef __BIG_ENDIAN__
++ AFMT_S16_BE,
++#else
+ AFMT_S16_LE,
++#endif /* __BIG_ENDIAN__ */
+ #ifdef MAIN
+ 1,
+ #else
diff --git a/media-sound/trommler/trommler-3.7.ebuild b/media-sound/trommler/trommler-3.7.ebuild
index 0efd18fe2b01..e5190c4e8db2 100644
--- a/media-sound/trommler/trommler-3.7.ebuild
+++ b/media-sound/trommler/trommler-3.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/trommler/trommler-3.7.ebuild,v 1.6 2007/08/20 23:35:32 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/trommler/trommler-3.7.ebuild,v 1.7 2007/09/08 06:05:00 josejx Exp $
inherit eutils toolchain-funcs
@@ -12,7 +12,7 @@ SRC_URI="http://muth.org/Robert/${MY_PN}/${P/-/.}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 ~ppc -sparc x86"
+KEYWORDS="~alpha amd64 ppc -sparc x86"
IUSE="doc sox"
RDEPEND=">=x11-libs/gtk+-2
@@ -22,6 +22,12 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"/${MY_PN}
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/trommler-be.patch
+}
+
src_compile() {
emake export.h || die "emake export.h failed."
emake CFLAGS="${CFLAGS} $(pkg-config --cflags gtk+-2.0)" \