audacious-plugins-3.2.2-r1.ebuild 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils autotools flag-o-matic
  5. MY_P="${P/_/-}"
  6. S="${WORKDIR}/${MY_P}"
  7. DESCRIPTION="Audacious Player - Your music, your way, no exceptions"
  8. HOMEPAGE="http://audacious-media-player.org/"
  9. SRC_URI="http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
  13. IUSE="aac adplug alsa bs2b cdda cue ffmpeg flac fluidsynth gnome +gtk gtk3 ipv6 jack
  14. lame libnotify libsamplerate midi mms mp3 mtp nls oss pulseaudio scrobbler sdl sid sndfile vorbis wavpack"
  15. RDEPEND="app-arch/unzip
  16. >=dev-libs/dbus-glib-0.60
  17. dev-libs/libxml2:2
  18. media-libs/libmodplug
  19. ~media-sound/audacious-3.2.2
  20. >=net-libs/neon-0.26.4
  21. gtk? ( x11-libs/gtk+:2 )
  22. gtk3? ( x11-libs/gtk+:3 )
  23. aac? ( >=media-libs/faad2-2.7 )
  24. adplug? ( >=dev-cpp/libbinio-1.4 )
  25. alsa? ( >=media-libs/alsa-lib-1.0.16 )
  26. bs2b? ( media-libs/libbs2b )
  27. cdda? ( >=media-libs/libcddb-1.2.1
  28. >=dev-libs/libcdio-0.79-r1 )
  29. cue? ( media-libs/libcue )
  30. ffmpeg? ( >=virtual/ffmpeg-0.7.3 )
  31. flac? ( >=media-libs/libvorbis-1.0
  32. >=media-libs/flac-1.2.1-r1 )
  33. fluidsynth? ( media-sound/fluidsynth )
  34. jack? ( >=media-libs/bio2jack-0.4
  35. media-sound/jack-audio-connection-kit )
  36. lame? ( media-sound/lame )
  37. libnotify? ( x11-libs/libnotify )
  38. libsamplerate? ( media-libs/libsamplerate )
  39. mms? ( >=media-libs/libmms-0.3 )
  40. mp3? ( >=media-sound/mpg123-1.12.1 )
  41. mtp? ( media-libs/libmtp )
  42. pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
  43. scrobbler? ( net-misc/curl )
  44. sdl? ( media-libs/libsdl[sound] )
  45. sid? ( >=media-libs/libsidplay-2.1.1-r2 )
  46. sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
  47. vorbis? ( >=media-libs/libvorbis-1.2.0
  48. >=media-libs/libogg-1.1.3 )
  49. wavpack? ( >=media-sound/wavpack-4.50.1-r1 )"
  50. DEPEND="${RDEPEND}
  51. nls? ( dev-util/intltool )
  52. virtual/pkgconfig"
  53. REQUIRED_USE="^^ ( gtk gtk3 )"
  54. DOCS="AUTHORS"
  55. mp3_warning() {
  56. if ! use mp3 ; then
  57. ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
  58. fi
  59. }
  60. src_prepare() {
  61. epatch "$FILESDIR"/${P}-fix-build-gmodule.patch
  62. epatch "$FILESDIR"/${P}-fix-build-sdl.patch
  63. eaclocal -I m4
  64. eautoheader
  65. eautoconf
  66. }
  67. src_configure() {
  68. mp3_warning
  69. econf \
  70. --enable-modplug \
  71. --enable-neon \
  72. $(use_enable adplug) \
  73. $(use_enable aac) \
  74. $(use_enable alsa) \
  75. $(use_enable alsa amidiplug-alsa) \
  76. $(use_enable bs2b) \
  77. $(use_enable cdda cdaudio) \
  78. $(use_enable cue) \
  79. $(use_enable ffmpeg ffaudio) \
  80. $(use_enable flac flacng) \
  81. $(use_enable fluidsynth amidiplug-flsyn) \
  82. $(use_enable flac filewriter_flac) \
  83. $(use_enable gtk3) \
  84. $(use_enable ipv6) \
  85. $(use_enable jack) \
  86. $(use_enable gnome gnomeshortcuts) \
  87. $(use_enable lame filewriter_mp3) \
  88. $(use_enable libnotify notify) \
  89. $(use_enable libsamplerate resample) \
  90. $(use_enable mms) \
  91. $(use_enable mp3) \
  92. $(use_enable midi amidiplug) \
  93. $(use_enable mtp mtp_up) \
  94. $(use_enable nls) \
  95. $(use_enable oss) \
  96. $(use_enable pulseaudio pulse) \
  97. $(use_enable scrobbler) \
  98. $(use_enable sdl sdlout) \
  99. $(use_enable sid) \
  100. $(use_enable sndfile) \
  101. $(use_enable vorbis) \
  102. $(use_enable vorbis filewriter_vorbis) \
  103. $(use_enable wavpack)
  104. }