blob: 86a65bc9144674e03780468bd99bdda2fcb37261 (
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
46
47
48
49
50
51
|
# Copyright 1999-2005 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.00.ebuild,v 1.3 2005/01/05 09:17:53 eradicator Exp $
inherit eutils
DESCRIPTION="XMMS plugin to play audio files encoded with Andree Buschmann's encoder Musepack (mpc, mp+, mpp)"
HOMEPAGE="http://sourceforge.net/projects/mpegplus"
SRC_URI="mirror://sourceforge/mpegplus/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
#-sparc: 1.00: error window about not being able to decode the file
KEYWORDS="x86 ~ppc amd64 -sparc"
IUSE=""
DEPEND="media-sound/xmms"
DOCS="ChangeLog README_mpc-plugin_english.txt README_mpc-plugin_finnish.txt README_mpc-plugin_german.txt README_mpc-plugin_korean.txt README_mpc-plugin_spanish.txt"
src_unpack() {
unpack ${A}
cd ${S}
# Fix up the atrocious Makefile.
epatch ${FILESDIR}/${P}-bad-makefile.patch
# Not needed for the plugin:
# if (! use esd && ! use oss); then
# eerror "You muse have either oss or esd active in your USE flags for xmms-musepack to work properly
# fi
#
# use esd || sed -i 's:#define USE_ESD_AUDIO:#undef USE_ESD_AUDIO:' mpp.h
# use oss || sed -i 's:#define USE_OSS_AUDIO:#undef USE_OSS_AUDIO:' mpp.h
# Actually, it looks for esd.h which is stupid because this is an input plugin.
# See bug #40970
sed -i -e 's:#define USE_ESD_AUDIO:#undef USE_ESD_AUDIO:' \
-e 's:#define USE_OSS_AUDIO:#undef USE_OSS_AUDIO:' mpp.h
}
src_compile() {
emake || die
}
src_install() {
exeinto `xmms-config --input-plugin-dir`
doexe ${P}.so
dodoc ${DOCS}
}
|