Verified Commit 1869a98c by flussence

Improve the state of audacious-plugins

I went over the configure.ac one line at a time and made the ebuild reflect reality.
parent c162b265
......@@ -13,83 +13,96 @@ SRC_URI="http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aac alsa bs2b cdda cue ffmpeg filewriter flac fluidsynth gnome http +gtk
jack lame libnotify libsamplerate lirc mms mp3 nls oss pulseaudio qt5 scrobbler
sdl sid sndfile sox vorbis wavpack"
IUSE="aac alsa ampache aosd bs2b cdda cue ffmpeg filewriter flac fluidsynth gnome hotkeys http +gtk
jack lame libnotify libsamplerate lirc mms modplug mpg123 mpris nls opengl oss pulseaudio qt5
scrobbler sdl sdl2 sid sndfile sox vorbis wavpack"
REQUIRED_USE="|| ( alsa jack oss pulseaudio qt5 sdl )
filewriter? ( || ( flac vorbis ) )"
ampache? ( qt5 )
aosd? ( gtk )
filewriter? ( || ( flac vorbis ) )
hotkeys? ( gtk )
opengl? ( || ( gtk qt5 ) )"
RDEPEND="app-arch/unzip
>=dev-libs/dbus-glib-0.60
dev-libs/libxml2:2
media-libs/libmodplug
~media-sound/audacious-${PV}[gtk?,qt5?]
( || ( >=dev-libs/glib-2.32.2[utils] dev-util/gdbus-codegen ) )
aac? ( >=media-libs/faad2-2.7 )
alsa? ( >=media-libs/alsa-lib-1.0.16 )
bs2b? ( media-libs/libbs2b )
cdda? ( >=media-libs/libcddb-1.2.1
dev-libs/libcdio-paranoia )
ampache? ( www-apps/ampache )
aosd? (
x11-libs/libXrender
x11-libs/libXcomposite
)
bs2b? ( >=media-libs/libbs2b-3.0.0 )
cdda? (
>=dev-libs/libcdio-paranoia-0.70
>=media-libs/libcddb-1.2.1
)
cue? ( media-libs/libcue )
ffmpeg? ( >=virtual/ffmpeg-0.7.3 )
flac? ( >=media-libs/libvorbis-1.0
>=media-libs/flac-1.2.1-r1 )
flac? ( >=media-libs/flac-1.2.1 )
fluidsynth? ( media-sound/fluidsynth )
http? ( >=net-libs/neon-0.26.4 )
http? ( >=net-libs/neon-0.27 )
gnome? ( >=dev-libs/dbus-glib-0.60 )
gtk? ( x11-libs/gtk+:2 )
qt5? ( dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtmultimedia:5
dev-qt/qtwidgets:5 )
jack? ( >=media-libs/bio2jack-0.4
media-sound/jack-audio-connection-kit )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtmultimedia:5
dev-qt/qtwidgets:5
)
jack? ( >=media-sound/jack-audio-connection-kit-0.120.1 )
lame? ( media-sound/lame )
libnotify? ( x11-libs/libnotify )
libnotify? (
>=x11-libs/libnotify-0.7
>=x11-libs/gdk-pixbuf-2.26:2
)
libsamplerate? ( media-libs/libsamplerate )
lirc? ( app-misc/lirc )
mms? ( >=media-libs/libmms-0.3 )
mp3? ( >=media-sound/mpg123-1.12.1 )
pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
scrobbler? ( net-misc/curl )
sdl? ( media-libs/libsdl[sound] )
sid? ( >=media-libs/libsidplayfp-1.0.0 )
sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
modplug? ( media-libs/libmodplug )
mpris? ( dev-util/gdbus-codegen )
mpg123? ( >=media-sound/mpg123-1.12.1 )
opengl? (
virtual/opengl
x11-libs/libX11
)
pulseaudio? ( >=media-sound/pulseaudio-0.9.5 )
scrobbler? ( >=net-misc/curl-7.9.7 )
sdl? (
sdl2? ( >=media-libs/libsdl2-2.0[sound] )
!sdl2? ( >=media-libs/libsdl-1.2.11[sound] )
)
sid? ( >=media-libs/libsidplayfp-1.0 )
sndfile? ( >=media-libs/libsndfile-1.0.19 )
sox? ( media-libs/soxr )
vorbis? ( >=media-libs/libvorbis-1.2.0
>=media-libs/libogg-1.1.3 )
wavpack? ( >=media-sound/wavpack-4.50.1-r1 )"
wavpack? ( >=media-sound/wavpack-4.31 )"
DEPEND="${RDEPEND}
nls? ( dev-util/intltool )
virtual/pkgconfig"
src_prepare() {
has_version "<dev-libs/glib-2.32" && \
cd "${S}"/src/mpris2 && \
gdbus-codegen --interface-prefix org.mpris. \
--c-namespace Mpris --generate-c-code object-core mpris2.xml && \
gdbus-codegen --interface-prefix org.mpris. \
--c-namespace Mpris \
--generate-c-code object-player mpris2-player.xml && \
cd "${S}"
default
}
src_configure() {
if use ffmpeg && has_version media-video/ffmpeg ; then
ffmpeg="--with-ffmpeg=ffmpeg"
elif use ffmpeg && has_version media-video/libav ; then
ffmpeg="--with-ffmpeg=libav"
else
ffmpeg="--with-ffmpeg=none"
if use ffmpeg; then
if has_version media-video/ffmpeg; then
ffmpeg="ffmpeg"
elif has_version media-video/libav; then
ffmpeg="libav"
fi
fi
if use sdl; then
if has_version media-libs/libsdl2; then
sdl="2"
else
sdl="1"
fi
fi
econf \
${ffmpeg} \
--enable-modplug \
--enable-statusicon \
--disable-soxr \
--with-ffmpeg="${ffmpeg:-none}" \
$(use_enable aac) \
$(use_enable alsa) \
$(use_enable bs2b) \
......@@ -99,20 +112,28 @@ src_configure() {
$(use_enable flac) \
$(use_enable fluidsynth amidiplug) \
$(use_enable gtk) \
$(use gtk && use_enable opengl glspectrum) \
$(use_enable hotkeys hotkey) \
$(use_enable http neon) \
$(use_enable jack) \
$(use_enable gnome gnomeshortcuts) \
$(use_enable lame filewriter_mp3) \
$(use_enable libnotify notify) \
$(use_enable libsamplerate resample) \
$(use_enable libsamplerate speedpitch) \
$(use_enable lirc) \
$(use_enable mms) \
$(use_enable mp3 mpg123) \
$(use_enable modplug) \
$(use_enable mpg123) \
$(use_enable nls) \
$(use_enable oss oss4) \
$(use_enable pulseaudio pulse) \
$(use_enable qt5 qt) \
$(use_enable qt5 qtaudio) \
$(use qt5 && use_enable opengl qtglspectrum) \
$(use_enable scrobbler scrobbler2) \
$(use_enable sdl sdlout) \
$(use_with sdl sdl $(usex sdl2 2 1)) \
$(use_enable sid) \
$(use_enable sndfile) \
$(use_enable sox soxr) \
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>flussence@gmail.com</email>
<name>Anthony Parsons</name>
</maintainer>
<upstream>
<bugs-to>http://redmine.audacious-media-player.org/projects/audacious/issues</bugs-to>
</upstream>
<use>
<flag name='bs2b'>Enable Bauer Bauer stereophonic-to-binaural headphone filter</flag>
<flag name='cue'>Support CUE sheets using the libcue library</flag>
<flag name='filewriter'>Enable filewriter output plugin</flag>
<flag name='fluidsynth'>Support FluidSynth as MIDI synth backend</flag>
<flag name='http'>Support HTTP streams through neon</flag>
<flag name='scrobbler'>Build with scrobbler/LastFM submission support</flag>
<flag name='sid'>Build with SID (Commodore 64 Audio) support</flag>
<flag name="ampache">Add remote control support via <pkg>www-apps/ampache</pkg></flag>
<flag name="aosd">Enable the on-screen-display plugin</flag>
<flag name="bs2b">Enable Bauer stereophonic-to-binaural headphone filter</flag>
<flag name="cue">Support CUE sheets using the libcue library</flag>
<flag name="ffmpeg">Use <pkg>virtual/ffmpeg</pkg> to play audio from most files</flag>
<flag name="filewriter">Enable FLAC/Vorbis filewriter output plugin</flag>
<flag name="fluidsynth">Support MIDI playback using Fluidsynth</flag>
<flag name="gnome">Enable GNOME shortcuts integration</flag>
<flag name="hotkeys">Enable global hotkey control plugin</flag>
<flag name="http">Support HTTP streams through <pkg>net-libs/neon</pkg></flag>
<flag name="lame">Enable MP3 filewriter output plugin</flag>
<flag name="libsamplerate">Enable resample, speed and pitch plugins</flag>
<flag name="mpg123">Enable standalone MP3 plugin using <pkg>media-sound/mpg123</pkg></flag>
<flag name="mpris">Enable MPRIS2 support (dbus-based player remote control)</flag>
<flag name="opengl">Enable the glspectrum visualiser plugin</flag>
<flag name="scrobbler">Build with scrobbler/LastFM submission support</flag>
<flag name="sdl2">Use libsdl2 instead of 1.2 (when USE=sdl is enabled)</flag>
<flag name="sid">Build with SID (Commodore 64 Audio) support</flag>
</use>
</pkgmetadata>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment