summaryrefslogtreecommitdiff
blob: ce96e09d21b2fb3aff275b22286835d30247e50b (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.3 2003/03/14 11:39:41 jje Exp $

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"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

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}
        patch -p0 < ${FILESDIR}/${P}.patch || die
}

src_install() {
	make DESTDIR=${D} libdir=/usr/lib/xmms/Input install || die
	dodoc AUTHORS COPYING NEWS README
}