summaryrefslogtreecommitdiff
blob: 92bc74cbe42b5dc6083acc30379ad473f067444e (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/bmp-crossfade/bmp-crossfade-0.3.8-r2.ebuild,v 1.2 2005/03/13 18:34:40 halcy0n Exp $

IUSE=""
inherit eutils

MY_P=${P/bmp-/xmms-}
MY_PN=${PN/bmp-/xmms-}
S=${WORKDIR}/${MY_P}

DESCRIPTION="BMP Plugin for crossfading, and continuous output."
SRC_URI="http://www.eisenlohr.org/${MY_PN}/${MY_P}.tar.gz"
HOMEPAGE="http://www.eisenlohr.org/xmms-crossfade/index.html"

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

DEPEND="media-sound/beep-media-player
	media-libs/libsamplerate"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-bmp.patch
	epatch ${FILESDIR}/${PV}-gcc4.patch
	cp interface.c interface-2.0.c
	cp support.c support-2.0.c
}

src_compile() {
	econf --enable-player=beep \
		--disable-oss \
		--libdir=$(beep-config --output-plugin-dir) || die
	emake || die
}

src_install () {
	make DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog README TODO
}