summaryrefslogtreecommitdiff
blob: 338829e8fde089e42c76eec040fc55be411afb64 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit fdo-mime

MY_P="${P/_rc/-rc}"

DESCRIPTION="foobar2000-like music player."
HOMEPAGE="http://deadbeef.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="LGPL-2.1 MIT" # TODO incomplete!

# License details:
# ./md5/ - MIT
# TODO

SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="aac adplug alsa audiooverload cdda cover curl dbus dts
	dumb ffap ffmpeg flac gme gtk +hotkeys lastfm midi mms mp3
	musepack nullout oss pulseaudio shellexec shorten sid
	sndfile +supereq tta vorbis vtx wavpack"

RDEPEND="
	media-libs/libsamplerate
	alsa? ( media-libs/alsa-lib )
	cover? ( net-misc/curl )
	cdda? ( dev-libs/libcdio media-libs/libcddb )
	curl? ( net-misc/curl )
	dbus? ( sys-apps/dbus )
	ffmpeg? ( media-video/ffmpeg )
	flac? ( media-libs/flac )
	gtk? ( x11-libs/gtk+:2 )
	lastfm? ( net-misc/curl )
	mms? ( media-libs/libmms )
	mp3? ( media-libs/libmad )
	pulseaudio? ( media-sound/pulseaudio )
	sndfile? ( media-libs/libsndfile )
	wavpack? ( media-sound/wavpack )
"
DEPEND="${RDEPEND}"

S=${WORKDIR}/${MY_P}

src_prepare() {
	# Removing bundle dependencies
	:
	# TODO:
	# plugins/aac: aac? ( media-libs/faad2 )
	# plugins/adplug: adplug? ( media-libs/adplug )
	# plugins/ao
	# plugins/dca: dts? ( media-libs/libdca )
	# plugins/dump
	# plugins/gme
	# plugins/musepack: musepack? ( media-sound/musepack-tools )
	# plugins/shn: shorten? ( media-sound/shorten )
	# plugins/sid? ( media-libs/libsidplay )
	# plugins/supereq
	# plugins/tta
	# plugins/vorbis: vorbis? ( media-libs/libvorbis )
	# plugins/vtx
	# plugins/wildmidi: midi? ( media-sound/wildmidi )
}

src_configure() {
	my_config="
		--disable-dependency-tracking \
		$(use_enable aac) \
		$(use_enable adplug) \
		$(use_enable alsa) \
		$(use_enable audiooverload ao) \
		$(use_enable cdda) \
		$(use_enable dbus notify) \
		$(use_enable dts dca) \
		$(use_enable dumb) \
		$(use_enable ffap) \
		$(use_enable ffmpeg) \
		$(use_enable flac) \
		$(use_enable gme) \
		$(use_enable gtk gtkui) \
		--disable-gtk3 \
		$(use_enable hotkeys) \
		$(use_enable lastfm lfm) \
		$(use_enable mp3 mad) \
		$(use_enable midi wildmidi) \
		$(use_enable musepack) \
		$(use_enable nullout) \
		$(use_enable oss) \
		$(use_enable pulseaudio pulse) \
		$(use_enable shellexec)
		$(use_enable shorten shn) \
		$(use_enable sid) \
		$(use_enable sndfile) \
		$(use_enable supereq) \
		$(use_enable tta) \
		$(use_enable vorbis) \
		$(use_enable vtx) \
		$(use_enable wavpack) \
	"

	if use cover ; then
		# artwork need vfs-curl plugin, we force it
		my_config="${my_config} \
			--enable-vfs-curl \
			--enable-artwork"
	else
		my_config="${my_config} \
			$(use_enable curl vfs-curl) \
			--disable-artwork"
	fi

	econf ${my_config}
}