summaryrefslogtreecommitdiff
blob: 19a4f7151187fa44ebabb5fc27ff8eae251f15ee (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
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/rox-extra/musicbox/musicbox-027.ebuild,v 1.3 2006/10/19 22:33:07 lack Exp $

ROX_LIB_VER=2.0.0
inherit rox eutils

DESCRIPTION="MusicBox - an MP3/OGG Player for the ROX Desktop"
HOMEPAGE="http://www.hayber.us/rox/MusicBox/"
SRC_URI="http://www.hayber.us/rox/musicbox/MusicBox-027.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="mp3 vorbis flac alsa"

DEPEND="
	>=dev-python/pyao-0.81
	alsa? ( >=dev-python/pyalsaaudio-0.2 )
	mp3? (
		>=dev-python/pymad-0.4.1
		>=dev-python/pyid3lib-0.5.1 )
	vorbis? ( >=dev-python/pyvorbis-1.1 )
	flac? (
		~media-libs/flac-1.1.2
		>=dev-lang/swig-1.3.25 )"

RDEPEND="
	>=dev-python/pyao-0.81
	alsa? ( >=dev-python/pyalsaaudio-0.2 )
	mp3? (
		>=dev-python/pymad-0.4.1
		>=dev-python/pyid3lib-0.5.1 )
	vorbis? ( >=dev-python/pyvorbis-1.1 )
	flac? (	>=media-libs/flac-1.1.2 )"

APPNAME=MusicBox
S=${WORKDIR}

src_unpack() {
	unpack ${A}
	cd "${S}"
	if use flac; then
		if ! built_with_use dev-lang/swig python; then
			einfo "MusicBox flac support requires swig with python support."
			einfo "Please rebuild swig with USE=\"python\"."
			die "swig python support missing"
		fi
		epatch ${FILESDIR}/${P}-fPIC.patch
	fi
	epatch ${FILESDIR}/${P}-mime.patch
}

# Special compilation needed for flac support
src_compile() {
	if use flac; then
		cd "${S}/${APPNAME}/plugins/flac"
		make || die "flac plugin compile failed."
	fi
	rox_src_compile
}