blob: 96b0cbf97d3277188c8269d646001edb3f83a9b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-spc/xmms-spc-0.2.1.ebuild,v 1.12 2004/07/14 20:45:22 agriffis Exp $
IUSE=""
inherit eutils gnuconfig
MY_P=spcxmms-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="SPC Plugun for XMMS"
HOMEPAGE="http://www.self-core.org/~kaoru-k/"
SRC_URI="http://www.self-core.org/~kaoru-k/pub/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64"
DEPEND="media-sound/xmms"
src_unpack() {
unpack ${A}
# Patch spcxmms.c and soundux.xpp
cd ${S}/xmms-plugin
mv spcxmms.c spcxmms.c.bak
sed -e '108a\
long int i = 0;' -e '115a\
i++;' -e '116a\
if (i >= 18300) going = FALSE;' spcxmms.c.bak > spcxmms.c
cd ${S}/libspc
mv soundux.cpp soundux.cpp.bak
sed -e '417a\
((((int64) hertz * FIXED_POINT) / so.playback_rate) * .980);' soundux.cpp.bak > soundux.cpp
cd ${S}
epatch ${FILESDIR}/${P}.patch
gnuconfig_update
}
src_install() {
make DESTDIR=${D} libdir=/usr/lib/xmms/Input install || die
dodoc AUTHORS COPYING NEWS README
}
|