1 |
commit: 5343e0faf079e398bebebf98cbb47ca1a15cee68 |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Thu Sep 22 01:37:38 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 01:53:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5343e0fa |
7 |
|
8 |
media-sound/deadbeef: Add USE=libsamplerate |
9 |
|
10 |
Also changes the EAPI to 8. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/27390 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
media-sound/deadbeef/deadbeef-1.9.1-r3.ebuild | 192 ++++++++++++++++++++++++++ |
16 |
media-sound/deadbeef/metadata.xml | 1 + |
17 |
2 files changed, 193 insertions(+) |
18 |
|
19 |
diff --git a/media-sound/deadbeef/deadbeef-1.9.1-r3.ebuild b/media-sound/deadbeef/deadbeef-1.9.1-r3.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..a4a08e5811cc |
22 |
--- /dev/null |
23 |
+++ b/media-sound/deadbeef/deadbeef-1.9.1-r3.ebuild |
24 |
@@ -0,0 +1,192 @@ |
25 |
+# Copyright 2021-2022 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=8 |
29 |
+ |
30 |
+inherit autotools xdg flag-o-matic toolchain-funcs plocale |
31 |
+ |
32 |
+DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000" |
33 |
+HOMEPAGE="https://deadbeef.sourceforge.io/" |
34 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE=" |
37 |
+ GPL-2 |
38 |
+ LGPL-2.1 |
39 |
+ wavpack? ( BSD ) |
40 |
+" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~riscv ~x86" |
43 |
+IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm libsamplerate mp3 musepack nls notify +nullout opus oss pulseaudio sc68 shellexec +supereq threads vorbis wavpack" |
44 |
+ |
45 |
+REQUIRED_USE=" |
46 |
+ || ( alsa oss pulseaudio nullout ) |
47 |
+" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ x11-libs/gtk+:3 |
51 |
+ net-misc/curl:= |
52 |
+ dev-libs/jansson:= |
53 |
+ aac? ( media-libs/faad2 ) |
54 |
+ alsa? ( media-libs/alsa-lib ) |
55 |
+ cdda? ( |
56 |
+ dev-libs/libcdio:= |
57 |
+ media-libs/libcddb |
58 |
+ dev-libs/libcdio-paranoia:= |
59 |
+ ) |
60 |
+ cover? ( |
61 |
+ media-libs/imlib2[jpeg,png] |
62 |
+ ) |
63 |
+ dts? ( media-libs/libdca ) |
64 |
+ ffmpeg? ( media-video/ffmpeg ) |
65 |
+ flac? ( |
66 |
+ media-libs/flac:= |
67 |
+ media-libs/libogg |
68 |
+ ) |
69 |
+ libsamplerate? ( media-libs/libsamplerate ) |
70 |
+ mp3? ( media-sound/mpg123 ) |
71 |
+ musepack? ( media-sound/musepack-tools ) |
72 |
+ nls? ( virtual/libintl ) |
73 |
+ notify? ( |
74 |
+ sys-apps/dbus |
75 |
+ ) |
76 |
+ opus? ( media-libs/opusfile ) |
77 |
+ pulseaudio? ( media-sound/pulseaudio ) |
78 |
+ vorbis? ( media-libs/libvorbis ) |
79 |
+ wavpack? ( media-sound/wavpack ) |
80 |
+ dev-libs/libdispatch |
81 |
+" |
82 |
+ |
83 |
+RDEPEND="${DEPEND}" |
84 |
+BDEPEND=" |
85 |
+ dev-util/intltool |
86 |
+ sys-devel/gettext |
87 |
+ sys-devel/clang |
88 |
+ sys-devel/llvm |
89 |
+ virtual/pkgconfig |
90 |
+" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}/deadbeef-use-ffmpeg-plugin-for-ape-by-default.patch" |
94 |
+ "${FILESDIR}/deadbeef-musl.patch" # 870187 |
95 |
+) |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ default |
99 |
+ |
100 |
+ drop_from_linguas() { |
101 |
+ sed "/${1}/d" -i "${S}/po/LINGUAS" || die |
102 |
+ } |
103 |
+ |
104 |
+ drop_and_stub() { |
105 |
+ rm -rf "${1}" |
106 |
+ mkdir "${1}" |
107 |
+ cat > "${1}/Makefile.in" <<-EOF |
108 |
+ all: nothing |
109 |
+ install: nothing |
110 |
+ nothing: |
111 |
+ EOF |
112 |
+ } |
113 |
+ |
114 |
+ plocale_for_each_disabled_locale drop_from_linguas || die |
115 |
+ |
116 |
+ eautopoint --force |
117 |
+ eautoreconf |
118 |
+ |
119 |
+ # Get rid of bundled gettext. |
120 |
+ drop_and_stub "${S}/intl" |
121 |
+ |
122 |
+ # Plugins that are undesired for whatever reason, candidates for unbundling and such. |
123 |
+ for i in adplug alac dumb ffap mms gme mono2stereo psf shn sid soundtouch wma; do |
124 |
+ drop_and_stub "${S}/plugins/${i}" |
125 |
+ done |
126 |
+ |
127 |
+ rm -rf "${S}/plugins/rg_scanner/ebur128" |
128 |
+} |
129 |
+ |
130 |
+src_configure () { |
131 |
+ if ! tc-is-clang; then |
132 |
+ AR=llvm-ar |
133 |
+ CC=${CHOST}-clang |
134 |
+ CXX=${CHOST}-clang++ |
135 |
+ NM=llvm-nm |
136 |
+ RANLIB=llvm-ranlib |
137 |
+ |
138 |
+ strip-unsupported-flags |
139 |
+ fi |
140 |
+ |
141 |
+ export HOST_CC="$(tc-getBUILD_CC)" |
142 |
+ export HOST_CXX="$(tc-getBUILD_CXX)" |
143 |
+ tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG |
144 |
+ |
145 |
+ local myconf=( |
146 |
+ "--disable-staticlink" |
147 |
+ "--disable-portable" |
148 |
+ "--disable-rpath" |
149 |
+ |
150 |
+ "--disable-libmad" |
151 |
+ "--disable-gtk2" |
152 |
+ "--disable-adplug" |
153 |
+ "--disable-coreaudio" |
154 |
+ "--disable-dumb" |
155 |
+ "--disable-alac" |
156 |
+ "--disable-ffap" |
157 |
+ "--disable-gme" |
158 |
+ "--disable-mms" |
159 |
+ "--disable-mono2stereo" |
160 |
+ "--disable-psf" |
161 |
+ "--disable-rgscanner" |
162 |
+ "--disable-shn" |
163 |
+ "--disable-sid" |
164 |
+ "--disable-sndfile" |
165 |
+ "--disable-soundtouch" |
166 |
+ "--disable-tta" |
167 |
+ "--disable-vfs-zip" |
168 |
+ "--disable-vtx" |
169 |
+ "--disable-wildmidi" |
170 |
+ "--disable-wma" |
171 |
+ |
172 |
+ "$(use_enable alsa)" |
173 |
+ "$(use_enable oss)" |
174 |
+ "$(use_enable pulseaudio pulse)" |
175 |
+ "$(use_enable mp3)" |
176 |
+ "$(use_enable mp3 libmpg123)" |
177 |
+ "$(use_enable nls)" |
178 |
+ "$(use_enable vorbis)" |
179 |
+ "$(use_enable threads)" |
180 |
+ "$(use_enable flac)" |
181 |
+ "$(use_enable supereq)" |
182 |
+ "$(use_enable cdda)" |
183 |
+ "$(use_enable cdda cdda-paranoia)" |
184 |
+ "$(use_enable aac)" |
185 |
+ "$(use_enable cover artwork)" |
186 |
+ "$(use_enable cover artwork-network)" |
187 |
+ "$(use_enable dts dca)" |
188 |
+ "$(use_enable ffmpeg)" |
189 |
+ "$(use_enable converter)" |
190 |
+ "$(use_enable musepack)" |
191 |
+ "$(use_enable notify)" |
192 |
+ "$(use_enable nullout)" |
193 |
+ "$(use_enable opus)" |
194 |
+ "$(use_enable pulseaudio pulse)" |
195 |
+ "$(use_enable sc68)" |
196 |
+ "$(use_enable shellexec)" |
197 |
+ "$(use_enable shellexec shellexecui)" |
198 |
+ "$(use_enable lastfm lfm)" |
199 |
+ "$(use_enable libsamplerate src)" |
200 |
+ "$(use_enable wavpack)" |
201 |
+ |
202 |
+ "--enable-gtk3" |
203 |
+ "--enable-vfs-curl" |
204 |
+ "--enable-shared" |
205 |
+ "--enable-m3u" |
206 |
+ "--enable-pltbrowser" |
207 |
+ ) |
208 |
+ |
209 |
+ econf "${myconf[@]}" |
210 |
+} |
211 |
+ |
212 |
+src_install() { |
213 |
+ default |
214 |
+ |
215 |
+ find "${ED}" -name '*.la' -delete || die |
216 |
+} |
217 |
|
218 |
diff --git a/media-sound/deadbeef/metadata.xml b/media-sound/deadbeef/metadata.xml |
219 |
index 8d086b986004..acd56395e578 100644 |
220 |
--- a/media-sound/deadbeef/metadata.xml |
221 |
+++ b/media-sound/deadbeef/metadata.xml |
222 |
@@ -13,6 +13,7 @@ |
223 |
<flag name="cover">Support for cover art</flag> |
224 |
<flag name="hotkeys">Keyboard shortcuts support</flag> |
225 |
<flag name="lastfm">last.fm/AudioScrobbler protocol support</flag> |
226 |
+ <flag name="libsamplerate">Support the Secret Rabbit Code resampler</flag> |
227 |
<flag name="notify">Desktop notifications support</flag> |
228 |
<flag name="nullout">Dummy output driver</flag> |
229 |
<flag name="sc68">Atari ST and Amiga music player</flag> |