summaryrefslogtreecommitdiff
blob: 4b87a4717363138dbfc31ac452838fe27fd6a5c6 (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
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit fdo-mime

DESCRIPTION="mp3/ogg/flac/sid/mod/nsf music player based on GTK2"
HOMEPAGE="http://deadbeef.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="|| ( GPL-2 LGPL-2.1 )"

SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="alsa oss pulseaudio +gtk curl lastfm +artwork +hotkeys +supereq sid ffap vtx adplug +vorbis ffmpeg +flac +sndfile wavpack cdda gme dumb libnotify"

RDEPEND="
	alsa? ( media-libs/alsa-lib )
	pulseaudio? ( media-sound/pulseaudio )
	gtk? ( x11-libs/gtk+:2 )
	curl? ( net-misc/curl )
	media-libs/libmad
	media-libs/libogg
	media-libs/libsamplerate
	vorbis? ( media-libs/libvorbis  )
	ffmpeg? ( media-video/ffmpeg )
	flac? ( media-libs/flac )
	sndfile? ( media-libs/libsndfile )
	wavpack? ( media-sound/wavpack )
	cdda? ( dev-libs/libcdio media-libs/libcddb )
	libnotify? ( x11-libs/libnotify )"
DEPEND="${RDEPEND}"

src_configure() {
	econf $(use_enable alsa) $(use_enable oss) $(use_enable pulseaudio pulse) \
	      $(use_enable gtk gtkui) $(use_enable curl vfs-curl) $(use_enable lastfm lfm) \
	      $(use_enable artwork) $(use_enable hotkeys) $(use_enable supereq) \
	      $(use_enable sid) $(use_enable ffap) $(use_enable vtx) \
	      $(use_enable adplug) $(use_enable vorbis) $(use_enable ffmpeg) $(use_enable flac) \
	      $(use_enable sndfile) $(use_enable wavpack) $(use_enable cdda) $(use_enable gme) \
	      $(use_enable dumb) $(use_enable libnotify notify) || die "econf failed"
}

src_install() {
	DESTDIR="${D}" emake install || die "install failed"
}