diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
commit | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch) | |
tree | 464c922e949c7e4d5d891fb2cdda5daee5612537 /media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild | |
parent | e68d405c5d712af4387159df07e226217bdda049 (diff) |
gentoo resync : 16.04.2022
Diffstat (limited to 'media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild')
-rw-r--r-- | media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild new file mode 100644 index 000000000000..d993c84aa88b --- /dev/null +++ b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="audio decoding, resampling and mixing library" +HOMEPAGE="https://github.com/realnc/SDL_audiolib" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/realnc/SDL_audiolib.git" +else + # No official releases from upstream yet + SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.xz" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="LGPL-3" +SLOT="0" + +IUSE="fluidsynth libsamplerate modplug mpg123 musepack openmpt opus sndfile soxr vorbis" + +RDEPEND=" + media-libs/libsdl2 + fluidsynth? ( media-sound/fluidsynth ) + libsamplerate? ( media-libs/libsamplerate ) + modplug? ( media-libs/libmodplug ) + mpg123? ( media-sound/mpg123 ) + musepack? ( media-sound/musepack-tools ) + openmpt? ( media-libs/libopenmpt ) + opus? ( media-libs/opusfile ) + sndfile? ( media-libs/libsndfile ) + soxr? ( media-libs/soxr ) + vorbis? ( media-libs/libvorbis ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +src_configure() { + local mycmakeargs=( + -DUSE_DEC_ADLMIDI=OFF + -DUSE_DEC_BASSMIDI=OFF + -DUSE_DEC_FLUIDSYNTH="$(usex fluidsynth)" + -DUSE_DEC_MODPLUG="$(usex modplug)" + -DUSE_DEC_MPG123="$(usex mpg123)" + -DUSE_DEC_MUSEPACK="$(usex musepack)" + -DUSE_DEC_OPENMPT="$(usex openmpt)" + -DUSE_DEC_LIBOPUSFILE="$(usex opus)" + -DUSE_DEC_SNDFILE="$(usex sndfile)" + -DUSE_DEC_LIBVORBIS="$(usex vorbis)" + -DUSE_DEC_WILDMIDI=OFF + -DUSE_DEC_XMP=OFF + -DUSE_RESAMP_SOXR="$(usex soxr)" + -DUSE_RESAMP_SRC="$(usex libsamplerate)" + ) + cmake_src_configure +} |