1 # Copyright 1999-2015 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="!gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2 )
13 gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}-gtk3.tar.bz2 )"
17 KEYWORDS="alpha amd64 ~arm ~hppa ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
18 IUSE="aac adplug alsa bs2b cdda cue ffmpeg flac fluidsynth gnome http gtk3 jack
19 lame libnotify libsamplerate lirc mms mp3 nls pulseaudio qt5 scrobbler sdl sid sndfile vorbis wavpack"
20 REQUIRED_USE="|| ( alsa flac lame jack pulseaudio qt5 sdl )"
22 RDEPEND="app-arch/unzip
23 >=dev-libs/dbus-glib-0.60
26 ~media-sound/audacious-${PV}
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 http? ( >=net-libs/neon-0.26.4 )
40 !gtk3? ( x11-libs/gtk+:2 )
41 gtk3? ( x11-libs/gtk+:3 )
42 qt5? ( dev-qt/qtcore:5
46 jack? ( >=media-libs/bio2jack-0.4
47 media-sound/jack-audio-connection-kit )
48 lame? ( media-sound/lame )
49 libnotify? ( x11-libs/libnotify )
50 libsamplerate? ( media-libs/libsamplerate )
51 lirc? ( app-misc/lirc )
52 mms? ( >=media-libs/libmms-0.3 )
53 mp3? ( >=media-sound/mpg123-1.12.1 )
54 pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
55 scrobbler? ( net-misc/curl )
56 sdl? ( media-libs/libsdl[sound] )
57 sid? ( >=media-libs/libsidplayfp-1.0.0 )
58 sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
59 vorbis? ( >=media-libs/libvorbis-1.2.0
60 >=media-libs/libogg-1.1.3 )
61 wavpack? ( >=media-sound/wavpack-4.50.1-r1 )"
64 nls? ( dev-util/intltool )
69 ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
76 mv "${MY_P}-gtk3" "${MY_P}"
81 has_version "<dev-libs/glib-2.32" && \
82 cd "${S}"/src/mpris2 && \
83 gdbus-codegen --interface-prefix org.mpris. \
84 --c-namespace Mpris --generate-c-code object-core mpris2.xml && \
85 gdbus-codegen --interface-prefix org.mpris. \
87 --generate-c-code object-player mpris2-player.xml && \
94 if use ffmpeg && has_version media-video/ffmpeg ; then
95 ffmpeg="--with-ffmpeg=ffmpeg"
96 elif use ffmpeg && has_version media-video/libav ; then
97 ffmpeg="--with-ffmpeg=libav"
99 ffmpeg="--with-ffmpeg=none"
105 --enable-statusicon \
107 $(use_enable adplug) \
111 $(use_enable cdda cdaudio) \
113 $(use_enable flac flacng) \
114 $(use_enable fluidsynth amidiplug) \
115 $(use_enable flac filewriter_flac) \
116 $(use_enable http neon) \
118 $(use_enable gnome gnomeshortcuts) \
119 $(use_enable lame filewriter_mp3) \
120 $(use_enable libnotify notify) \
121 $(use_enable libsamplerate resample) \
126 $(use_enable pulseaudio pulse) \
127 $(use_enable qt5 qt) \
128 $(use_enable scrobbler scrobbler2) \
129 $(use_enable sdl sdlout) \
131 $(use_enable sndfile) \
132 $(use_enable vorbis) \
133 $(use_enable wavpack)