1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ ${PV} == *9999 ]]; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="https://github.com/audacious-media-player/audacious-plugins.git"
12 SRC_URI="https://distfiles.audacious-media-player.org/${MY_P}.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
15 DESCRIPTION="Lightweight and versatile audio player"
16 HOMEPAGE="https://audacious-media-player.org/"
20 IUSE="aac +alsa ampache bs2b cdda cue ffmpeg flac fluidsynth gme gtk http
21 jack lame libav libnotify libsamplerate lirc mms modplug mp3 nls opengl
22 pulseaudio qtmedia scrobbler sdl sid sndfile soxr speedpitch streamtuner
25 || ( alsa jack pulseaudio qtmedia sdl )
26 ampache? ( http ) streamtuner? ( http )
27 gtk? ( !ampache !qtmedia !streamtuner )"
29 # The following plugins REQUIRE a GUI build of audacious, because non-GUI
30 # builds do NOT install the libaudgui library & headers.
31 # Plugins without a configure option:
40 # Plugins with a configure option:
47 dev-util/gdbus-codegen
49 nls? ( dev-util/intltool )
56 ~media-sound/audacious-${PV}[gtk=]
57 aac? ( >=media-libs/faad2-2.7 )
58 alsa? ( >=media-libs/alsa-lib-1.0.16 )
59 ampache? ( =media-libs/ampache_browser-1* )
60 bs2b? ( media-libs/libbs2b )
63 dev-libs/libcdio-paranoia:=
64 >=media-libs/libcddb-1.2.1
66 cue? ( media-libs/libcue:= )
67 ffmpeg? ( >=virtual/ffmpeg-0.7.3 )
69 >=media-libs/flac-1.2.1-r1
70 >=media-libs/libvorbis-1.0
72 fluidsynth? ( media-sound/fluidsynth:= )
75 x11-libs/libXcomposite
82 opengl? ( dev-qt/qtopengl:5 )
84 http? ( >=net-libs/neon-0.26.4 )
86 >=media-libs/bio2jack-0.4
89 lame? ( media-sound/lame )
90 libnotify? ( x11-libs/libnotify )
91 libsamplerate? ( media-libs/libsamplerate:= )
92 lirc? ( app-misc/lirc )
93 mms? ( >=media-libs/libmms-0.3 )
94 modplug? ( media-libs/libmodplug )
95 mp3? ( >=media-sound/mpg123-1.12.1 )
96 pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
97 qtmedia? ( dev-qt/qtmultimedia:5 )
98 scrobbler? ( net-misc/curl )
99 sdl? ( media-libs/libsdl2[sound] )
100 sid? ( >=media-libs/libsidplayfp-1.0.0 )
101 sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
102 soxr? ( media-libs/soxr )
103 speedpitch? ( media-libs/libsamplerate:= )
104 streamtuner? ( dev-qt/qtnetwork:5 )
106 >=media-libs/libogg-1.1.3
107 >=media-libs/libvorbis-1.2.0
109 wavpack? ( >=media-sound/wavpack-4.50.1-r1 )
113 S="${WORKDIR}/${MY_P}"
116 use mp3 || ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
122 sed -e "/SUBDIRS/s/ po//" -i Makefile || die # bug #512698
124 [[ ${PV} == *9999 ]] && eautoreconf
131 --disable-adplug # not packaged
132 --disable-openmpt # not packaged
138 $(use_enable ampache)
140 $(use_enable cdda cdaudio)
143 $(use_enable flac filewriter)
144 $(use_enable fluidsynth amidiplug)
145 $(use_enable gme console)
146 $(use_enable gtk aosd)
147 $(use_enable gtk gtk)
148 $(use_enable gtk hotkey)
149 $(use_enable !gtk qt)
150 $(use_enable http neon)
152 $(use_enable lame filewriter_mp3)
153 $(use_enable libnotify notify)
154 $(use_enable libsamplerate resample)
157 $(use_enable modplug)
158 $(use_enable mp3 mpg123)
160 $(use_enable pulseaudio pulse)
161 $(use_enable qtmedia qtaudio)
162 $(use_enable scrobbler scrobbler2)
163 $(use_enable sdl sdlout)
165 $(use_enable sndfile)
167 $(use_enable speedpitch)
168 $(use_enable streamtuner)
170 $(use_enable wavpack)
171 $(use_with ffmpeg ffmpeg $(usex libav libav ffmpeg))
173 use !gtk && myeconfargs+=(
174 $(usex opengl --enable-qtglspectrum --disable-qtglspectrum)
177 econf "${myeconfargs[@]}"