diff options
| author | 1024x2 | 2026-09-22 15:21:58 +0100 |
|---|---|---|
| committer | 1024x2 | 2026-09-22 15:21:58 +0100 |
| commit | aa97efa597ac50012a93b31deeffff1be31c866c (patch) | |
| tree | 7a5c5a6eaeeb3b945bbb19c587fff59831e77cec /media-libs/vgmstream/vgmstream-9999.ebuild | |
| parent | e6c4820c5fe443b9cf1fc17f8df5d739faabaecf (diff) | |
media-libs/vgmstream: new package, add 9999
Diffstat (limited to 'media-libs/vgmstream/vgmstream-9999.ebuild')
| -rw-r--r-- | media-libs/vgmstream/vgmstream-9999.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/media-libs/vgmstream/vgmstream-9999.ebuild b/media-libs/vgmstream/vgmstream-9999.ebuild new file mode 100644 index 0000000..d939142 --- /dev/null +++ b/media-libs/vgmstream/vgmstream-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Library for playback of various streamed audio formats used in video games" +HOMEPAGE="https://vgmstream.org/" + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vgmstream/vgmstream.git" +else + SRC_URI="https://github.com/vgmstream/vgmstream/archive/refs/tags/r${PV}.tar.gz -> vgmstream-r${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-r${PV}" +fi +SRC_URI+=" + celt? ( + https://downloads.xiph.org/releases/celt/celt-0.6.1.tar.gz + https://downloads.xiph.org/releases/celt/celt-0.11.0.tar.gz + ) +" + +LICENSE="MIT" + +SLOT="0" +IUSE=" + +mp3 +vorbis +speex +ffmpeg + celt + +cli +player audacious +" + +RDEPEND=" + mp3? ( media-sound/mpg123-base ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + speex? ( media-libs/speex ) + player? ( media-libs/libao ) + audacious? ( media-sound/audacious ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-vcs/git + virtual/pkgconfig +" + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + fi + default +} + +src_configure() { + local mycmakeargs=( + -DBUILD_AUDACIOUS=$(usex audacious) + -DBUILD_CLI=$(usex player) + -DBUILD_V123=$(usex player) + -DUSE_MPEG=$(usex mp3) + -DUSE_VORBIS=$(usex vorbis) + -DUSE_FFMPEG=$(usex ffmpeg) + -DUSE_G7221=NO + -DUSE_G719=NO + -DUSE_G7221=NO + -DUSE_ATRAC9=NO + -DUSE_CELT=$(usex celt) + -DCELT_0061_PATH="${WORKDIR}/celt-0.6.1" + -DCELT_0110_PATH="${WORKDIR}/celt-0.11.0" + -DUSE_SPEEX=$(usex speex) + -DBUILD_SHARED_LIBS=ON + ) + cmake_src_configure +} |
