1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="Audacious Player - Your music, your way, no exceptions"
11 HOMEPAGE="http://audacious-media-player.org/"
12 SRC_URI="http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
17 IUSE="aac adplug alsa bs2b cdda cue ffmpeg flac fluidsynth gnome jack
18 lame libnotify libsamplerate lirc midi mms mp3 nls pulseaudio scrobbler sdl sid sndfile vorbis wavpack"
20 RDEPEND="app-arch/unzip
21 >=dev-libs/dbus-glib-0.60
24 ~media-sound/audacious-3.5.1
25 >=net-libs/neon-0.26.4
27 ( || ( >=dev-libs/glib-2.32.2[utils] dev-util/gdbus-codegen ) )
28 aac? ( >=media-libs/faad2-2.7 )
29 adplug? ( >=dev-cpp/libbinio-1.4 )
30 alsa? ( >=media-libs/alsa-lib-1.0.16 )
31 bs2b? ( media-libs/libbs2b )
32 cdda? ( >=media-libs/libcddb-1.2.1
33 dev-libs/libcdio-paranoia )
34 cue? ( media-libs/libcue )
35 ffmpeg? ( >=virtual/ffmpeg-0.7.3 )
36 flac? ( >=media-libs/libvorbis-1.0
37 >=media-libs/flac-1.2.1-r1 )
38 fluidsynth? ( media-sound/fluidsynth )
39 jack? ( >=media-libs/bio2jack-0.4
40 media-sound/jack-audio-connection-kit )
41 lame? ( media-sound/lame )
42 libnotify? ( x11-libs/libnotify )
43 libsamplerate? ( media-libs/libsamplerate )
44 lirc? ( app-misc/lirc )
45 mms? ( >=media-libs/libmms-0.3 )
46 mp3? ( >=media-sound/mpg123-1.12.1 )
47 pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
48 scrobbler? ( net-misc/curl )
49 sdl? ( media-libs/libsdl[sound] )
50 sid? ( >=media-libs/libsidplayfp-1.0.0 )
51 sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
52 vorbis? ( >=media-libs/libvorbis-1.2.0
53 >=media-libs/libogg-1.1.3 )
54 wavpack? ( >=media-sound/wavpack-4.50.1-r1 )"
57 nls? ( dev-util/intltool )
64 ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
69 has_version "<dev-libs/glib-2.32" && \
70 cd "${S}"/src/mpris2 && \
71 gdbus-codegen --interface-prefix org.mpris. \
72 --c-namespace Mpris --generate-c-code object-core mpris2.xml && \
73 gdbus-codegen --interface-prefix org.mpris. \
75 --generate-c-code object-player mpris2-player.xml && \
82 if use ffmpeg && has_version media-video/ffmpeg ; then
83 ffmpeg="--with-ffmpeg=ffmpeg"
84 elif use ffmpeg && has_version media-video/libav ; then
85 ffmpeg="--with-ffmpeg=libav"
87 ffmpeg="--with-ffmpeg=none"
95 $(use_enable adplug) \
99 $(use_enable cdda cdaudio) \
101 $(use_enable flac flacng) \
102 $(use_enable fluidsynth amidiplug) \
103 $(use_enable flac filewriter_flac) \
105 $(use_enable gnome gnomeshortcuts) \
106 $(use_enable lame filewriter_mp3) \
107 $(use_enable libnotify notify) \
108 $(use_enable libsamplerate resample) \
112 $(use_enable midi amidiplug) \
114 $(use_enable pulseaudio pulse) \
115 $(use_enable scrobbler scrobbler2) \
116 $(use_enable sdl sdlout) \
118 $(use_enable sndfile) \
119 $(use_enable vorbis) \
120 $(use_enable wavpack)