diff options
author | David Holm <dholm@gentoo.org> | 2004-06-29 16:18:53 +0000 |
---|---|---|
committer | David Holm <dholm@gentoo.org> | 2004-06-29 16:18:53 +0000 |
commit | 36cbae15b70c844d459baa894a3d786255c8dc3b (patch) | |
tree | 912edcd2a9bbafe2b5b61461db5005671d62c850 /media-plugins/swh-plugins | |
parent | glibc -> libc (Manifest recommit) (diff) | |
download | gentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.tar.gz gentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.tar.bz2 gentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.zip |
Added a patch to make swh-plugins compile on ppc
Diffstat (limited to 'media-plugins/swh-plugins')
-rw-r--r-- | media-plugins/swh-plugins/ChangeLog | 6 | ||||
-rw-r--r-- | media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch | 16 | ||||
-rw-r--r-- | media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild | 5 |
3 files changed, 24 insertions, 3 deletions
diff --git a/media-plugins/swh-plugins/ChangeLog b/media-plugins/swh-plugins/ChangeLog index 2a5da86b553c..4c9b3cc4f0c4 100644 --- a/media-plugins/swh-plugins/ChangeLog +++ b/media-plugins/swh-plugins/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-plugins/swh-plugins # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/ChangeLog,v 1.18 2004/06/24 23:35:38 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/ChangeLog,v 1.19 2004/06/29 16:18:53 dholm Exp $ + + 29 Jun 2004; David Holm <dholm@gentoo.org> + +files/swh-plugins-0.4.3-ppc.patch, swh-plugins-0.4.3-r1.ebuild: + Added a patch to make swh-plugins compile on ppc. *swh-plugins-0.4.3-r1 (23 Jun 2004) diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch new file mode 100644 index 000000000000..1b056330e454 --- /dev/null +++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch @@ -0,0 +1,16 @@ +--- swh-plugins-0.4.3-orig/gverb/gverb-test.c.orig 2004-06-29 18:11:36.491890744 +0200 ++++ swh-plugins-0.4.3/gverb/gverb-test.c 2004-06-29 18:13:19.357252832 +0200 +@@ -7,7 +7,13 @@ + + void run(const char *desc); + ++#ifdef __i386__ + #define rdtscll(val) __asm__ __volatile__("rdtsc" : "=A" (val)) ++#elif __powerpc__ ++#define rdtscll(val) __asm__ __volatile__("mftb %0" : "=r" (val)) ++#else ++#error Implement rdtscll for your architecture ++#endif + #define SIZE 48000 + + float in[SIZE], out[2][SIZE]; diff --git a/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild b/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild index 8e73a648256b..f9594b2b43c6 100644 --- a/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild +++ b/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild,v 1.2 2004/06/24 23:35:38 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/swh-plugins-0.4.3-r1.ebuild,v 1.3 2004/06/29 16:18:53 dholm Exp $ inherit eutils @@ -11,7 +11,7 @@ SRC_URI="http://plugin.org.uk/releases/${PV}/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" +KEYWORDS="~x86 ~amd64 ~ppc" DEPEND="media-libs/ladspa-sdk dev-libs/fftw @@ -20,6 +20,7 @@ DEPEND="media-libs/ladspa-sdk src_unpack() { unpack ${A} || die epatch ${FILESDIR}/${P}-compile.patch + use ppc && epatch ${FILESDIR}/${P}-ppc.patch cd ${S} sed -i '/MACHINE=/s/.*/MACHINE=""/' configure |