Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl_audiolib/
Date: Thu, 30 Jun 2022 02:03:04
Message-Id: 1656553840.873f166e7e7197040d2efe407b7da4db809ee1ad.ionen@gentoo
1 commit: 873f166e7e7197040d2efe407b7da4db809ee1ad
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 30 01:25:11 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 30 01:50:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=873f166e
7
8 media-libs/sdl_audiolib: sync live
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild | 67 +++++++++++++++---------
13 1 file changed, 42 insertions(+), 25 deletions(-)
14
15 diff --git a/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild
16 index d993c84aa88b..961a40fde5e4 100644
17 --- a/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild
18 +++ b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild
19 @@ -5,24 +5,28 @@ EAPI=8
20
21 inherit cmake
22
23 -DESCRIPTION="audio decoding, resampling and mixing library"
24 -HOMEPAGE="https://github.com/realnc/SDL_audiolib"
25 -if [[ "${PV}" == *9999 ]] ; then
26 +if [[ ${PV} == 9999 ]] ; then
27 inherit git-r3
28 EGIT_REPO_URI="https://github.com/realnc/SDL_audiolib.git"
29 else
30 - # No official releases from upstream yet
31 - SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.xz"
32 + SDLAUDIO_COMMIT=""
33 + SRC_URI="https://github.com/realnc/SDL_audiolib/archive/${SDLAUDIO_COMMIT}.tar.gz -> ${P}.tar.gz"
34 + S="${WORKDIR}/${PN/sdl/SDL}-${SDLAUDIO_COMMIT}"
35 KEYWORDS="~amd64 ~x86"
36 fi
37 -LICENSE="LGPL-3"
38 -SLOT="0"
39
40 -IUSE="fluidsynth libsamplerate modplug mpg123 musepack openmpt opus sndfile soxr vorbis"
41 +DESCRIPTION="Audio decoding, resampling and mixing library for SDL"
42 +HOMEPAGE="https://github.com/realnc/SDL_audiolib/"
43 +
44 +LICENSE="LGPL-3+ BSD-2 || ( MIT Unlicense )"
45 +SLOT="0"
46 +IUSE="doc flac fluidsynth libsamplerate modplug mpg123 musepack openmpt opus sndfile soxr vorbis wildmidi"
47
48 RDEPEND="
49 - media-libs/libsdl2
50 - fluidsynth? ( media-sound/fluidsynth )
51 + dev-libs/libfmt:=
52 + media-libs/libsdl2[sound]
53 + flac? ( media-libs/flac )
54 + fluidsynth? ( media-sound/fluidsynth:= )
55 libsamplerate? ( media-libs/libsamplerate )
56 modplug? ( media-libs/libmodplug )
57 mpg123? ( media-sound/mpg123 )
58 @@ -32,28 +36,41 @@ RDEPEND="
59 sndfile? ( media-libs/libsndfile )
60 soxr? ( media-libs/soxr )
61 vorbis? ( media-libs/libvorbis )
62 -"
63 + wildmidi? ( media-sound/wildmidi )"
64 DEPEND="${RDEPEND}"
65 -BDEPEND="
66 - virtual/pkgconfig
67 -"
68 +BDEPEND="doc? ( app-doc/doxygen )"
69
70 src_configure() {
71 local mycmakeargs=(
72 -DUSE_DEC_ADLMIDI=OFF
73 -DUSE_DEC_BASSMIDI=OFF
74 - -DUSE_DEC_FLUIDSYNTH="$(usex fluidsynth)"
75 - -DUSE_DEC_MODPLUG="$(usex modplug)"
76 - -DUSE_DEC_MPG123="$(usex mpg123)"
77 - -DUSE_DEC_MUSEPACK="$(usex musepack)"
78 - -DUSE_DEC_OPENMPT="$(usex openmpt)"
79 - -DUSE_DEC_LIBOPUSFILE="$(usex opus)"
80 - -DUSE_DEC_SNDFILE="$(usex sndfile)"
81 - -DUSE_DEC_LIBVORBIS="$(usex vorbis)"
82 - -DUSE_DEC_WILDMIDI=OFF
83 + -DUSE_DEC_FLAC=$(usex flac)
84 + -DUSE_DEC_FLUIDSYNTH=$(usex fluidsynth)
85 + -DUSE_DEC_LIBOPUSFILE=$(usex opus)
86 + -DUSE_DEC_LIBVORBIS=$(usex vorbis)
87 + -DUSE_DEC_MODPLUG=$(usex modplug)
88 + -DUSE_DEC_MPG123=$(usex mpg123)
89 + -DUSE_DEC_MUSEPACK=$(usex musepack)
90 + -DUSE_DEC_OPENMPT=$(usex openmpt)
91 + -DUSE_DEC_SNDFILE=$(usex sndfile)
92 + -DUSE_DEC_WILDMIDI=$(usex wildmidi)
93 -DUSE_DEC_XMP=OFF
94 - -DUSE_RESAMP_SOXR="$(usex soxr)"
95 - -DUSE_RESAMP_SRC="$(usex libsamplerate)"
96 + -DUSE_RESAMP_SOXR=$(usex soxr)
97 + -DUSE_RESAMP_SRC=$(usex libsamplerate)
98 + -DWITH_SYSTEM_FMTLIB=ON
99 )
100 +
101 cmake_src_configure
102 }
103 +
104 +src_compile() {
105 + cmake_src_compile
106 +
107 + use !doc || doxygen "${BUILD_DIR}"/Doxyfile || die
108 +}
109 +
110 +src_install() {
111 + cmake_src_install
112 +
113 + use doc && dodoc -r "${BUILD_DIR}"/doc/html
114 +}