1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Audacious Player - Your music, your way, no exceptions"
9 HOMEPAGE="http://audacious-media-player.org/"
11 if [[ ${PV} == *9999 ]]; then
12 inherit autotools git-r3
13 EGIT_REPO_URI="https://github.com/audacious-media-player/audacious-plugins.git"
16 !gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2 )
17 gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}-gtk3.tar.bz2 )"
18 KEYWORDS="~amd64 ~x86"
23 IUSE="aac +adplug alsa ampache aosd bs2b cdda cue ffmpeg flac fluidsynth gnome hotkeys http gme gtk gtk3 jack lame libav
24 libnotify libsamplerate lirc mms modplug mp3 nls pulseaudio qt5 scrobbler sdl sid sndfile soxr vorbis wavpack"
28 || ( alsa jack pulseaudio sdl )"
30 # The following plugins REQUIRE a GUI build of audacious, because non-GUI
31 # builds do NOT install the libaudgui library & headers.
32 # Plugins without a configure option:
41 # Plugins with a configure option:
52 ~media-sound/audacious-${PV}[gtk?,gtk3?,qt5?]
53 aac? ( >=media-libs/faad2-2.7 )
54 alsa? ( >=media-libs/alsa-lib-1.0.16 )
55 ampache? ( www-apps/ampache )
58 x11-libs/libXcomposite
60 bs2b? ( media-libs/libbs2b )
62 >=media-libs/libcddb-1.2.1
63 dev-libs/libcdio-paranoia
65 cue? ( media-libs/libcue )
66 ffmpeg? ( >=virtual/ffmpeg-0.7.3 )
68 >=media-libs/libvorbis-1.0
69 >=media-libs/flac-1.2.1-r1
71 fluidsynth? ( media-sound/fluidsynth )
72 http? ( >=net-libs/neon-0.26.4 )
73 gtk? ( x11-libs/gtk+:2 )
74 gtk3? ( x11-libs/gtk+:3 )
83 >=media-libs/bio2jack-0.4
84 media-sound/jack-audio-connection-kit
86 lame? ( media-sound/lame )
87 libnotify? ( x11-libs/libnotify )
88 libsamplerate? ( media-libs/libsamplerate )
89 lirc? ( app-misc/lirc )
90 mms? ( >=media-libs/libmms-0.3 )
91 modplug? ( media-libs/libmodplug )
92 mp3? ( >=media-sound/mpg123-1.12.1 )
93 pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
94 scrobbler? ( net-misc/curl )
95 sdl? ( media-libs/libsdl2[sound] )
96 sid? ( >=media-libs/libsidplayfp-1.0.0 )
97 sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
98 soxr? ( media-libs/soxr )
100 >=media-libs/libvorbis-1.2.0
101 >=media-libs/libogg-1.1.3
103 wavpack? ( >=media-sound/wavpack-4.50.1-r1 )"
106 dev-util/gdbus-codegen
108 nls? ( dev-util/intltool )"
110 S="${WORKDIR}/${MY_P}"
113 if [[ ${PV} == *9999 ]]; then
118 mv "${MY_P}"{-gtk3,} || die
125 [[ ${PV} == *9999 ]] && eautoreconf
130 ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
135 --enable-songchange \
136 --enable-speedpitch \
139 --disable-qtglspectrum \
140 --disable-coreaudio \
144 $(use_enable ampache) \
147 $(use_enable cdda cdaudio) \
150 $(use_enable fluidsynth amidiplug) \
151 $(use_enable flac filewriter) \
152 $(use_enable gme console) \
153 $(use_enable $(usex gtk gtk gtk3) gtk) \
154 $(use_enable hotkeys hotkey) \
155 $(use_enable http neon) \
157 $(use_enable gnome gnomeshortcuts) \
158 $(use_enable lame filewriter_mp3) \
159 $(use_enable libnotify notify) \
160 $(use_enable libsamplerate resample) \
163 $(use_enable modplug) \
164 $(use_enable mp3 mpg123) \
166 $(use_enable pulseaudio pulse) \
167 $(use_enable qt5 qt) \
168 $(use_enable scrobbler scrobbler2) \
169 $(use_enable sdl sdlout) \
171 $(use_enable sndfile) \
173 $(use_enable vorbis) \
174 $(use_enable wavpack) \
175 $(use_with ffmpeg ffmpeg $(usex libav libav ffmpeg))