summaryrefslogtreecommitdiff
blob: ccd08896da1c1a3542fb1422c6551d1536a87445 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-musepack/xmms-musepack-1.1_alpha10.ebuild,v 1.2 2004/11/14 19:10:41 eradicator Exp $

IUSE=""

MY_P="${P/_alpha/-alpha}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="XMMS plugin to play audio files encoded with Andree Buschmann's encoder Musepack (mpc, mp+, mpp)"
HOMEPAGE="http://www.musepack.net"
SRC_URI="http://www.musepack.net/downloads/linux/plugins/${MY_P}.tar.bz2"

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

DEPEND="media-sound/xmms
	media-libs/libmusepack"

src_unpack() {
	unpack ${A}
	cd ${S}

	sed -i 's:-O2 -march=i686 -pipe:${CFLAGS}:g' Makefile
}

src_compile() {
	emake || die "make failed"
}

src_install() {
	exeinto `xmms-config --input-plugin-dir`
	doexe libmpc.so
	dodoc README
}